QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1705|回复: 4

How to trace u-boot

[复制链接]
发表于 2007-1-14 04:23:33 | 显示全部楼层 |阅读模式
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
发表于 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
回复

使用道具 举报

 楼主| 发表于 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
回复

使用道具 举报

发表于 2007-1-17 06:59:50 | 显示全部楼层
Skyeye Wiki has a good tutorial on u-boot.

[quote:c1757ee710="imu1234"]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[/quote]
回复

使用道具 举报

 楼主| 发表于 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了吗!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 06:07 , Processed in 0.042233 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表