Skip to content

Linux, A7 (J85): --ibss stops right after gaster with "DFU clear status: hardware fault or protocol violation" #151

Backlog

Description

@Etienne-T

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 doctor is 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)

  1. 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.
  2. The next step, ibss: Unwrapping the firmware keys on the device, starts gaster again. That gaster ends at once and prints nothing.
  3. 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 with ChainFailed("DFU clear status: hardware fault or protocol violation").
  4. 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

  1. 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 sudo be 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?
  2. Is apple-mfi-fastcharge known to disturb DFU on Linux? If so, is there a supported way to keep it off the device during a start?
  3. 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

  1. Etienne-T commented on Dec 3, 2026

    @Etienne-T
    ContributorAuthor

    Follow-up: I tried the sudo run 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, with HOME kept as my user's) showed This computer needs to allow USB access for the device. It then rewrote /etc/udev/rules.d/70-orchard-installer.rules with GROUP="root" on every line, with no prompt, since it was already root. It then waited at Connect your device while the J85 sat in DFU, and it never opened the device.

    The cause seems to be usb_access::group(), which runs id -gn. Under sudo that returns root, so needed() sees my user's rule as wrong and replaces it. After that run, orchard doctor as 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 use SUDO_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.

  2. Etienne-T commented on Dec 3, 2026

    @Etienne-T
    ContributorAuthor

    Same failure from a Mac, and with orchard 0.3.14, so it doesn't look specific to Linux or to a recent release:

    • MacBook Pro (Intel), macOS 14.8.1, orchard 0.3.16, 2 runs, each from a fresh DFU entry. gaster prints Now you can boot untrusted images. Then the key-unwrapping gaster run ends at once, with no output. orchard then fails with ChainFailed("DFU clear status: unknown (error 0xe00002ed)"). On macOS the installer then waits for a new DFU entry instead of retrying in a loop.
    • Same Mac, orchard 0.3.14 (748a583), 1 run from a fresh DFU entry. Now you can boot untrusted images., then gaster ended, then the same DFU 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.

  3. Etienne-T commented on Dec 3, 2026

    @Etienne-T
    ContributorAuthor

    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 install again attached to it and finished the install. Should I open a separate issue for that, or leave it here?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions