[PATCH u-boot v2 00/38] U-Boot LTO (Sandbox + Some ARM boards)

Pali Rohár pali at kernel.org
Fri Mar 12 16:32:59 CET 2021


On Friday 12 March 2021 16:26:54 Harald Seiler wrote:
> But either way I think this only really matters if you have a
> hardware-debugger and intend to debug U-Boot with it.

You do not need hardware debugger, nor any "real hardware". You can run
U-Boot in qemu-system and use qemu-system capabilities (-S -s) to export
remote gdb control via network TCP socket. Then you can attach your
local gdb to qemu-system (target remote localhost:1234) and debug qemu.

I have used this qemu-system feature more times as it is easier to debug
some issues directly on computer without need to use external HW. But
with ability to run "real u-boot.bin" binary like on read HW.


More information about the U-Boot mailing list