From a355393582e0c3f835556362eb8fcf025831c2a1 Mon Sep 17 00:00:00 2001 From: Henrik Klee Date: Sat, 5 Dec 2026 07:54:34 +0800 Subject: [PATCH] boot: m1n1: Launch from storage on the A10X and 32-bit boards Move to OrchardLinux/m1n1 6dde868, which brings: - m1n1#24 (grierj): NVMe on the T8011, so `orchard launch` starts an installed system on the iPad Pro 2 (J120, J121, J207, J208) instead of failing with "no storage support". Tested on the J207: Linux up in 16 s. Fixes #553. - m1n1#22 (brkosebay): the ARMv7 build accepts `architecture arm` boot entries, so installed 32-bit systems are listed and started; the ECID in every proxy's USB serial; the live ADT and the iPhone 5's charger calibration handed to Linux. - m1n1#23 (danlovaj): the 24-byte charger calibration of the 9.7-inch iPad Pro is passed to Linux, for linux#136. Device data, generated device pages and the changelog follow. Assisted-by: LLM --- CHANGELOG.md | 9 +++++++++ boot/m1n1/upstream.lock | 2 +- devices/j120/README.md | 3 +-- devices/j120/device.toml | 2 +- devices/j121/device.toml | 2 +- devices/j127/device.toml | 2 +- devices/j128/device.toml | 2 +- devices/j207/device.toml | 4 ++-- devices/j208/device.toml | 2 +- devices/n42/device.toml | 6 ++++-- docs/bring-up/armv7-m1n1.md | 5 +++-- docs/devices/j127.md | 2 +- docs/devices/j128.md | 2 +- docs/devices/j207.md | 2 +- docs/devices/n42.md | 2 +- 15 files changed, 29 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6fa90d5..b1ebfd6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -123,6 +123,15 @@ is missing or empty. - Devices on iOS 12.2 to 13.7, the iPhone 5s, iPad Air and iPad mini 2 and 3 included, can make room for Linux without DFU mode and from any computer: the Amethyst route comes first for them (`orchard resize --amethyst`). +- iPad Pro 2 (12.9-inch and 10.5-inch, Wi-Fi and Cellular): `orchard launch` + starts the installed system from internal storage; Linux is up in 16 s on + the 10.5-inch Wi-Fi (grierj). +- 32-bit iPhones and iPads: `orchard launch` finds the installed system's + boot entries and starts them from flash, seen on the iPhone 5 (brkosebay). +- Every device names its ECID in its USB name while m1n1 runs, so the + launcher tells several connected devices apart and recognises each one + across boots. macOS asks once per device to allow the accessory after + this update (brkosebay). ### Simulator diff --git a/boot/m1n1/upstream.lock b/boot/m1n1/upstream.lock index eff66525..a1e77a89 100644 --- a/boot/m1n1/upstream.lock +++ b/boot/m1n1/upstream.lock @@ -1,2 +1,2 @@ url=https://github.com/OrchardLinux/m1n1.git -commit=2a5fe33ebcbbf45d33c054b3a90c22e75a87bfc0 +commit=6dde8683b7172eebd194d62ac8d6aa215597c63d diff --git a/devices/j120/README.md b/devices/j120/README.md index 1c195202..2efa74a7 100644 --- a/devices/j120/README.md +++ b/devices/j120/README.md @@ -63,5 +63,4 @@ What still needs a J120 is tracked in 3. The Smart Cover as a general driver over the D2400 GPIO lines. 4. A generic HDQ write-opcode filter instead of the J120 transport. 5. The PMGR reset read-back on the other SoCs (J71b first). -6. Boot from internal storage: an m1n1 NVMe backend for `apcie,t8011`. -7. The storage write limits and the charging window, once qualified. +6. The storage write limits and the charging window, once qualified. diff --git a/devices/j120/device.toml b/devices/j120/device.toml index f6907287..9aabbebf 100644 --- a/devices/j120/device.toml +++ b/devices/j120/device.toml @@ -15,7 +15,7 @@ chip = 0x8011 board = 0x0c [boot] -methods = ["checkm8-pongo"] # palera1n's device list (palera.in); tompta1 booted Linux through m1n1 (see README). +methods = ["checkm8-pongo"] # palera1n's device list (palera.in); tompta1 booted Linux through m1n1 (see README). m1n1 reads the A10X's internal storage, so `orchard launch` starts an installed system (OrchardLinux/m1n1#24, tested on the J207). [kernel] platform = "apple-16k" diff --git a/devices/j121/device.toml b/devices/j121/device.toml index ed1e33d3..79d69d0b 100644 --- a/devices/j121/device.toml +++ b/devices/j121/device.toml @@ -14,7 +14,7 @@ chip = 0x8011 board = 0x0e [boot] -methods = ["checkm8-pongo"] # palera1n's device list (palera.in); not run with Orchard yet. +methods = ["checkm8-pongo"] # palera1n's device list (palera.in); not run with Orchard yet. m1n1 reads the A10X's internal storage for `orchard launch` (OrchardLinux/m1n1#24, tested on the J207). [kernel] platform = "apple-16k" diff --git a/devices/j127/device.toml b/devices/j127/device.toml index 284fbce0..4c60ed54 100644 --- a/devices/j127/device.toml +++ b/devices/j127/device.toml @@ -47,7 +47,7 @@ bluetooth_input = "missing" bluetooth_audio = "missing" cellular = "missing" battery = "missing" -charging = "missing" +charging = "missing" # D2355 charger: m1n1 passes its 24-byte input-limit calibration (OrchardLinux/m1n1#23); the driver for this board is OrchardLinux/linux#136 (not merged yet) charging_control = "missing" suspend = "untested" resume = "untested" diff --git a/devices/j128/device.toml b/devices/j128/device.toml index d4ebac0c..a3b8cddb 100644 --- a/devices/j128/device.toml +++ b/devices/j128/device.toml @@ -46,7 +46,7 @@ bluetooth_input = "missing" bluetooth_audio = "missing" cellular = "missing" battery = "missing" -charging = "missing" +charging = "missing" # D2355 charger: m1n1 passes its 24-byte input-limit calibration (OrchardLinux/m1n1#23); the driver for this board is OrchardLinux/linux#136 (not merged yet) charging_control = "missing" suspend = "working" # s2idle sleep ~70 s: boot_id preserved, suspend_stats success=1 fail=0, cpuidle/state1/s2idle/usage=1, CLOCK_MONOTONIC paused while CLOCK_BOOTTIME/RTC advanced (RAM 2026-11-30) resume = "working" # Woke cleanly on IRQ 59 (Apple-GPIO 123 Edge Power Button); console display, backlight, USB serial, and USB network survived (RAM 2026-11-30) diff --git a/devices/j207/device.toml b/devices/j207/device.toml index 64c87b47..2d10933d 100644 --- a/devices/j207/device.toml +++ b/devices/j207/device.toml @@ -14,7 +14,7 @@ chip = 0x8011 board = 0x04 [boot] -methods = ["checkm8-pongo"] # palera1n v3.0.0-beta.4 (--busy-cpu on Linux); installed and booted Omarchy A 0.4.8 (2026-12-03) +methods = ["checkm8-pongo"] # palera1n v3.0.0-beta.4 (--busy-cpu on Linux); installed and booted Omarchy A 0.4.8 (2026-12-03); `orchard launch` starts the installed system from internal storage through m1n1 (OrchardLinux/m1n1#24, Linux up in 16 s; grierj, 2026-12-05) [kernel] platform = "apple-16k" @@ -42,7 +42,7 @@ accelerometer = "working" # apple-aop-accel (~9.75 m/s^2 at rest) and desktop au gyroscope = "working" # apple-aop-gyro live 3-axis angular velocity readings verified (2026-12-03) light_sensor = "working" # two CT709 on I2C3, ~26-27 lux uncovered dropping to 0.0 lux when covered (2026-12-03) touch_id = "missing" -storage_read = "working" # installed system boots from internal NVMe flash (confirmed on J207 Omarchy A 0.4.8, 2026-12-03) +storage_read = "working" # installed system boots from internal NVMe flash (confirmed on J207 Omarchy A 0.4.8, 2026-12-03); m1n1 reads it too, so `orchard launch` boots it (m1n1#24, 2026-12-05) storage_write = "working" # Omarchy A 0.4.8 installed to internal NVMe flash (confirmed on J207, 2026-12-03) wifi = "working" # BCM4355 C0 (rev 10, PCIe port 2, brcmfmac on wld0): WPA2/WPA3 association, DHCP, ping 1.1.1.1 (~23 ms, 0% loss), survives s2idle suspend/resume (2026-12-03) bluetooth_input = "working" # BCM4355 C0 (AngerA USI/MUR Patchram and regulatory table in recipe): hci0 up with BCM.apple,j207-MUR.hcd + regulatory, factory MAC; Logitech K480 Bluetooth keyboard paired and typed into terminal (2026-12-04) diff --git a/devices/j208/device.toml b/devices/j208/device.toml index 90fd5c65..7603b699 100644 --- a/devices/j208/device.toml +++ b/devices/j208/device.toml @@ -14,7 +14,7 @@ chip = 0x8011 board = 0x06 [boot] -methods = ["checkm8-pongo"] # palera1n's device list (palera.in). +methods = ["checkm8-pongo"] # palera1n's device list (palera.in). m1n1 reads the A10X's internal storage for `orchard launch` (OrchardLinux/m1n1#24, tested on the J207). [kernel] platform = "apple-16k" diff --git a/devices/n42/device.toml b/devices/n42/device.toml index 7a8308e2..b1d60255 100644 --- a/devices/n42/device.toml +++ b/devices/n42/device.toml @@ -17,7 +17,9 @@ methods = ["ibss-m1n1"] entries = ["pico-checkm8", "kdfu"] # The 32-bit boards' ibss route (routes.toml): booted from a jailbroken iOS 8.4.1 # (12H321), where kloader enters kDFU; a patched iBSS and iBEC follow, and iBEC -# starts the 32-bit m1n1 with bootx (README.md, OrchardLinux/m1n1#17). +# starts the 32-bit m1n1 with bootx (README.md, OrchardLinux/m1n1#17). m1n1 lists +# and starts installed `architecture arm` boot entries from NAND, so `orchard +# launch` works (OrchardLinux/m1n1#22, seen with Berkay's kernel, 2026-12-03). [kernel] platform = "apple-armv7" # kernel/series/apple-armv7, kernel/configs/apple-armv7 @@ -58,7 +60,7 @@ bluetooth_input = "missing" # BCM4334 Bluetooth: OrchardLinux/linux#59 (not in a bluetooth_audio = "missing" cellular = "missing" battery = "missing" # bq27540 over HDQ: OrchardLinux/linux#59 (not in armv7 yet); read on its kernel. -charging = "missing" # D1972 charger: OrchardLinux/linux#59 and #62 (not in armv7 yet). +charging = "missing" # D1972 charger: OrchardLinux/linux#59 and #62 (not in armv7 yet); m1n1 passes its USB input-limit calibration (OrchardLinux/m1n1#22). charging_control = "missing" # The charger driver runs disarmed: it logs and writes nothing. suspend = "missing" resume = "missing" diff --git a/docs/bring-up/armv7-m1n1.md b/docs/bring-up/armv7-m1n1.md index a5ad2751..8a347127 100644 --- a/docs/bring-up/armv7-m1n1.md +++ b/docs/bring-up/armv7-m1n1.md @@ -86,8 +86,9 @@ before worked: payload behind m1n1. 4. Storage from the proxy: `main_storage_init`, time to load the maps, then the partition list. -5. A boot entry from flash (needs a boot partition, which no installer makes - yet). +5. A boot entry from flash: m1n1 lists the installed `architecture arm` + entries and starts one (`orchard launch`; seen on the iPhone 5, + OrchardLinux/m1n1#22). If a step fails, `orchard run --autogo` boots the same project through Cascadia's loader. Both routes start the same patched iBSS and iBEC in the diff --git a/docs/devices/j127.md b/docs/devices/j127.md index e18050eb..0f8a171f 100644 --- a/docs/devices/j127.md +++ b/docs/devices/j127.md @@ -30,7 +30,7 @@ Driver: whether an enabled device tree node binds a driver for it in `7.3.0-rc1- - ❌ **Bluetooth audio** · no driver binds - ❌ **Cellular** - ❌ **Battery status** · no driver binds -- ❌ **Charging** · no driver binds +- ❌ **Charging**: D2355 charger: m1n1 passes its 24-byte input-limit calibration (OrchardLinux/m1n1#23); the driver for this board is OrchardLinux/linux#136 (not merged yet) · no driver binds - ❌ **Charging control** - 🤔 **Suspend** - 🤔 **Resume** diff --git a/docs/devices/j128.md b/docs/devices/j128.md index 818c3cb7..68f13c19 100644 --- a/docs/devices/j128.md +++ b/docs/devices/j128.md @@ -30,7 +30,7 @@ Driver: whether an enabled device tree node binds a driver for it in `7.3.0-rc1- - ❌ **Bluetooth audio** · no driver binds - ❌ **Cellular** - ❌ **Battery status** · no driver binds -- ❌ **Charging** · no driver binds +- ❌ **Charging**: D2355 charger: m1n1 passes its 24-byte input-limit calibration (OrchardLinux/m1n1#23); the driver for this board is OrchardLinux/linux#136 (not merged yet) · no driver binds - ❌ **Charging control** - ✅ **Suspend**: s2idle sleep ~70 s: boot_id preserved, suspend_stats success=1 fail=0, cpuidle/state1/s2idle/usage=1, CLOCK_MONOTONIC paused while CLOCK_BOOTTIME/RTC advanced (RAM 2026-11-30) - ✅ **Resume**: Woke cleanly on IRQ 59 (Apple-GPIO 123 Edge Power Button); console display, backlight, USB serial, and USB network survived (RAM 2026-11-30) diff --git a/docs/devices/j207.md b/docs/devices/j207.md index a0e98ae4..bdccff29 100644 --- a/docs/devices/j207.md +++ b/docs/devices/j207.md @@ -23,7 +23,7 @@ Driver: whether an enabled device tree node binds a driver for it in `7.3.0-rc1- - ✅ **Gyroscope**: apple-aop-gyro live 3-axis angular velocity readings verified (2026-12-03) · driver binds - ✅ **Light sensor**: two CT709 on I2C3, ~26-27 lux uncovered dropping to 0.0 lux when covered (2026-12-03) · driver binds - ❌ **Touch ID** -- ✅ **Internal storage read**: installed system boots from internal NVMe flash (confirmed on J207 Omarchy A 0.4.8, 2026-12-03) · driver binds +- ✅ **Internal storage read**: installed system boots from internal NVMe flash (confirmed on J207 Omarchy A 0.4.8, 2026-12-03); m1n1 reads it too, so `orchard launch` boots it (m1n1#24, 2026-12-05) · driver binds - ✅ **Internal storage write**: Omarchy A 0.4.8 installed to internal NVMe flash (confirmed on J207, 2026-12-03) · driver binds - ✅ **Wi-Fi**: BCM4355 C0 (rev 10, PCIe port 2, brcmfmac on wld0): WPA2/WPA3 association, DHCP, ping 1.1.1.1 (~23 ms, 0% loss), survives s2idle suspend/resume (2026-12-03) · driver binds - ✅ **Bluetooth input devices**: BCM4355 C0 (AngerA USI/MUR Patchram and regulatory table in recipe): hci0 up with BCM.apple,j207-MUR.hcd + regulatory, factory MAC; Logitech K480 Bluetooth keyboard paired and typed into terminal (2026-12-04) · driver binds diff --git a/docs/devices/n42.md b/docs/devices/n42.md index a631977c..c0a7a876 100644 --- a/docs/devices/n42.md +++ b/docs/devices/n42.md @@ -30,7 +30,7 @@ Driver: this board's device tree has not been read yet (`tools/catalog/generate - ❌ **Bluetooth audio** - ❌ **Cellular** - ❌ **Battery status**: bq27540 over HDQ: OrchardLinux/linux#59 (not in armv7 yet); read on its kernel. -- ❌ **Charging**: D1972 charger: OrchardLinux/linux#59 and #62 (not in armv7 yet). +- ❌ **Charging**: D1972 charger: OrchardLinux/linux#59 and #62 (not in armv7 yet); m1n1 passes its USB input-limit calibration (OrchardLinux/m1n1#22). - ❌ **Charging control**: The charger driver runs disarmed: it logs and writes nothing. - ❌ **Suspend** - ❌ **Resume**