[U-Boot-Users] u-boot debugging boot with gdb and bdi2000 in lubbock(PXA255) board

Kyle Harris kharris at nexus-tech.net
Thu Sep 4 14:32:20 CEST 2003


> My question is, How can I debug the code __before__ the start_armboot
> function ?  I would like to debug the assembler code from the first
> instruction ( I can do this with the jtag debugger but I can't see the
> related source instruction in the gdb ).
>

Juan,

I usually set TEXT_BASE=0 in board/lubbock/config.mk for debugging before 
start_armboot. No need to reflash. You should be able to reload symbols in 
gdb at offset 0, but for some reason I've never been able to get this to 
work correctly. So linking at 0 sets symbols for gdb correctly. Then you can 
use gdb in a normal manner.

HTH, Kyle.




More information about the U-Boot mailing list