imu1234 发表于 2007-1-14 04:23:33

How to trace u-boot

Would you please teach me how to setup the config file or someting else, so I can debug U-BOOT cold in SkyEye.
Thanks a lot

ksh 发表于 2007-1-14 10:24:20

The image in binary format do not contain any debug information. So it can not be debug by gdb. You can try to compile u-boot to elf format.Then if you use SkyEye below 1.0 version, you can type:
skyeye u-boot.elf
if you use skyeye above 1.0 version, you can tyoe:
skyeye -e u-boot.elf

imu1234 发表于 2007-1-17 01:42:02

I use a config file to start u-boot with a binary file, it should be the same as skeyeye -e u-boot.elf, but the u-boot get executed when skyeye starts, so I can debug the binary from the first instruction. I use u-boot-1.2

ivychen 发表于 2007-1-17 06:59:50

Skyeye Wiki has a good tutorial on u-boot.

I use a config file to start u-boot with a binary file, it should be the same as skeyeye -e u-boot.elf, but the u-boot get executed when skyeye starts, so I can debug the binary from the first instruction. I use u-boot-1.2

imu1234 发表于 2007-1-18 10:42:20

http://www.skyeye.org/wiki/SkyeyeUboot 中写到
In the interface of skyeye, input: (For Skyeye1.0, this step shoul be ignored and u-boot will start directly.)
target sim
run

At this time , the interface and prompt of u-boot can be saw and then when inputting ?help?, all commands in u-boot can be showed or when inputting ?version?, the current u-boot version can be displayed etc.

我说怎么调试不了U-BOOT呢。
为什么自作聪明的自动运行U-BOOT呢?这样不就没有办法调试boot loader了吗!
页: [1]
查看完整版本: How to trace u-boot