
24 Mar
2022
24 Mar
'22
3:51 p.m.
Good morning!
So, some time ago I wrote a short guide on how to debug EFI bootloaders started by u-boot in qemu.
https://www.haiku-os.org/blog/kallisti5/2021-01-17_debugging_riscv-64_bootlo...
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