Jump to content

Apple iPhone 5s (apple-n51)

From postmarketOS Wiki

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
Original software
The software and version the device was shipped with.
iOS 7
Extended version
The most recent supported version from the manufacturer.
iOS
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
no
Features
Flashing
It is possible to flash the device with pmbootstrap flasher.
Broken
USB Networking
After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
Works
Battery
Charging and battery level reporting works
Broken
Screen
Display works. Ideally with sleep mode and brightness control.
Works
Touchscreen
Untested
Multimedia
3D Acceleration
Untested
Audio
Audio playback, microphone, headset and buttons.
Broken
Camera
Broken
Connectivity
WiFi
Broken
Bluetooth
Broken
GPS
Broken
Modem
Calls
Broken
SMS
Broken
Mobile data
Broken
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Untested
USB OTG
USB On-The-Go or USB-C Role switching
Untested
Sensors
Accelerometer
Auto screen rotation works in desktops e.g. Phosh or Plasma Mobile
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!