主题 : 新手求助,mini2440UBOOT启动内核出错 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 81325
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2012-11-07
最后登录: 2015-07-22
楼主  发表于: 2012-11-07 14:42

 新手求助,mini2440UBOOT启动内核出错

使用的UBOOT是按照使用手册编译出来的,内核也根据光盘提供的2.6.13编译而来的zImage,自己把它做成了uImage,然后复位mini2440,串口没反应,各位高手帮忙分析一下,我感觉是UBOOT被覆盖了。。。。

制作uImage的 命令:./tool -A arm -O linux -T kernel -C none -a a0008000 -e a0008000 -n linux-2.6.11 -d arch/arm/boot/zImage uImage


串口打印如下:

+---------------------------------------------+
| S3C2440A USB Downloader ver R0.03 2004 Jan  |
+---------------------------------------------+
USB: IN_ENDPOINT:1 OUT_ENDPOINT:3
FORMAT: <ADDR(DATA):4>+<SIZE(n+10):4>+<DATA:n>+<CS:2>
NOTE: Power off/on or press the reset button for 1 sec
      in order to get a valid USB device address.

Hit any key to stop autoboot:  0

##### open24x0 Bootloader for FA24x0 #####
Download u-boot
[k] Download Linux kernel
[j] Download JFFS2 image
[y] Download YAFFS image
[d] Download to SDRAM & Run
Boot the system
[f] Format the Nand Flash
[s] Set the boot parameters
[r] Reboot u-boot
[q] Quit from menu
Enter your selection:  

##### open24x0 Bootloader for FA24x0 #####
Download u-boot
[k] Download Linux kernel
[j] Download JFFS2 image
[y] Download YAFFS image
[d] Download to SDRAM & Run
Boot the system
[f] Format the Nand Flash
[s] Set the boot parameters
[r] Reboot u-boot
[q] Quit from menu
Enter your selection: k
USB host is connected. Waiting a download.

Now, Downloading [ADDRESS:30000000h,TOTAL:1537202]
RECEIVED FILE SIZE: 1537202 (750KB/S, 2S)

NAND erase: device 0 offset 0x0, size 0x200000
Erasing at 0x1fc000 -- 100% complete.
OK

NAND write: device 0 offset 0x0, size 0x1774a8

Writing data at 0x177400 -- 100% complete.
1537192 bytes written: OK
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-11-07 16:41

NAND erase: device 0 offset 0x0, size 0x200000
Erasing at 0x1fc000 -- 100% complete.
OK

NAND write: device 0 offset 0x0, size 0x1774a8

从这个上面看,你下载uimage的时候,是写到了NAND Flash的0x0 -- 0x200000的区域,通常这个区域是用来保存u-boot的?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 81325
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2012-11-07
最后登录: 2015-07-22
2楼  发表于: 2012-11-07 18:26
我是按照手册操作的,太怪了,真不知道怎么解决这个问题
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2012-11-08 12:38

 回 2楼(lycchnuaa) 的帖子

我不觉得光盘里的u-boot源代码是经过友善之臂验证并且完善的。为什么不试试Tekkaman Ninja的(http://www.aiothome.net/read.php?tid-3539.html)呢?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."