主题 : 下载内核镜像后,内核出现重启 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 56028
精华: 0
发帖: 33
金钱: 165 两
威望: 33 点
综合积分: 66 分
注册时间: 2011-09-28
最后登录: 2012-07-17
楼主  发表于: 2012-02-14 15:35

 下载内核镜像后,内核出现重启

我用uboot  tftp下载内核镜像 出现重启不知怎么解决,望高手指点!我具体操作步骤:

tftp 0x30008000 uImage
nand erase  60000 500000
nand wrife 0x30008000 60000 500000
setenv bootcmd nand read 0x30008000 60000 500000\;go 0x30008000
saveenv
重启开发板出现如下:重启现象

U-Boot 2010.03 (11鏈?13 2011 - 03:06:31)

I2C:   ready
DRAM:  64 MB
Flash:  2 MB
NAND:  128 MiB
Video: 320x240x16 15kHz 58Hz
In board_video_init, lcdtype=w
In:    serial
Out:   serial
Err:   serial
Net:   dm9000
#####   u-boot-2010.03 Main menu by Hanson He   #####
#####         上海嵌入式家园-开发板商城         #####
#####            www.embedclub.com              #####
#####      http://embedclub.taobao.com          #####
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x60000, size 0x500000
5242880 bytes read: OK
## Starting application at 0x30008000 ...
undefined instruction
pc : [<30008010>]          lr : [<33f8ca68>]
sp : 33f3de54  ip : 0000001c     fp : 00000000
r10: 00000000  r9 : 33fbf178     r8 : 33f3ffe0
r10: 00000000  r9 : 33fbf178     r8 : 33f3ffe0
r3 : 904fcadf  r2 : 33f616a4     r1 : 33f616a4  r0 : 33fb1c74
Flags: NzcV  IRQs on  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...


U-Boot 2010.03 (11鏈?13 2011 - 03:06:31)

I2C:   ready
DRAM:  64 MB
Flash:  2 MB
NAND:  128 MiB
Video: 320x240x16 15kHz 58Hz
In board_video_init, lcdtype=w
In:    serial
Out:   serial
Err:   serial
Net:   dm9000
#####   u-boot-2010.03 Main menu by Hanson He   #####
#####         上海嵌入式家园-开发板商城         #####
#####            www.embedclub.com              #####
#####      http://embedclub.taobao.com          #####
Hit any key to stop autoboot:  1

怎么解决?谢了
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-02-14 16:52
1. 这个问题和内核镜像没有关系,应该发到u-boot版块去;
2. “go 0x30008000”从来就不是用来启动uImage格式的内核镜像的。u-boot的设计里应该用"bootm 0x30008000"
"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: 56028
精华: 0
发帖: 33
金钱: 165 两
威望: 33 点
综合积分: 66 分
注册时间: 2011-09-28
最后登录: 2012-07-17
2楼  发表于: 2012-02-15 08:14
我还遇到一个问题,请教一下!
我按照uboot  从nand启动移植,但是移植完以后,在nand启动时没反应!
是不是nand大小那一块出了问题,我看的移植手册移植的nand大小是64m的,我的是128m的,我应该改那一块代码?
请教 谢了!
级别: 新手上路
UID: 56028
精华: 0
发帖: 33
金钱: 165 两
威望: 33 点
综合积分: 66 分
注册时间: 2011-09-28
最后登录: 2012-07-17
3楼  发表于: 2012-02-15 09:09

 回 1楼(kasim) 的帖子

我改成 setenv bootcmd nand read 0x30008000 60000 500000\;bootm 0x30008000 也出现重启现象;于是我试试下载zImage (setenv bootcmd nand read 0x30008000 60000 500000\;go 0x30008000 ),下载完zimage后不重启了,但是到了这里
Uncompressing Linux............................................................. done, booting the kernel. 停止没反应
我怀疑是我编译的内核问题,于是把光盘带的zImage_W35,用smb拷到虚拟机的tftpboot,按照上面的步骤下载到nand中,再打开开发板电源,同样也是到了
Uncompressing Linux............................................................. done, booting the kernel.停止!
为什么出现这种情况?与串口有关吗?我看打印信息有个“Err:   serial “!还有什么有关啊!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2012-02-15 09:50

载完zimage后不重启了,但是到了这里
Uncompressing Linux............................................................. done, booting the kernel. 停止没反应

造成这个问题的原因很多,可以参考这个帖子里的分析方法
http://www.aiothome.net/read.php?tid-207.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."