Skip to content

devices/j2a: record verified hardware features and 64 GB bring-up findings - #526

Merged
henrikklee merged 3 commits into
OrchardLinux:mainfrom
alistairreay:j2a-hardware-verification
Dec 4, 2026
Merged

henrikklee merged 3 commits into
OrchardLinux:mainfrom
alistairreay:j2a-hardware-verification

Conversation

@alistairreay

Copy link
Copy Markdown
Contributor

Summary

Records hardware verification and bring-up measurements from a 64 GB iPad 3 (GSM) (iPad3,3 / j2a, A5X / S5L8945X) booted into RAM from untethered iOS 8.4.1 (12H321) via kloader + kDFU (using the 13G37 patched iBSS/iBEC and GCC 11.4 ARMv7 zImage with g_serial).

Dependency: The three I2C2 sensor entries (accelerometer, gyroscope, light_sensor) depend on OrchardLinux/linux#137 merging first (and being taken into kernel/upstream-armv7.lock). All other verified features use drivers and DT nodes already in OrchardLinux/linux armv7.

Hardware test results (64 GB iPad3,3, Linux 6.12.0 SMP)

Verified working on j2a

  • Backlight (backlight): apple-pmu-wled cycled 1658 → 400 → 200 → 1658 / 2047, visibly dimming and brightening.
  • Battery (battery): apple,s5l8940x-hdq-battery on UART5 reports live telemetry (capacity=92%, voltage=4.031–4.055 V, temp=31.3 °C, cycle_count=632, charge_full=6588 mAh).
  • Charging (charging): PMU 0x3e raised 0x02 → 0x4a (~1000 mA limit); dimming backlight to 200/2047 flipped status from Discharging (-63 mA) to Charging (+242 mA) at 4.055 V.
  • Speakers (audio_output) & Microphone (audio_input): s5l-audio + CS42L63 (i2c-0 @ 0x4a, ID 42 a6 30 rev b0) + TS3A8235 (0x3b). speaker-test played 440/880 Hz sine waves at 48 kHz; internal mic loopback recorded quiet vs. 880 Hz speaker tone at 39.1× SNR (mean_abs 41.1 → 1608.5, peak 2710) and played back cleanly via aplay.
  • Sensors (accelerometer, gyroscope, light_sensor, plus ak8975 compass) (via ARM: dts: apple: ipad3: Add I2C1 and I2C2 sensor buses linux#137):
    • i2c-1 @ 0x0e (ak8975, WIA=0x48): live ~0.24 G magnetic field
    • i2c-2 @ 0x19 (lis331dlh, WHO_AM_I=0x32): live ~9.52 m/s² gravity vector
    • i2c-2 @ 0x39 (tsl2581, ID=0x93): proportional photodiode counts across gain 1 → 16 → 111 (0 → 3 → 23 both, 0 → 1 → 5 IR)
    • i2c-2 @ 0x68 (l3g4200d, WHO_AM_I=0xd3): live 3-axis angular velocity (0x6a absent on this unit)
    • Marked untested on sibling devices/j1/device.toml since s5l8945x-ipad3.dtsi is shared.
  • USB serial (usb_serial) & USB host (usb_host): root shell on ttyGS0 over g_serial, and ehci-platform driving BCM4330 Wi-Fi over HSIC. (Note: on macOS 27.0.1, AppleUserECM stalls EP0 with 0xe00002d6 on g_cdc composite; g_serial avoids this.)

Other findings documented in devices/j2a/README.md

  • Bluetooth (bluetooth_input kept untested): Carved BCM4330B1 37.4 MHz Class 1.5 Olympic Mike Module (67,030 B, sha256 a88eee64…) from 12H321 /usr/sbin/BlueTool → lib/firmware/brcm/BCM4330B1.hcd. Loaded build 1367, brought hci0 UP RUNNING, and discovered ~10 nearby BLE devices via hcitool lescan. Kept untested until HID pairing is tested.
  • Wi-Fi (wifi kept untested): wlan0 up and scanned both 2.4 GHz and 5 GHz SSIDs; WPA2 association not yet tested.
  • 64 GB NAND (read-only /dev/h2fmi-ro probe): All 4 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), 2064 blocks/CAU (12 bits), 256 pages/block (128 SLC, 8 bits), 8224 B raw page (8 KiB data + 32 B OOB).
  • GPU (gpu_desktop kept missing): With sgx543.fw extracted from iPad3,3 12H321 kernelcache.release.j2a (IMGSGX543 __data = 0x16094, __const = 0x730), apple-sgx.ko 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 each, zero BIF_FAULT).

Validation

  • ./tools/catalog/generate matrix
  • ./bin/orchard python -m unittest tests/test_catalog.py tests/test_manifests.py tests/test_platforms.py tests/test_identity.py tests/test_routes.py tests/test_firmware_recipes.py tests/test_armv7_direct.py (111 tests, OK)

alistairreay and others added 3 commits December 4, 2026 06:04
…dings

Record hardware verification on a 64 GB iPad 3 GSM (iPad3,3 / J2A) booted
from untethered iOS 8.4.1 (12H321) via kloader + kDFU:

- Backlight, battery telemetry, net positive charging (+242 mA), speakers
  and internal microphone (39.1x loopback SNR), USB serial and USB host
  verified working on J2A.
- I2C1/I2C2 sensors (LIS331DLH accelerometer, L3G4200D gyroscope, TSL2581
  ALS, AK8975 compass) verified working on J2A (and marked untested on J1),
  depending on OrchardLinux/linux#137.
- Bluetooth (BCM4330B1 Mike Module patchram carved from 12H321 BlueTool)
  marked untested with live BLE scan verified.
- Documented 64 GB PPN 1.3 NAND geometry (read-only probe) and SGX543MP4
  rev 1.2.2 4-core microkernel boot + 2D fill benchmark in devices/j2a/README.md.
Sensors need linux#137, which is not in orchard's kernel yet: keep them
missing on J2A and J1 with the J2A results in the note. Charging only
worked after a manual PMU write, Bluetooth with firmware carved by hand,
and USB host was the internal Wi-Fi link: keep them untested/missing
with the measurements.
@henrikklee
henrikklee merged commit 6146e67 into OrchardLinux:main Dec 4, 2026
@henrikklee

Copy link
Copy Markdown
Contributor

Merged — thank you @alistairreay, this is a careful write-up of a lot of testing.

What I changed on your branch: the device pages say what someone who installs Omarchy A gets, so a few entries stay below "working" for now. Your measurements are kept in each note:

  • the sensors need linux#137, which isn't in orchard's kernel yet. They move up when orchard takes it;
  • charging only started after the manual PMU write, which nothing in orchard does yet;
  • Bluetooth needs the patchram carved from iOS; the firmware recipe doesn't install it yet;
  • "USB host" was the internal Wi-Fi link; the dock port wasn't tried.

I also merged main and shortened the changelog line. A firmware-recipe step for the Bluetooth patchram and the PMU input limit in the charger driver would turn those entries green; either would be a welcome follow-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants