Jump to content

Apple iPhone 5s (apple-n51)

From postmarketOS Wiki
Note pmOS can't run on its internal storage.However, it's possible to boot pmOS from memory.
Note This device is supported as part of a generic port. Refer to Apple_Generic_iDevice_(apple-idevice) for installation instructions and more information.
Apple iPhone 5s
File:applen51pmos.jpg
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 200 MHz PowerVR G6430 (quad-core)
Display 4 inch 16:9, 640×1136 60 Hz IPS LCD, 24 Bit (16777216 colors) (326 ppi)
Storage 16/32/64 GB NVMe + USB OTG
Memory 1 GB LPDDR3
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
iOS 7.0.1
Extended version
The most recent supported version from the manufacturer.
iOS 12.5.8
postmarketOS
Category testing
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
yes
Generic port Apple_Generic_iDevice_(apple-idevice)
Device package device-apple-idevice
Kernel package linux-postmarketos-apple-4k
Features
Flashing
Whether 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
Whether charging and battery level reporting work.
Broken
Screen
Whether the 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
Handles automatic screen rotation in many interfaces.
Untested

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

Users owning this device

Model variants

iPhone 5s "?"

Warning WARNING: All variants have a locked bootloader with no source code or known exploits! This device only works well theoretically, until there is a solution to Apple's horribly cursed firmware. Checkm8 is not a sufficiant way to use this device. Be aware of it.

The following variants exist: A1453, A1457, A1518, A1528, A1530, A1533, iPhone6,1, iPhone6,2 maybe "all" work for this port?

Boot modes

Warning WARNING: USB-C to Lightning cables never work properly throughout the whole process, only USB-A cables!

Recovery (iTunes) - hold Home during boot

DFU mode - connect the device to a USB host, then power off the device, then hold Power for 3 seconds, then hold Home+Power for 8 seconds, then release Power but keep holding Home for 10 seconds - execute $ lsusb on a connected USB host, a new device including the text (DFU Mode) should appear

Notice Your display should remain black. If the Apple logo appears you will have to redo the steps above.

Hard reset - hold Home+Power

Booting

Follow the guide from Apple Generic iDevice (apple-idevice)#Booting