[RFC] Dumping load addresses - bootefi qemu gdb remote debugging
Bin Meng
bmeng.cn at gmail.com
Thu Mar 24 16:27:22 CET 2022
+Heinrich Schuchardt
On Thu, Mar 24, 2022 at 10:51 PM Alex <kallisti5 at unixzen.com> wrote:
>
> 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_bootloader_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