J81: RAM boot after a DFU entered from Linux often freezes before userspace

Aperta
#198 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
8/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux, python, wasm

Direzione di ricerca

The freeze is a hardware-state problem spanning the m1n1 boot path, the PMU/charger driver and the DFU entry, not a single file the payload names. Start by reading the #197 PMU event-masking change and the charger unbind steps referenced in the table. Done would mean a reproducible explanation or a fix verified over repeated warm boots on J81, which needs the physical device and a UART or hypervisor setup the payload says has not been tried.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

On the iPad Air 2 (J81, A8X / T7001), an orchard run RAM boot that follows a DFU entered from a running Linux often freezes in the first second. The SoC then hangs until the watchdog resets it to the Apple logo. A RAM boot after a full power-off, then Recovery → DFU, came up in every attempt. orchard launch of an installed Omarchy did not freeze in any test, including after a DFU entered from Linux.

What a freeze looks like

  • The last kernel lines are clk: Disabling unused clocks, PM: genpd: Disabling unused power domains, Freeing unused kernel memory and Run /init as init process (0.557 s). Sometimes the first line from /init also appears.
  • After that the screen does not change. USB never comes up, so there is no serial, network or SSH.
  • After a while the watchdog resets the iPad to the Apple logo.
  • With clk_ignore_unused pd_ignore_unused, one boot came up and one showed a red screen before the kernel printed anything. That is too little to tell either way.

When it happens

All on one J81, host Asahi Linux on a MacBook Air M2 with an Apple Lightning to USB-A cable and a USB-A to USB-C adapter. The payload is a RAM probe with modules = true and firmware = true.

Before the boot Booted Froze
DFU from a running Linux, unmodified main kernel (Wi-Fi loaded or not) 3 3
DFU from a running Linux whose Lightning charger had PMU event 0 unmasked (#197 drops that event) 0 5
the same, charger unbound first 2 0
DFU from the RAM boot that just froze, or Recovery entered from it rarely most
full power-off (or a watchdog reset into iPadOS), then Recovery → DFU every attempt 0

Two observations:

  • After a freeze, the next boot often freezes too, whether it starts from a DFU or from Recovery. A full power-off always cleared it: hold Power in Recovery until the iPad is off, wait, then Recovery → DFU.
  • A DFU from Linux resets the SoC, but neither the PMIC (D2207) nor the Wi-Fi chip. That reset also skips iBoot, so neither of them is reinitialised before m1n1 and the kernel start.

Ruled out, as far as these tests go

  • The new charger code: the unmodified main kernel without it froze too.
  • Wi-Fi DMA from the previous session: a probe that never loaded brcmfmac also froze after a DFU from Linux.
  • The D2207 input-current limit: with the charger unbound and the limit set back to 1500 mA by hand, the next warm boot came up.
  • Timing of the DFU: freezes happened after DFUs taken 30 s and several minutes into a session.

Not tried yet

  • Capturing the frozen boot's log. A ramoops region in RAM did not survive Recovery, and a warm DFU after a freeze mostly froze again.
  • The m1n1 hypervisor, or the UART, to see where the CPUs stop.
  • Other A8X boards (J82), A8 boards (J96, J97) and the A7.

Earlier, during the J81 audio work in #192, 4 of 5 early RAM boots froze the same way, before any audio driver loaded. Those boots came after DFUs entered from iPadOS.

🤖 Generated with Claude Code

Lingua principale
Python
Stelle
102
Fork
27
Merge medio
10h 43m
PR unite (30g)
293

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OrchardLinux/orchard

Tutte le issue di OrchardLinux/orchard

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.