Skip to content

n71m: record the first RAM hardware-check on an iPhone 6s - #341

Merged
henrikklee merged 1 commit into
OrchardLinux:mainfrom
jeroentrappers:n71m-hardware-check
Nov 30, 2026
Merged

henrikklee merged 1 commit into
OrchardLinux:mainfrom
jeroentrappers:n71m-hardware-check

Conversation

@jeroentrappers

Copy link
Copy Markdown
Contributor

n71m: record the first RAM hardware-check on an iPhone 6s

Nothing had run on the iPhone 6s (TSMC, n71m) with Orchard yet. This records a RAM boot of
examples/hardware-check on one (nightly-20261129-f7dfed5c300f, apple-16k kernel 7.3.0-rc1, firmware from
iOS 15.8.8 19H422), plus hardware-check touch and a Wi-Fi association.

Feature Result
display boot console on the LCD; card1-eDP-1 + fb0
backlight 20e200080.backlight set to 511/2047 and restored
touch apple-z2 on spi2: 4 corner taps + centre, corner-to-corner drag (14,32)->(724,1325), two fingers at once
accelerometer / gyroscope AOP: about 1 g at rest (0.01 -0.07 -9.74 m/s^2), gyro about 0; the N66 mount matrix fits
storage_read nvme0n1 64 GB, 1 GiB in 2 s, every namespace read-only, no faults
wifi BCM4350/8 albarossa, 7.64.133.15: scan, WPA2 2.4 GHz association in 6 s, DHCP, gateway + internet ping
bluetooth_input stays untested: hci0 binds, BCM.apple,n71m-MUR.hcd loads, no HCI errors; pairing not tested
battery bq27540 over HDQ: 10 readings without errors
charging 500 mA in (USB 2.0 grant), battery +280 mA; on a host port whose VBUS sagged, the foldback stopped at 270 mA
usb_serial / usb_network CDC ACM console; 172.16.42.1, orchard exec over SSH

Kernel log: no IOMMU faults, NVMe timeouts, warnings or oopses.

Boot notes from the host side (Debian 13, Ryzen, orchard 0.3.0), for separate issues in OrchardLinux/tools:

  • the palera1n route only reached Pongo with --busy-cpu (four failures without it, first try with it);
  • ModemManager opened the payload's ttyACM0, so orchard exec failed until it was stopped.

tools/catalog/generate matrix regenerated docs/compatibility.md; CHANGELOG.md has the entry under Unreleased.

Nothing had run on the iPhone 6s (TSMC, N71m) with Orchard before. A RAM
boot of examples/hardware-check (nightly-20261129, apple-16k kernel
7.3.0-rc1) on one, plus the touch and Wi-Fi association checks, shows
these working: display, backlight, touch, accelerometer, gyroscope,
internal storage reads (NVMe, read-only), Wi-Fi (BCM4350 albarossa,
WPA2 + DHCP), battery (bq27540 over HDQ), SN2400 charging at the USB
host's grant, USB serial and USB network. Bluetooth binds and loads its
Patchram, but pairing was not tested, so it stays untested. Add
jeroentrappers to tested_by and regenerate the matrix.

Assisted-by: LLM
@markxmayer

Copy link
Copy Markdown

Adding the Samsung sibling: RAM boot of an n71 (A1688/MKRY2LL/A, iOS 15.8.8 19H422, orchard 0.3.1 + nightly-20261129-f7dfed5c300f, apple-16k 7.3.0-rc1), examples/minimal-boot payload (not hardware-check, so storage/touch/wifi untested):

  • palera1n route: first attempt did not bring up Pongo; automatic second attempt worked. No --busy-cpu needed on this host (omarchy, USB-A).
  • ~108 s device-side boot to a RAM-only Linux; shell over CDC ACM (/dev/ttyACM0).
  • Machine model reads apple,n71; 2 GB RAM; boot console + framebuffer on the panel (adbe display engine + simpledrm, fb0 750x1334, backlight on).
  • Input: gpio-keys (power/volume) on event0; no touch probe in this payload.
  • NVMe: nothing binds (DT nvme-hmb reservation present); Wi-Fi/BT not exercised.
  • Host note: the payload must come from a checkout on a filesystem with ≥10 GB free — /tmp on this machine was too small and the first orchard run refused before touching the device.

Plan is to run examples/hardware-check and then an install attempt on this unit; will report back. Full dmesg captured; happy to paste excerpts if useful.

@markxmayer

Copy link
Copy Markdown

Follow-up on the n71 (Samsung) from earlier today — ran examples/hardware-check on the same unit (nightly-20261129-f7dfed5c300f, apple-16k 7.3.0-rc1):

Check Result
storage NVMe nvme0n1 64 GB, 1 GiB read in 4 s, all namespaces/partitions read-only, no faults
PCIe nvme + brcmfmac enumerated (0000:01:00.0, 0000:02:00.0)
Wi-Fi brcmfmac BCM4350/8 (7.64.133.15), firmware loads, scan finds 23 networks; association not tested (no wpa_supplicant in payload)
Bluetooth hci0 registers (BCM4350C5, BCM.apple,n71-USI.hcd patch), no HCI timeouts; pairing untested
accelerometer/gyro apple-aop-accel ~1 g at rest, gyro ~0; mount matrix 1,0,0;0,1,0;0,0,-1
battery bq27540-style readings OK; on USB 2.0 (500 mA input limit), ~92%
display/backlight eDP via adbe + simpledrm, 750x1334 fb, backlight settable 0-2047
touch apple_z2 on spi2: PASS with user drag, 7876 events (only after actually touching; first 20 s window with nobody touching correctly reported no events)
kernel log no IOMMU faults, NVMe timeouts, warnings or oopses

