[RFC] Dumping load addresses - bootefi qemu gdb remote debugging

Alex kallisti5 at unixzen.com
Thu Mar 24 15:51:32 CET 2022

Good morning!

So, some time ago I wrote a short guide on how to debug EFI bootloaders started
by u-boot in qemu.


At the time it worked, however figuring the elf load addresses from u-boot was extremely
difficult and required compiling it with full tracing and taking guesses at 
various EFI: Entry efi_load_image messages until I found the correct address.

Is there an easier way to find the load addresses?  If not, a more verbose message
on non-debug builds might be extremely useful here.

"positioning image at address 0xfe6b0000" or something

using the leveraged kernel_addr_r (0x84000000) was not enough.

 -- Alex

More information about the U-Boot mailing list