A
A
Andrey Krytsky2017-02-14 08:18:29
linux
Andrey Krytsky, 2017-02-14 08:18:29

What are the U-boot debugging practices in the sources?

Tell me what tools you use for convenient debugging of U-Boot (for example, for ARM). To understand the organization of the code, the principles of operation of U-boot, I want to be like a debugger, look at the variables.
In order not to bother with JTAG and the target platform, I see it like this: qemu + eclipse + gdb. In qemu, load u-boot and "debug". But that's in theory. But in practice, to assemble all this, you need to collect information in parts on the Internet.
Maybe there is a site, a project that solves the problem? The opinion of people in the "topic" is interesting. Who can share useful links, experience?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2017-02-14
@jcmvbkbc

in practice, to assemble all this, you need to collect information in parts on the Internet.

in practice, you need to find a board that is supported by both U-Boot and QEMU. Collect U-Boot for it. Among the build results there will be an ELF file, load it into QEMU with the -kernel option. Use the -s -S options to enable gdbserver. Run gdb with this ELF and join QEMU.
Where is the difficulty?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question