diff --git a/devices/p105/README.md b/devices/p105/README.md index 29b567d08..a2ff70650 100644 --- a/devices/p105/README.md +++ b/devices/p105/README.md @@ -35,6 +35,25 @@ unit's syscfg `MtCl`, captured from its jailbroken iOS and supplied through The Wi-Fi firmware carries a placeholder address; the platform layer gives each iPad its own at boot ([Wi-Fi address](../../docs/bring-up/p105-firmware.md#wi-fi-address)). +## Storage by model + +The iPad mini 1 came with 16, 32 and 64 GB of flash, and Orchard's flash driver +treats them differently: + +| Model | Reads | Writes | +|---|---|---| +| 64 GB | working | working (SFTL, with reclamation) | +| 16 GB | working (the merged reader refuses it on many boots after iOS writes; fix pending, see Open work) | **no**: the driver reports `read-only` at boot | +| 32 GB | not seen | not seen | + +`storage_write` in `device.toml` is `untested` for that reason: it was only ever +qualified on the 64 GB model. A 16 GB iPad mini 1 boots Linux from RAM and ran +Omarchy A from its flash on 2026-11-30 (see +[the 16 GB bring-up](../../docs/bring-up/p105-16gb.md)), but cannot install +until the 16 GB package's SFTL layout has a writer. The install flow also still +lacks the iOS resize step and a boot partition (see Open work), so no iPad +mini 1 installs end to end yet. + ## ARMv7 boot cleanup For [issue #79](https://github.com/OrchardLinux/orchard/issues/79), the @@ -60,8 +79,10 @@ disabled. See [the alignment check](../../docs/bring-up/p105-alignment.md). - Storage: the NAND driver (OrchardLinux/orchard#86, #87), the iOS disk translation layer and its append writes (#89, #91) are in - OrchardLinux/linux `armv7` (`drivers/mtd`); the disk is `applesftlN`, on the 64 GB model - only. Reclamation (#93) is unfinished: until it lands, writes stop once + OrchardLinux/linux `armv7` (`drivers/mtd`); the disk is `applesftlN`: read and write on + the 64 GB model, read-only on the 16 GB model. The merged 16 GB reader + refuses the disk (-EBADMSG, -74) on many boots after iOS has written to it + (the loop of 2026-12-01: 9 of 13 boots refused); the fix is pending. Reclamation (#93) is unfinished: until it lands, writes stop once the blank flash blocks are used up. - Installing: `orchard install` writes a root into an existing Linux LwVM partition (the shared initrd finds it by its LwVM GUID); creating that diff --git a/devices/p105/device.toml b/devices/p105/device.toml index cc21a027a..dd8e4731f 100644 --- a/devices/p105/device.toml +++ b/devices/p105/device.toml @@ -48,26 +48,54 @@ display = "working" screen_off = "untested" backlight = "untested" gpu_desktop = "missing" -touch = "untested" -buttons = "untested" -accelerometer = "missing" +# 16 GB P105, 2026-11-30, Omarchy A running from the iPad's flash on kernels with +# linux#33/#35/#36 (docs/bring-up/p105-16gb.md, "Results on 2026-11-30"): +# touch unlocked the PIN screen and drove the desktop (small targets are hard to hit). +# The N1 boot sequence runs in the kernel (apple-z2, linux#35). Those boots supplied +# a per-unit panel calibration file (mtcal.bin) that the orchard firmware recipe does +# not produce: it is private and comes from the unit's iOS through `orchard mixin`. +# The driver starts without it (warning "starting without panel calibration"), but +# no boot has measured touch that way. +touch = "working" +# Volume buttons worked throughout; Power and Home raise GPIO interrupts and +# worked once the omarchy-powerd 32-bit event crash was patched (omarchy-a#167). +buttons = "working" +# Rotation correct in all four orientations with the mount matrix of -I (linux#35). +accelerometer = "working" gyroscope = "missing" light_sensor = "missing" touch_id = "missing" # On the 64 GB P105, the whole logical disk matched an independent # reconstruction from raw flash captured during the same boot. # A 64 MiB file written through SFTL survived fresh Linux recovery and two -# iOS boots with an unchanged SHA-256. The 16 GB package's layout -# (Cascadia's, mtd 0018) is read-only (no writer modelled) and has not run on -# a tablet. +# iOS boots with an unchanged SHA-256. The 16 GB P105 reads its disk +# (applesftl0, read-only: no writer is modelled) and ran Omarchy A from it +# through dm-linear on 2026-11-30 (linux#33). The merged 16 GB reader refuses the +# disk (-EBADMSG, -74) on many boots after iOS has written to it (the loop of +# 2026-12-01: 9 of 13 boots refused); a fix is pending. storage_read stays +# "working" on the 64 GB evidence. storage_read = "working" -storage_write = "working" -wifi = "untested" +# Qualified on the 64 GB model only (the SFTL writer above). The 16 GB package +# (4 dies x 1064 blocks) mounts read-only: its layout is not modelled for +# writing, as the kernel says at boot ("read-only"). Seen on a 16 GB iPad mini 1, +# 2026-11-30. "untested" is for the 16 GB model; see README.md. +storage_write = "untested" +# 2026-11-30, 16 GB P105: joined a WPA2 network, DHCP and NTP worked, the saved +# profile reconnected on a later boot. An intermittent HSIC re-enumeration race +# can leave wlan0 missing after boot until the EHCI controller is rebound. The +# race was seen on 1 of about 8 boots; a candidate fix is not merged. +wifi = "working" +# Only a Bluetooth speaker was paired; no input device has been tried. bluetooth_input = "untested" -bluetooth_audio = "untested" +# 2026-11-30: a speaker paired, connected and played audio; pairing survived overlay restore. +bluetooth_audio = "working" cellular = "none" -battery = "untested" -charging = "untested" +# 2026-11-30: capacity, current, voltage and status read from the gauge. +battery = "working" +# 2026-11-30: +220 mA into the battery at full brightness on a computer port and +# on a 2 A wall charger. The driver caps the input limit at 975 mA, so wall +# charging is slower than iOS (linux#36; charger-type detection is future work). +charging = "working" charging_control = "untested" suspend = "missing" resume = "missing" @@ -76,7 +104,8 @@ resume = "missing" usb_serial = "working" usb_network = "working" usb_host = "missing" -audio_output = "untested" +# 2026-11-30: the built-in speakers played audio through PipeWire. +audio_output = "working" audio_input = "missing" camera = "missing" video_decode_hevc = "missing" diff --git a/docs/bring-up/p105-16gb.md b/docs/bring-up/p105-16gb.md index 8492d7495..1b677a7dd 100644 --- a/docs/bring-up/p105-16gb.md +++ b/docs/bring-up/p105-16gb.md @@ -241,7 +241,7 @@ failed=0`, with 210 MB in use (210 to 221 MB across boots). | Bluetooth | Working | A Bluetooth speaker paired, connected and played audio. The pairing survived overlay restore. | [linux #35][linux-35] | | Built-in audio | Working | The built-in speaker played audio. | — | | Browser | Firefox/Omafox unusable on 512 MB | It opened after about three minutes. The slim armv7 package set replaces it with NetSurf. | — | -| Power and Home | Kernel events verified; desktop daemon crashes | The pins change level and GPIO interrupts fire, but `omarchy-powerd` crashes on each press. | [omarchy-a #167][omarchy-167] | +| Power and Home | Kernel events verified; daemon crash fixed | The pins change level and GPIO interrupts fire. `omarchy-powerd` crashed on each press until omarchy-a#167 (merged 2026-12-01) fixed it. | [omarchy-a #167][omarchy-167] | | Volume buttons | Working | The owner confirmed both buttons worked throughout testing. | — | | Side switch | Polarity verified | The device tree changed from `SW_MUTE_DEVICE` to `KEY_MUTE`, the mainline convention. The silent position is active. | [linux #36][linux-36] | | Battery gauge | Working | The charging tests used capacity, current, voltage and status readings. | — | diff --git a/docs/compatibility.md b/docs/compatibility.md index 27b5f6679..5bfea8fdc 100644 --- a/docs/compatibility.md +++ b/docs/compatibility.md @@ -15,7 +15,7 @@ Every device Orchard installs on. ✅ works · ❌ doesn't work yet · – no su | Device | Chip | Installs | GPU | Touch | Wi-Fi | Bluetooth | Sound | Charges | Sleep | Rotation | Tested by | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | -| [iPad mini 1 (Wi-Fi)](devices/p105.md) | A5 | ✅ | ❌ | 🤔 | 🤔 | 🤔 | 🤔 | 🤔 | ❌ | ❌ | [shaynelegault](https://github.com/shaynelegault) | +| [iPad mini 1 (Wi-Fi)](devices/p105.md) | A5 | 🤔 | ❌ | ✅ | ✅ | 🤔 | ✅ | ✅ | ❌ | ✅ | [shaynelegault](https://github.com/shaynelegault) | | [iPad Air (Cellular)](devices/j72.md) | A7 | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | [thisiscamk](https://github.com/thisiscamk) | | [iPad Air (China)](devices/j73.md) | A7 | 🤔 | ❌ | 🤔 | 🤔 | 🤔 | 🤔 | 🤔 | 🤔 | 🤔 | – | | [iPad Air (Wi-Fi)](devices/j71.md) | A7 | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | [ricktav](https://github.com/ricktav) | diff --git a/docs/devices/p105.md b/docs/devices/p105.md index af34cfefb..0dbe72af4 100644 --- a/docs/devices/p105.md +++ b/docs/devices/p105.md @@ -17,27 +17,27 @@ Driver: this board's device tree has not been read yet (`tools/catalog/generate - 🤔 **Screen on/off** - 🤔 **Backlight** - ❌ **GPU desktop** -- 🤔 **Touchscreen** -- 🤔 **Buttons** -- ❌ **Accelerometer** +- ✅ **Touchscreen**: 16 GB P105, 2026-11-30, Omarchy A running from the iPad's flash on kernels with linux#33/#35/#36 (docs/bring-up/p105-16gb.md, "Results on 2026-11-30"): touch unlocked the PIN screen and drove the desktop (small targets are hard to hit). The N1 boot sequence runs in the kernel (apple-z2, linux#35). Those boots supplied a per-unit panel calibration file (mtcal.bin) that the orchard firmware recipe does not produce: it is private and comes from the unit's iOS through `orchard mixin`. The driver starts without it (warning "starting without panel calibration"), but no boot has measured touch that way. +- ✅ **Buttons**: Volume buttons worked throughout; Power and Home raise GPIO interrupts and worked once the omarchy-powerd 32-bit event crash was patched (omarchy-a#167). +- ✅ **Accelerometer**: Rotation correct in all four orientations with the mount matrix of -I (linux#35). - ❌ **Gyroscope** - ❌ **Light sensor** - ❌ **Touch ID** -- ✅ **Internal storage read**: On the 64 GB P105, the whole logical disk matched an independent reconstruction from raw flash captured during the same boot. A 64 MiB file written through SFTL survived fresh Linux recovery and two iOS boots with an unchanged SHA-256. The 16 GB package's layout (Cascadia's, mtd 0018) is read-only (no writer modelled) and has not run on a tablet. -- ✅ **Internal storage write** -- 🤔 **Wi-Fi** -- 🤔 **Bluetooth input devices** -- 🤔 **Bluetooth audio** +- ✅ **Internal storage read**: On the 64 GB P105, the whole logical disk matched an independent reconstruction from raw flash captured during the same boot. A 64 MiB file written through SFTL survived fresh Linux recovery and two iOS boots with an unchanged SHA-256. The 16 GB P105 reads its disk (applesftl0, read-only: no writer is modelled) and ran Omarchy A from it through dm-linear on 2026-11-30 (linux#33). The merged 16 GB reader refuses the disk (-EBADMSG, -74) on many boots after iOS has written to it (the loop of 2026-12-01: 9 of 13 boots refused); a fix is pending. storage_read stays "working" on the 64 GB evidence. +- 🤔 **Internal storage write**: Qualified on the 64 GB model only (the SFTL writer above). The 16 GB package (4 dies x 1064 blocks) mounts read-only: its layout is not modelled for writing, as the kernel says at boot ("read-only"). Seen on a 16 GB iPad mini 1, 2026-11-30. "untested" is for the 16 GB model; see README.md. +- ✅ **Wi-Fi**: 2026-11-30, 16 GB P105: joined a WPA2 network, DHCP and NTP worked, the saved profile reconnected on a later boot. An intermittent HSIC re-enumeration race can leave wlan0 missing after boot until the EHCI controller is rebound. The race was seen on 1 of about 8 boots; a candidate fix is not merged. +- 🤔 **Bluetooth input devices**: Only a Bluetooth speaker was paired; no input device has been tried. +- ✅ **Bluetooth audio**: 2026-11-30: a speaker paired, connected and played audio; pairing survived overlay restore. - – **Cellular** -- 🤔 **Battery status** -- 🤔 **Charging** +- ✅ **Battery status**: 2026-11-30: capacity, current, voltage and status read from the gauge. +- ✅ **Charging**: 2026-11-30: +220 mA into the battery at full brightness on a computer port and on a 2 A wall charger. The driver caps the input limit at 975 mA, so wall charging is slower than iOS (linux#36; charger-type detection is future work). - 🤔 **Charging control** - ❌ **Suspend** - ❌ **Resume** - ✅ **USB serial**: The issue #79 RAM boot verified both functions over the attached cable. Cold-handoff qualification is tracked in docs/bring-up/p105-usb-handoff.md. - ✅ **USB network** - ❌ **USB host** -- 🤔 **Speakers** +- ✅ **Speakers**: 2026-11-30: the built-in speakers played audio through PipeWire. - ❌ **Microphone** - ❌ **Cameras** - ❌ **Hardware H.265 video decoding**