j72 (iPad Air, A7) on AMD X670 host: PongoOS panics in USB after checkm8 (USB BUG 0x73656e642034); gaster SETUP never completes
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- linux, python
- Ambito
- devtools, embedded-iot
Direzione di ricerca
Start by reading related issues #190 and #236 and tracing the orchard install --disk --ibss path that invokes gaster; the issue does not name source files or tests. Reproduce the reported behavior on the AMD X670 host and compare the checkra1n and gaster logs. Done means identifying and fixing the reported USB installation failures, and making the gaster unplug and replug prompt visible to the user if that is in scope.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
iPad Air (Cellular) j72 (A7, CPID 0x8960) on iPadOS 12.5.8 can't be started or installed from a Linux host with AMD USB controllers. Each route fails at a different point:
- checkra1n route: checkm8 succeeds and PongoOS boots, then PongoOS panics in its USB stack while the host enumerates it (
panic: USB BUG: 0x73656e642034= "send 4"). checkra1n then reportsTimed out waiting for PongoOS. - ibss route (gaster): with the defaults, SETUP never gets out a single byte (
abort after 0 to 0 ms,0 to 0 bytes went out) until the 120 s limit. WithORCHARD_GASTER_ABORT_MAX=2bytes do go out (0 to 2048, ~1/3 of attempts under 1472), but SETUP still doesn't finish, and after ~7000 attempts the device leaves DFU by itself.
Environment
- orchard 0.3.13 (89bd576c1f76), board data v0.3.20, Omarchy A v0.4.6 installer
- checkra1n 0.1337.3, PongoOS 2.6.3-7ddd2752 (booted by iBoot-4513.270.14)
- Host: Linux 7.2.15 x86_64, Gigabyte X670 GAMING X AX (AMD Raphael CPU + AMD 600-series chipset)
- USB controllers:
- bus 1/3: AMD 600 Series chipset USB 3.2 (13:00.0, 15:00.0)
- bus 5/7: AMD Raphael USB 3.1 xHCI (18:00.3, 18:00.4)
- bus 9: AMD Raphael USB 2.0 xHCI (19:00.0), whose rear ports all sit behind an onboard Genesys GL850G hub (05e3:0608)
What each port does
| Port | checkm8 (checkra1n) | After that |
|---|---|---|
| bus 1 (chipset, shared with webcam/hubs) | fails: UaF race: heuristic strategy failed loop until -status_exploit |
— |
| bus 5 (CPU USB 3, root port, no hub) | fails: Failed issuing transaction abort! 16 → -status_exploit |
— |
| bus 9 (CPU USB 2.0, via GL850G hub) | "Checkmate!", works reliably | PongoOS boots, then panics in USB (below) |
PongoOS panic (copied from a photo of the screen)
pongoOS 2.6.3-7ddd2752
Booted by: iBoot-4513.270.14
Built with: Clang 15.0.0 (clang-1500.0.40.1)
Running on: Apple A7 (S5L8960)
Enabling USB
Done!
pongoOS> ep->dir_in = 1
ep->transfer_size = 0x9
ep->transferred = 0x0
ep->in_flight = 0x9
panic: USB BUG: 0x73656e642034
crashed task: usb
crashed process: kernel
Call stack:
0xfffffffe000b7650: fp 0xfffffffe000b7680, lr 0x00000001000133fc
0xfffffffe000b7680: fp 0xfffffffe000b77f0, lr 0x00000001000133f0
0xfffffffe000b77f0: fp 0x0000000000000000, lr 0x000000010000a85c
double panic: wdt reset
A 9-byte IN on EP0 with in_flight = 0x9 looks like the configuration-descriptor header during enumeration, so it seems the host (through the hub) re-issues the request while the previous IN is still in flight. checkra1n's log:
Checkmate!
Device should now reconnect in download mode
Entered download mode
Booting PongoOS...
Download mode device disconnected
Timed out waiting for PongoOS (error code: -status_bootstrap_timeout_error)
This happened on two separate runs, with and without --busy-cpu.
gaster (ibss route), bus 9
orchard install --disk --ibss [--busy-cpu]:
- Default timing:
Timing: requests 5 ms, abort after 0 to 0 ms, thenSETUP still trying after 20500 attempts: before the abort 0 to 0 bytes went outuntil the 120 s limit. - Once SETUP passed by luck and gaster printed
Unplug and replug the device now (at least 2 times). orchard's 3 sysfs port resets through the hub didn't bring the device back, and the run timed out. ORCHARD_GASTER_ABORT_MAX=2:0 to 2048 bytes went out, under the limit of 1472 in 2425 attempts, thenSETUP lost the device after 6988 attempts … it has left DFU mode.
Questions
- Is the PongoOS USB panic known on A7, and would a newer PongoOS help?
- What
ORCHARD_GASTER_ABORT_MAX(or other timing) do you recommend for AMD xHCI, and what does SETUP actually need to succeed? - Could the installer show gaster's "Unplug and replug" prompt to the user? Right now it only appears in the log.
Related: #190, #236. Full run logs are available on request.
🤖 Generated with Claude Code
- Lingua principale
- Python
- Stelle
- 102
- Fork
- 27
- Merge medio
- 10h 43m
- PR unite (30g)
- 293
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OrchardLinux/orchard
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OrchardLinux/orchard#398 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
OrchardLinux/orchard#365 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
OrchardLinux/orchard#420 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
OrchardLinux/orchard#416 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
OrchardLinux/orchard#414 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OrchardLinux/orchard
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
LearningCircuit/local-deep-research#10161 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
chore: contact address [email protected]Forse già presa @larsrollik l’ha presa oggi. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Gustavo-Galvao-e-Silva/panchi#228 ·
I maintainer di solito rispondono entro 1 giorno