Jump to content

Apple iPhone 5s (apple-n51): Difference between revisions

From postmarketOS Wiki
00p513 (talk | contribs)
Add instructions to boot pongoOS
Justsoup (talk | contribs)
Edit codename to match page name
 
(11 intermediate revisions by 11 users not shown)
Line 1: Line 1:
This "amazing" aarch64 pioneer can't boot Linux yet. But hopefully that will change. See [https://github.com/checkra1n/pongoOS/issues/6 here.]
A mainline fork for this device is available [https://github.com/konradybcio/linux-apple here] with further instructions [https://github.com/SoMainline/linux-apple-resources here]. Still needs to be tested and ported to postmarketOS.


{{Infobox device
{{Infobox device
| manufacturer = Apple
| manufacturer = Apple
| name = iPhone 5s
| name = iPhone 5s
| codename = apple-iphone5s
| codename = apple-n51
| image = File:apple-iphone5s.png
| image = File:apple-iphone5s.png
| releaseyear = 2013
| releaseyear = 2013
| originalsoftware = iOS 7
| originalsoftware = iOS
| originalversion = 7
| chipset = Apple A7
| chipset = Apple A7
| cpu = Dual core (2x 1.3 GHz Cyclone)
| cpu = Dual core (2x 1.3 GHz Cyclone)
Line 15: Line 16:
| memory = 1 GB
| memory = 1 GB
| architecture = aarch64
| architecture = aarch64
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
| type = handset
| status_usbnet =  
| status_usbnet = Y
| status_flashing =  
| status_flashing = N
| status_touch =  
| status_touch =  
| status_screen =  
| status_screen = Y
| status_wifi =  
| status_wifi = N
| status_xwayland =  
| status_xwayland =  
| status_fde =  
| status_fde =  
| status_mainline =
| status_battery = N
| status_battery =  
| status_3d =  
| status_3d =  
| status_accel =  
| status_accel =  
| status_audio =  
| status_audio = N
| status_bluetooth =  
| status_bluetooth = N
| status_camera =  
| status_camera = N
| status_gps =  
| status_gps = N
| status_mobiledata =  
| status_mobiledata = N
| status_sms =  
| status_nfc = -
| status_calls =  
| status_sms = N
<!-- | status = no port yet -->
| status_calls = N
| booting = no
| status = bare bone
| n-android =
| booting = yes
| packaged = no
| category =
| pmoskernel =  
| pmoskernel =  
| status_otg =  
| status_otg =  
 
| whet_dhry =
<!--
see Unixbench page on wiki
| whet_dhry = 0.0
-->
}}
}}
== Contributors ==
== Maintainer(s) ==
<!-- Only if this device doesn't run on linux-postmarketos yet! -->
<!-- This person needs to be willing to answer questions from users of this device -->


== Users owning this device ==
== Users owning this device ==
Line 56: Line 48:


== How to enter flash mode ==
== How to enter flash mode ==
Only works on macOS right now!
For macOS:
1. Install checkra1n


1. Install checkra1n
2. Boot pongoOS: `/Applications/checkra1n.app/Contents/MacOS/checkra1n -pc`
2. Boot pongoOS: `/Applications/checkra1n.app/Contents/MacOS/checkra1n -pc`


== Installation ==
For linux:
 
1.install checkra1n
 
2.Download ''PongoConsolidated.bin'' from [https://github.com/checkra1n/PongoOS/releases/tag/2.5.1 github page]
 
3.checkra1n -v -V -k -p PongoConsolidated.bin


/* Not yet */
Follow the 6th step on booting section for booting.


== See also ==
If you execute this ''without'' '''-p''' flag, you will jailbreak your device with checkra1n.
<!--
== Booting (?) ==
If you manage to get your device packages merged, uncomment links below.
Orginal instructions [https://github.com/hmk3r/iphone-5s-linux-howto here]
* {{Device package|apple-iphone5s}}
<br>
* {{Kernel package|apple-iphone5s}}
<br>
-->
1.Install usbmuxd.
<br>
2.<code> git clone https://github.com/hmk3r/iphone-5s-linux-howto.git </code>
<br>
3.<code> cd iphone-5s* </code>
<br>
4.<code> sudo ./scripts/checkra1n -v -V -p -k ./resources/Pongo.bin </code>
<br>
5.Follow the instructions and prepare yourself.
<br>
6.When '''"Right before trigger (this is the real bug setup)"''' occurs,count to ''three'' and '''plug out''' the ''cable''.Then,''again'',count to ''three'' and '''plug the cable back in'''.''Repeat'' these steps '''until''' you get to '''"Booting"''' stage. If you are ''lucky'',you will get a ''pongo shell'' on your phone.
<br>
7.<code> sudo python3 ./scripts/load_linux.py -k ./resources/Image.lzma -d ./resources/dtbpack -r ./resources/nbramdisk.img </code>
<br>
8.A '''"success"''' message will displayed if ''linux'' is loaded '''correctly''' and you will shortly see the '''pmOS splash.'''
<br>
9.''telnet'' into your ''phone'' when '''debug shell''' appears.
<br>
10.<code>pmos_continue_boot</code>
<br>
11.Generate a '''rootfs''' of ''apple-idevice''.
<br>
12.<code> pmbootstrap netboot serve </code>
<br>
13.<code> script -f /dev/tty1 </code>
<br>
14.<code>startxfce4</code>
<br>
Done!

Latest revision as of 16:54, 31 August 2025

A mainline fork for this device is available here with further instructions here. Still needs to be tested and ported to postmarketOS.

Apple iPhone 5s
File:apple-iphone5s.png
Manufacturer Apple
Name iPhone 5s
Codename apple-n51
Released 2013
Type handset
Hardware
Chipset Apple A7
CPU Dual core (2x 1.3 GHz Cyclone)
GPU PowerVR G6430 (quad-core)
Display 640×1136 (326 ppi)
Storage 16, 32, 64 GB
Memory 1 GB
Architecture aarch64
Software
iOS 7
iOS
no
Features
Broken
Works
Broken
Works
Touchscreen
Untested
Multimedia
3D Acceleration
Untested
Broken
Camera
Broken
Connectivity
WiFi
Broken
Bluetooth
Broken
GPS
Broken
Modem
Calls
Broken
SMS
Broken
Mobile data
Broken
Miscellaneous
Untested
Untested
Sensors
Untested

Users owning this device

How to enter flash mode

For macOS: 1. Install checkra1n

2. Boot pongoOS: `/Applications/checkra1n.app/Contents/MacOS/checkra1n -pc`

For linux:

1.install checkra1n

2.Download PongoConsolidated.bin from github page

3.checkra1n -v -V -k -p PongoConsolidated.bin

Follow the 6th step on booting section for booting.

If you execute this without -p flag, you will jailbreak your device with checkra1n.

Booting (?)

Orginal instructions here

1.Install usbmuxd.
2. git clone https://github.com/hmk3r/iphone-5s-linux-howto.git
3. cd iphone-5s*
4. sudo ./scripts/checkra1n -v -V -p -k ./resources/Pongo.bin
5.Follow the instructions and prepare yourself.
6.When "Right before trigger (this is the real bug setup)" occurs,count to three and plug out the cable.Then,again,count to three and plug the cable back in.Repeat these steps until you get to "Booting" stage. If you are lucky,you will get a pongo shell on your phone.
7. sudo python3 ./scripts/load_linux.py -k ./resources/Image.lzma -d ./resources/dtbpack -r ./resources/nbramdisk.img
8.A "success" message will displayed if linux is loaded correctly and you will shortly see the pmOS splash.
9.telnet into your phone when debug shell appears.
10.pmos_continue_boot
11.Generate a rootfs of apple-idevice.
12. pmbootstrap netboot serve
13. script -f /dev/tty1
14.startxfce4
Done!