diff --git a/CHANGELOG.md b/CHANGELOG.md index cca7f56..f623213 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,10 @@ is on main, the release is published with that section as its notes (AGENTS.md, route: the boot request can end in a USB protocol error while the iBSS takes over, and the run no longer stops there. +- On Linux, the iPhone 5s and other A7 devices start by the ibss route: + the boot ROM's new DFU session after gaster can show as a USB protocol + error instead of a disconnect, and the start no longer stops there. + - The A13 iPhones (iPhone 11, 11 Pro, 11 Pro Max, SE 2nd generation) get their boot firmware built as the A12's: their patched iBSS takes the same borrowed manifest, so no manifest of your own is needed. diff --git a/crates/runtime/src/ibss.rs b/crates/runtime/src/ibss.rs index cd259de..958b6bc 100644 --- a/crates/runtime/src/ibss.rs +++ b/crates/runtime/src/ibss.rs @@ -167,7 +167,10 @@ fn fresh_dfu_after_gaster(session: &mut Session, say: &mut dyn FnMut(&str) dfu.reset().map_err(usb::error)?; break; } - Err(e) if e.kind == orchard_usb::Kind::Disconnected => { + // Leaving mid-transfer can also end it with a protocol error + // (Linux EPROTO: Kind::Fault), as on an A7 (N51); wait_marked + // below still requires the boot ROM back with gaster's mark. + Err(e) if matches!(e.kind, orchard_usb::Kind::Disconnected | orchard_usb::Kind::Fault) => { say("The boot ROM started a new DFU session"); break; }