Repository navigation
Description
orchard: 0.3.16 (2cc109f) · Device: iPad mini 2 Wi-Fi (J85, CPID 0x8960), iPadOS removed (empty GPT on the user disk, as in docs/remove-ios.md) · Host: Ubuntu 26.04.1, kernel 7.0.0-44-generic, Intel Cannon Point-LP xHCI, direct root-hub port, no hub · Distribution: omarchy-a v0.4.8 release.toml
I'd like to install on this J85 from Linux, by the ibss route that docs/bring-up/j85m.md describes. Three runs, each from a fresh DFU entry, stopped at the same point.
Setup
orchard install <omarchy-a v0.4.8 release.toml> --ibss --no-split --no-ssh --password-file … --pin-file … --wait 600, as a normal user.orchard doctoris all "ready". The udev rule is 0.3.16's.- The usbcore settings from j85m.md, applied at runtime:
old_scheme_first=Y,initial_descriptor_timeout=10000,autosuspend=-1. - fwupd is masked, as in #408.
- checkra1n (
checkm8-pongo) booted this J85 from this host many times while iPadOS was installed. Since iPadOS was removed, it ends with "Pongo did not appear on USB" and the device in recovery mode.
What happens (identical in the three runs)
- gaster runs RESET, SETUP, SPRAY and PATCH, then prints
Now you can boot untrusted images.The device comes back by itself after 0.1 s. - The next step,
ibss: Unwrapping the firmware keys on the device, starts gaster again. That gaster ends at once and prints nothing. - The device then drops off USB and re-enumerates as 05ac:1227 every 0.4 to 1 s. The serial still carries
PWND:[gaster]. orchard fails withChainFailed("DFU clear status: hardware fault or protocol violation"). - The installer retries as soon as it sees DFU again, about once a second. Each retry fails the same way. In the first run I stopped it after 9 failures. j85m.md says a retry from this half-finished state fails at once.
Kernel log around step 2 (ECID removed). The process named tool is gaster:
usb 1-1: usbfs: process … (tool) did not claim interface 0 before use
usb 1-1: reset high-speed USB device number 46 using xhci_hcd
apple-mfi-fastcharge 1-1: usbfs: process … (tool) did not claim interface 0 before use
apple-mfi-fastcharge 1-1: reset high-speed USB device number 46 using xhci_hcd
apple-mfi-fastcharge 1-1: device firmware changed
apple-mfi-fastcharge 1-1: USB disconnect, device number 46
usb 1-1: new high-speed USB device number 47 using xhci_hcd
usb 1-1: Product: Apple Mobile Device (DFU Mode) SerialNumber: … PWND:[gaster]
apple-mfi-fastcharge 1-1: USB disconnect, device number 47
usb 1-1: new high-speed USB device number 48 using xhci_hcd
apple-mfi-fastcharge 1-1: USB disconnect, device number 48
…
The kernel's apple-mfi-fastcharge driver binds to the DFU device. Before run 3 I unloaded it and blacklisted it in /run/modprobe.d. It was loaded again when the run started (usbcore: registered new device driver apple-mfi-fastcharge), so I couldn't test without it.
Questions
- Could this be the same thing as Linux, A8X (J81): the boot fails unless orchard runs as root. Pongo never comes up, and the device drops to recovery mode #119? There, the device came back after the exploit, before the USB rule applied to its new node. Linux: start exploit tools only once the device opens; name a refused tool as a USB permission timeout #139 covers palera1n and checkra1n. Does it also cover the second gaster run (key unwrapping) on the ibss route? The empty output of that gaster run would fit a refused open. Would a run with
sudobe a useful test here, as in Linux, A8X (J81): the boot fails unless orchard runs as root. Pongo never comes up, and the device drops to recovery mode #119? - Is
apple-mfi-fastchargeknown to disturb DFU on Linux? If so, is there a supported way to keep it off the device during a start? - After this failure, should the installer ask for a fresh DFU entry instead of retrying on the half-finished device?
I can run more tests on this J85 (a sudo run, a full --log, other settings) and post the logs.
Activity
Etienne-T commentedon Dec 3, 2026
Follow-up: I tried the
sudorun from #119. It doesn't work as a test here, and it breaks the normal user's USB access.sudo orchard install … --ibss(orchard 0.3.16, same release and options as above, withHOMEkept as my user's) showedThis computer needs to allow USB access for the device. It then rewrote/etc/udev/rules.d/70-orchard-installer.ruleswithGROUP="root"on every line, with no prompt, since it was already root. It then waited atConnect your devicewhile the J85 sat in DFU, and it never opened the device.The cause seems to be
usb_access::group(), which runsid -gn. Under sudo that returnsroot, soneeded()sees my user's rule as wrong and replaces it. After that run,orchard doctoras my user reported USB access as missing, until I put the rule with my user's group back.So the #119 advice ("starting orchard with sudo gets past it") doesn't fit the ibss route as it is. Maybe
group()could useSUDO_USER's group when run under sudo, or not touch the rule when running as root. The questions above still stand, especially whether the second gaster run (key unwrapping) waits for the device to open, as #139 does for palera1n and checkra1n.Etienne-T commentedon Dec 3, 2026
Same failure from a Mac, and with orchard 0.3.14, so it doesn't look specific to Linux or to a recent release:
Now you can boot untrusted images.Then the key-unwrapping gaster run ends at once, with no output. orchard then fails withChainFailed("DFU clear status: unknown (error 0xe00002ed)"). On macOS the installer then waits for a new DFU entry instead of retrying in a loop.Now you can boot untrusted images., thengaster ended, then the sameDFU clear status: unknown (error 0xe00002ed)0.5 s later. The 0.3.14 log has no separate key-unwrapping step.On both hosts and both versions, the first DFU request orchard sends after gaster has finished fails on this J85. That makes 6 runs on two hosts (3 on Linux, 3 on the Mac) with the same result. I can run a build with more logging around that step, if that helps.
Etienne-T commentedon Dec 3, 2026
Update: the draft PR #65 fixes this on this J85, on Linux. Details: #65 (comment)
With #65, the first attempt still fails. The automatic retry then finds the boot ROM idle and boots the Install payload. Omarchy A v0.4.8 is now installed and runs.
One problem is left, the one docs/bring-up/j85m.md describes. After that retry succeeds, the installer stays on "Put it in DFU mode again" and doesn't go on with the install, even though the Install payload is up (05ac:4146). Starting
orchard installagain attached to it and finished the install. Should I open a separate issue for that, or leave it here?