j72 (iPad Air, A7) on AMD X670 host: PongoOS panics in USB after checkm8 (USB BUG 0x73656e642034); gaster SETUP never completes

Abierto
#412 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
linux, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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:

  1. 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 reports Timed out waiting for PongoOS.
  2. 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. With ORCHARD_GASTER_ABORT_MAX=2 bytes 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, then SETUP still trying after 20500 attempts: before the abort 0 to 0 bytes went out until 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, then SETUP 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

Lenguaje dominante
Python
Estrellas
102
Forks
27
Merge medio
10 h 43 min
PR fusionados (30 d)
293

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OrchardLinux/orchard

Todos los issues de OrchardLinux/orchard

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.