iOS remains untouched (RAM-only). Overall: feature-parity with the n71m report except association/pairing untested. Next step for this unit: install.

@markxmayer

Copy link
Copy Markdown

Wi-Fi follow-up on the n71: with a wpa_supplicant.conf in the live RAM rootfs — firmware loads, scan finds 23 networks, association in 4 s, DHCP lease 172.16.11.150/24, gateway ping OK. (Association only tested; no download test.) Full Wi-Fi path confirmed working on this board.

@henrikklee
henrikklee merged commit afc1ddf into OrchardLinux:main Nov 30, 2026
11 checks passed
@henrikklee henrikklee mentioned this pull request Nov 30, 2026
@markxmayer

Copy link
Copy Markdown

Install success + the "opening the m1n1 proxy: permission denied (errno 13)" launch failure, root-caused (iPhone 6s, n71, Samsung, orchard 0.3.1→0.3.7, Arch Linux host)

Minimal Alpine 0.3.3 installed cleanly (resize → install ~10 min), iOS untouched. First launch booted fine, then launch failed 4/5 times with opening the m1n1 proxy: permission denied (errno 13).

Root cause is a host-side race, not the rules. In Proxy::open (tools crates/usb/src/m1n1.rs), nusb opens the freshly enumerated 1209:316d node immediately after the Pongo→m1n1 handoff. devtmpfs creates that node root:root; GROUP/uaccess from the setup rules land only once udev processes the hotplug — behind a flood of DFU/Pongo re-enumerations. A 50 ms watcher on the bus confirms it: the m1n1 node is first observed root:root:660, with the ACL only applied later. As the seat user the open is EACCES; no retry in the launcher. The one success was a won race.

Workaround: sudo orchard launch — root bypasses node permissions; 2/2 boots. Note sudo orchard setup usb rewrites the rules root-style (user-side doctor then fails until the user re-runs setup usb) and its device probe can knock the phone to recovery mode; force-restart out of it.

Suggestion for a proper fix: retry the proxy open for a few seconds (or poll for the udev settle) instead of failing on the first EACCES.

Everything else holds: persistence verified across hard power-offs (ext4 root intact, authorized_keys survives), SSH over the USB gadget, and the RAM-boot hardware check passed earlier on this device.

@henrikklee

Copy link
Copy Markdown
Contributor

@jeroentrappers thanks again for testing! The compatibility table lists your results as confirmed. A few features on your device still show should work because nobody has confirmed them yet — if you get a moment with the current release (install, or orchard update + Update > Omarchy), could you check these and reply with which work and which don't?

iPhone 6s (S8003) (n71m):

  • screen off / on (power button)
  • GPU desktop (smooth, not software)
  • buttons (power, volume, Home)
  • auto-brightness (light sensor)
  • installing to internal storage
  • a Bluetooth keyboard or mouse
  • Bluetooth headphones
  • sleep
  • waking from sleep
  • speaker
  • H.265 video playback

orchard run hardware-check (no install needed) reports most of the hardware in one go; for sleep, charging and sound a quick manual try is enough. A short "works / doesn't" per line is all we need. Thank you!

@markxmayer

Copy link
Copy Markdown

Status update from the same iPhone 6s (n71, S8000/Samsung): Omagy A installed to internal storage and running as a daily-usable system.

Working, verified end-to-end:

  • Boots from NVMe (p3) via checkm8-pongo chain; iOS on p1 intact and still boots
  • GPU desktop via Zink/powervr (renderD128)
  • Touchscreen, incl. display rotation
  • Audio output (speakers)
  • Wi-Fi: brcmfmac_wcc associates and gets DHCP; with NetworkManager's stored profile the connection auto-activates ~4 s into boot, fully unattended
  • Bluetooth (input devices + audio)
  • Battery/charging indicator

Not working / not present (consistent with the compat matrix):

  • Microphone — no driver binds on n71
  • Cameras — as expected (missing on all devices)
  • Energy-profile management — no power-profiles/cpufreq control exposed
  • "Reboot" from the desktop powers off rather than rebooting (RAM-only boot chain; expected on checkm8)

One instability worth flagging: after an extended desktop session the USB gadget died — host kernel logged device descriptor read/64, error -110 / error -71 and the device dropped off the bus while the desktop itself kept running. Has not reproduced since; we now keep a synced dmesg capture on persistent storage, so we'll report back with logs if it recurs.

Thanks for the project — the phone is genuinely usable now.

@henrikklee

Copy link
Copy Markdown
Contributor

Thanks @markxmayer, great to hear it's your daily phone now! Your iPhone 6s (Samsung) results are going into the compatibility table in #489: GPU desktop, touch, speaker, Bluetooth input and audio, battery level and USB networking now show as working. If the USB gadget drops off again, please open an issue with the dmesg you capture.

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.

3 participants