u‐boot - MarekBykowski/readme GitHub Wiki
fvp‐base-u‐boot-build-from-sdk
What to see in there
- vectors
- mmu
- commands
Execution
I set a stop
(branching to itself "0: b 0b") at reset vector
interrupt
delete breakpoints
Add u-boot
symbols and tell the debugger where the sources are
add-symbol-file /home/ubuntu/yocto/poky/arm-aem-build/tmp/work/fvp_base-poky-linux/u-boot/2024.01/build/u-boot
directory /home/ubuntu/yocto/poky/arm-aem-build/tmp/work/fvp_base-poky-linux/u-boot/2024.01/git
If stop
advance to next instruction
set var $aarch64::$core::$pc += 4
From here you can to u‐boot-vectors
Continue running the target post interrupt
continue
interrupt
Our u-boot
relocated itself. Find a relocation offset
from u-boot
printout and add the symbols
with the offset
again. No need to tell the debugger where the sources are as they remained in same.
add-symbol-file /home/ubuntu/yocto/poky/arm-aem-build/tmp/work/fvp_base-poky-linux/u-boot/2024.01/build/u-boot 0x76f73000
I set a stop
after relocation so again advance to the next instruction (instructions are always 32 bit long)
set var $aarch64::$core::$pc += 4
From here you can go to u‐boot-mmu