diff --git a/CHANGELOG.md b/CHANGELOG.md index f2a47a00..fd250fba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,8 @@ is missing or empty. and network, hardware HEVC decoding, and s2idle suspend/resume all work (grierj). - iPhone 7 and 7 Plus: a sound profile for their sound card, so the desktop picks the loudspeakers and the built-in microphone by default. +- iPad 3 (GSM): backlight, battery status, speakers, microphone and USB serial + work (alistairreay). ### Simulator diff --git a/devices/j1/device.toml b/devices/j1/device.toml index d5e58856..4fb38f4e 100644 --- a/devices/j1/device.toml +++ b/devices/j1/device.toml @@ -40,9 +40,9 @@ backlight = "untested" # PMU WLED, from Cascadia PR #35; not run on orchard's bu gpu_desktop = "missing" touch = "untested" # Z2 bootload from userspace, then multitouch contacts on event0. buttons = "missing" -accelerometer = "missing" -gyroscope = "missing" -light_sensor = "missing" +accelerometer = "missing" # Needs linux#137 (not in orchard's kernel yet); seen working on J2A with it. +gyroscope = "missing" # Needs linux#137 (not in orchard's kernel yet); seen working on J2A with it. +light_sensor = "missing" # Needs linux#137 (not in orchard's kernel yet); seen working on J2A with it. touch_id = "none" storage_read = "untested" # same SoC and NAND controller as J2A (linux#103, 2026-12-03): its read-only driver reads 32 GB units, the geometry measured on J2A. storage_write = "missing" diff --git a/devices/j2a/README.md b/devices/j2a/README.md index 089c6cc2..d26b82df 100644 --- a/devices/j2a/README.md +++ b/devices/j2a/README.md @@ -49,3 +49,30 @@ As on J1 (jailbreak + kDFU), from iOS 9.3.6 13G37: - VFL: block 2041, SLC page 0, all 8 lanes; 2032 superblocks. Native context: 82 chunks; lpages 7,812,516 (7,812,500 + 16 hidden). - iOS reuses a named previous context block for user data. The 8 KiB SFTL geometry allows for it. + +## Additional verification (2026-12-04, 64 GB unit, untethered iOS 8.4.1 / 12H321) + +Verified by [@alistairreay](https://github.com/alistairreay) on a 64 GB `iPad3,3` booted from untethered iOS 8.4.1 +(`12H321`) via `kloader` + kDFU (using the 13G37 patched iBSS/iBEC and `g_serial`, since macOS 27 `AppleUserECM` +stalls EP0 on the composite `g_cdc` gadget): + +- **Sensors (`i2c1` & `i2c2`, shared in `s5l8945x-ipad3.dtsi`):** + - `i2c1` (`0x3300000`, IRQ 19, PMGR `0x3f101138 = 0x2ff`): AKM `AK8975` compass at `0x0e` (`WIA = 0x48`, live ~0.24 G). + - `i2c2` (`0x3400000`, IRQ 20, PMGR `0x3f10113c = 0x2ff`): ST `LIS331DLH` accelerometer at `0x19` (`WHO_AM_I = 0x32`, + live ~9.52 m/s²), TAOS `TSL2581` ALS at `0x39` (`ID = 0x93`, proportional raw counts across gain 1/16/111), ST + `L3G4200D` gyroscope at `0x68` (`WHO_AM_I = 0xd3`, live 3-axis angular velocity; `0x6a` absent on this unit). +- **Audio (`CS42L63`, `i2c0 @ 0x4a`):** ID `42 a6 30` rev `b0`; `speaker-test` 440/880 Hz playback at 48 kHz and + internal mic loopback capture at 39.1× SNR (`mean_abs` 41.1 quiet → 1608.5 tone, peak 2710). +- **Battery & charging:** `apple-hdq-battery` on UART5 reports live capacity, voltage, current, temp and cycle count; + with `charge-up` (`0x3e: 0x02 → 0x4a`) and backlight at `200/2047`, status switched to `Charging` at `+242 mA`. +- **Bluetooth (`BCM4330B1` on `UART3`):** Carving `BCM4330B1 37.4 MHz Class 1.5 Olympic Mike Module` (`67030` bytes, + sha256 `a88eee64768c22de10a2a6644dbb2ebedd9b6a268f202be99fcbe7978118aaf4`) from `12H321`'s `/usr/sbin/BlueTool` as + `lib/firmware/brcm/BCM4330B1.hcd` loads build `1367`, brings `hci0` UP RUNNING, and discovers nearby BLE devices + via `hcitool lescan`. +- **64 GB NAND (read-only `/dev/h2fmi-ro` probe):** All four packages (`bus 0/1`, `ce 0/1`, `ce-bitmap = 0x303`) + answer `"PPN" 01 00 03` (PPN 1.3): 4 CAUs (`cau_bits = 2`, 16 lanes total), 2064 blocks/CAU (`12` bits), 256 + pages/block (128 SLC, `8` bits), 8224 B raw page (8 KiB data + 32 B OOB, 2 chunks). +- **GPU (`SGX543MP4`):** With `sgx543.fw` extracted from `iPad3,3`'s `12H321` `kernelcache.release.j2a` (`IMGSGX543` + `__data = 0x16094`, `__const = 0x730`), `apple-sgx` powered on all 4 cores (`SGX543MP4 rev 1.2.2`, + `MASTER_CORE_ID = 0x01194401`), booted the microkernel (`host[0] 0x00000001`), and passed `bench 20` (20/20 2D fills + in 6822 µs, 341 µs/fill, zero `BIF_FAULT`). diff --git a/devices/j2a/device.toml b/devices/j2a/device.toml index 27161582..cb93ba51 100644 --- a/devices/j2a/device.toml +++ b/devices/j2a/device.toml @@ -42,29 +42,29 @@ status = "supported" [features] display = "working" # 2026-12-03: iBoot's scanout, portrait (simpledrm with rotation = <90>; earlier simplefb with fbcon rotated). screen_off = "missing" -backlight = "untested" # PMU WLED on at 1669/2047. -gpu_desktop = "missing" +backlight = "working" # 2026-12-04: PMU WLED cycled 1658 -> 400 -> 200 -> 1658 / 2047 on 64 GB unit. +gpu_desktop = "missing" # 2026-12-04: SGX543MP4 rev 1.2.2 (4 cores) + 12H321 sgx543.fw microkernel booted and passed 20/20 2D fills (341 us each); Mesa desktop not yet run. touch = "working" # 2026-12-03: drove the Omarchy A desktop; touchscreen-inverted-y, lost-frame lift (apple-z2). buttons = "missing" -accelerometer = "missing" -gyroscope = "missing" -light_sensor = "missing" +accelerometer = "missing" # Needs linux#137 (not in orchard's kernel yet). 2026-12-04: ST LIS331DLH (i2c2 @ 0x19) read live values on a 64 GB unit with that change. +gyroscope = "missing" # Needs linux#137 (not in orchard's kernel yet). 2026-12-04: ST L3G4200D (i2c2 @ 0x68) read live values on a 64 GB unit with that change. +light_sensor = "missing" # Needs linux#137 (not in orchard's kernel yet). 2026-12-04: TAOS TSL2581 (i2c2 @ 0x39) read live values on a 64 GB unit with that change. touch_id = "none" -storage_read = "working" # 2026-12-03: Omarchy A ran from LwVM partition 3 through the read-only NAND driver and SFTL on 8 KiB pages. +storage_read = "working" # 2026-12-03: Omarchy A ran from LwVM partition 3 through the read-only NAND driver and SFTL on 8 KiB pages (32 GB PPN 1.6); 64 GB PPN 1.3 geometry also probed read-only. storage_write = "missing" # the NAND driver is read-only: no program or erase path; the root is written from iOS. -wifi = "untested" # BCM4330 firmware loaded, wlan0 up; association not tried. -bluetooth_input = "missing" +wifi = "untested" # 2026-12-04: BCM4330 firmware loaded, wlan0 up and scanned 2.4 GHz + 5 GHz SSIDs; WPA2 association not tried. +bluetooth_input = "missing" # 2026-12-04: BLE scans worked with BCM4330B1 patchram carved from iOS by hand; the firmware recipe does not install it yet. bluetooth_audio = "missing" cellular = "missing" # baseband (n90) present in the ADT, left unclaimed. -battery = "missing" -charging = "untested" # PMU input limit raised to ~1000 mA by the kit's charge-up. +battery = "working" # 2026-12-04: apple-hdq-battery on UART5 reports live capacity (92%), voltage (4.031-4.055 V), current (-63 to +242 mA), temp (31.3 C) and cycle count (632). +charging = "untested" # 2026-12-04: charged at +242 mA (status=Charging) only after raising the PMU input limit by hand (0x3e 0x02 -> 0x4a); nothing in orchard does that yet. charging_control = "missing" suspend = "missing" resume = "missing" -usb_serial = "untested" # Root shell on ttyGS0. -usb_network = "untested" # CDC ECM, link-local; bulk NAND dumps at up to 5.9 MB/s. -usb_host = "untested" # EHCI for the Wi-Fi HSIC. -audio_output = "missing" -audio_input = "missing" +usb_serial = "working" # 2026-12-04: root shell on ttyGS0 over g_serial. +usb_network = "untested" # CDC ECM, link-local; bulk NAND dumps at up to 5.9 MB/s (note: macOS 27 AppleUserECM can stall EP0 on g_cdc). +usb_host = "untested" # EHCI drives the internal Wi-Fi HSIC link (2026-12-04); devices on the dock port not tried. +audio_output = "working" # 2026-12-04: I2S0 + CS42L63 (i2c0 @ 0x4a, ID 42 a6 30 rev b0), 440/880 Hz sine playback at 48 kHz. +audio_input = "working" # 2026-12-04: CS42L63 internal mic captured 880 Hz speaker tone at 39.1x SNR (mean_abs 41.1 -> 1608.5, peak 2710). camera = "missing" video_decode_hevc = "missing" diff --git a/docs/devices/j1.md b/docs/devices/j1.md index cac93384..89b69432 100644 --- a/docs/devices/j1.md +++ b/docs/devices/j1.md @@ -19,9 +19,9 @@ Driver: this board's device tree has not been read yet (`tools/catalog/generate - ❌ **GPU desktop** - 🤔 **Touchscreen**: Z2 bootload from userspace, then multitouch contacts on event0. - ❌ **Buttons** -- ❌ **Accelerometer** -- ❌ **Gyroscope** -- ❌ **Light sensor** +- ❌ **Accelerometer**: Needs linux#137 (not in orchard's kernel yet); seen working on J2A with it. +- ❌ **Gyroscope**: Needs linux#137 (not in orchard's kernel yet); seen working on J2A with it. +- ❌ **Light sensor**: Needs linux#137 (not in orchard's kernel yet); seen working on J2A with it. - – **Touch ID** - 🤔 **Internal storage read**: same SoC and NAND controller as J2A (linux#103, 2026-12-03): its read-only driver reads 32 GB units, the geometry measured on J2A. - ❌ **Internal storage write** diff --git a/docs/devices/j2a.md b/docs/devices/j2a.md index 4551d72b..8c0090a7 100644 --- a/docs/devices/j2a.md +++ b/docs/devices/j2a.md @@ -15,30 +15,30 @@ Driver: this board's device tree has not been read yet (`tools/catalog/generate - ✅ **Display**: 2026-12-03: iBoot's scanout, portrait (simpledrm with rotation = <90>; earlier simplefb with fbcon rotated). - ❌ **Screen on/off** -- 🤔 **Backlight**: PMU WLED on at 1669/2047. -- ❌ **GPU desktop** +- ✅ **Backlight**: 2026-12-04: PMU WLED cycled 1658 -> 400 -> 200 -> 1658 / 2047 on 64 GB unit. +- ❌ **GPU desktop**: 2026-12-04: SGX543MP4 rev 1.2.2 (4 cores) + 12H321 sgx543.fw microkernel booted and passed 20/20 2D fills (341 us each); Mesa desktop not yet run. - ✅ **Touchscreen**: 2026-12-03: drove the Omarchy A desktop; touchscreen-inverted-y, lost-frame lift (apple-z2). - ❌ **Buttons** -- ❌ **Accelerometer** -- ❌ **Gyroscope** -- ❌ **Light sensor** +- ❌ **Accelerometer**: Needs linux#137 (not in orchard's kernel yet). 2026-12-04: ST LIS331DLH (i2c2 @ 0x19) read live values on a 64 GB unit with that change. +- ❌ **Gyroscope**: Needs linux#137 (not in orchard's kernel yet). 2026-12-04: ST L3G4200D (i2c2 @ 0x68) read live values on a 64 GB unit with that change. +- ❌ **Light sensor**: Needs linux#137 (not in orchard's kernel yet). 2026-12-04: TAOS TSL2581 (i2c2 @ 0x39) read live values on a 64 GB unit with that change. - – **Touch ID** -- ✅ **Internal storage read**: 2026-12-03: Omarchy A ran from LwVM partition 3 through the read-only NAND driver and SFTL on 8 KiB pages. +- ✅ **Internal storage read**: 2026-12-03: Omarchy A ran from LwVM partition 3 through the read-only NAND driver and SFTL on 8 KiB pages (32 GB PPN 1.6); 64 GB PPN 1.3 geometry also probed read-only. - ❌ **Internal storage write**: the NAND driver is read-only: no program or erase path; the root is written from iOS. -- 🤔 **Wi-Fi**: BCM4330 firmware loaded, wlan0 up; association not tried. -- ❌ **Bluetooth input devices** +- 🤔 **Wi-Fi**: 2026-12-04: BCM4330 firmware loaded, wlan0 up and scanned 2.4 GHz + 5 GHz SSIDs; WPA2 association not tried. +- ❌ **Bluetooth input devices**: 2026-12-04: BLE scans worked with BCM4330B1 patchram carved from iOS by hand; the firmware recipe does not install it yet. - ❌ **Bluetooth audio** - ❌ **Cellular**: baseband (n90) present in the ADT, left unclaimed. -- ❌ **Battery status** -- 🤔 **Charging**: PMU input limit raised to ~1000 mA by the kit's charge-up. +- ✅ **Battery status**: 2026-12-04: apple-hdq-battery on UART5 reports live capacity (92%), voltage (4.031-4.055 V), current (-63 to +242 mA), temp (31.3 C) and cycle count (632). +- 🤔 **Charging**: 2026-12-04: charged at +242 mA (status=Charging) only after raising the PMU input limit by hand (0x3e 0x02 -> 0x4a); nothing in orchard does that yet. - ❌ **Charging control** - ❌ **Suspend** - ❌ **Resume** -- 🤔 **USB serial**: Root shell on ttyGS0. -- 🤔 **USB network**: CDC ECM, link-local; bulk NAND dumps at up to 5.9 MB/s. -- 🤔 **USB host**: EHCI for the Wi-Fi HSIC. -- ❌ **Speakers** -- ❌ **Microphone** +- ✅ **USB serial**: 2026-12-04: root shell on ttyGS0 over g_serial. +- 🤔 **USB network**: CDC ECM, link-local; bulk NAND dumps at up to 5.9 MB/s (note: macOS 27 AppleUserECM can stall EP0 on g_cdc). +- 🤔 **USB host**: EHCI drives the internal Wi-Fi HSIC link (2026-12-04); devices on the dock port not tried. +- ✅ **Speakers**: 2026-12-04: I2S0 + CS42L63 (i2c0 @ 0x4a, ID 42 a6 30 rev b0), 440/880 Hz sine playback at 48 kHz. +- ✅ **Microphone**: 2026-12-04: CS42L63 internal mic captured 880 Hz speaker tone at 39.1x SNR (mean_abs 41.1 -> 1608.5, peak 2710). - ❌ **Cameras** - ❌ **Hardware H.265 video decoding**