Repository navigation
ibss: accept verified idle DFU after a lost clear reply - #65
Conversation
|
A second J85 (iPad mini 2 Wi-Fi) got through with this PR, from Linux this time. Host: Ubuntu 26.04.1, kernel 7.0.0-44-generic, Intel xHCI, direct root-hub port. orchard tools Without this PR: 6 runs, each from a fresh DFU entry: 3 on Linux with 0.3.16, 2 on an Intel Mac with 0.3.16, 1 on the Mac with 0.3.14. All of them stopped at With it: one run from a fresh DFU entry.
One thing was left: the installer screen stayed on "Put it in DFU mode again" and logged nothing more after So a second J85 passed the handoff from a cold DFU, on Linux this time rather than macOS. I haven't tested |
|
A third J85 (iPad mini 2 Wi-Fi) with this PR, from Linux. It shows no regression; it does not exercise the new path. Host: Nobara 44, kernel 7.3.1, Intel xHCI, direct root-hub port, USB-A to Lightning. orchard tools With this PR: 4 of 4 What that does and does not show: the three runs I kept logs of all printed checkra1n, for comparison: 4 of 4 runs ended in No device identifiers are included. |
d2fcf89 to
42e0d41
Compare
After gaster, the hand-over to the iBSS clears the DFU status and resets USB. On an iPad mini 2 (J85) on an Intel Mac, the clear went unanswered with IOKit's kIOReturnNotResponding (0xe00002ed), which reaches Orchard as Kind::Other, and the run stopped there, although the device had taken the request and sat idle in DFU. On such an error, which is neither a disconnect nor a fault (those keep their handling), open the device again once, still requiring gaster's mark, and read its status once. Go on if it reads OK and dfuIDLE; otherwise fail with the original error. The normal hand-over (clear, then USB reset) is unchanged for every device; no new loop, and the reopen uses the existing reconnect deadline. Assisted-by: LLM [Orchard: rebased onto main after OrchardLinux#166; narrowed: dropped the status read before every clear, which skipped the clear and the USB reset whenever the device read idle, for every device; kept only the check after an unanswered clear; replaced the tests with ones for that decision; added the changelog line and the commit message.]
42e0d41 to
61ebfff
Compare
|
Thank you, Christopher! This is merged. Your Intel-Mac iPad mini 2 report is what found it: on a Mac, the device can take the request that ends the old DFU session without its answer ever arriving (IOKit's 0xe00002ed, "not responding"), and Orchard stopped there although the iPad was ready. What we changed on your branch before merging:
It reaches people with the next tools release. When it is out, a run of |
Change
CLRSTATUS.CLRSTATUSreply, reopen the marked device and proceed only when a fresh status read reports status 0 anddfuIDLE.Evidence
On a J85 iPad mini 2 attached to an Intel Mac's native USB-A port, Orchard 0.3.2 stopped at
DFU clear status: unknown (error 0xe00002ed)after Gaster succeeded. A subsequent DFU status read reported status 0, state 2 (dfuIDLE), while the Gaster mark remained.With this patch, one separately approved, guarded launch passed that handoff, uploaded patched iBSS and iBEC, started m1n1, and sent the installed system's boot-entry command. After a delay at m1n1's splash, the host enumerated Omarchy Linux USB and serial interfaces. The owner observed the PIN screen, photographed the unlocked desktop, and confirmed opening its settings panel by touch. Read-only SSH through that USB link confirmed
apple,j85, kernel7.3.0-rc1-orchard-apple-4k,/on internal ext4/dev/asp0n1p2,/booton internal vfat/dev/asp0n1p1, and active greetd/Labwc. This is one J85 cold return to the installed desktop with touch. A second independent cold boot is still needed to establish repeatability. The current installed device tree marks the GPU disabled, so this PR does not claim GPU acceleration.Merged tools main
49d38a01(v0.3.7) into this branch.cargo test -p orchard-runtime --lib --offline --locked: 71 passed, 1 ignored, including the three handoff tests. A macOS x86_64 candidate built from this head and passed a read-onlydevicesquery; no second physical J85 boot has been run with it.This changes host DFU state handling only. It does not change boot images or write device storage.