Halted in EL0: the write fails, exit status 0
halted ... mode: EL0T
Error: Opcode 0x38001401, DSCR.ERR=1, DSCR.EL=1
- OpenOCD writes memory by making the halted CPU do it
- Halted in user space (EL0), it cannot touch kernel memory
- And OpenOCD still exits 0
Fix: a hardware breakpoint in the IRQ handler to stop in EL1,
then read back and treat DSCR.ERR in the log as failure
rpi5_set_kernel_byte.sh