日期:2014-05-16  浏览次数:20756 次

为什么uboot会停在“booting the kernel”处?
U-Boot 1.3.3 (Mar 7 2010 - 20:44:43)

DRAM: 32 MB
Flash: 2 MB
NAND: 64 MiB
In: serial
Out: serial
Err: serial
Set the MAC successful!
Hit any key to stop autoboot: 0 
SEP4020=>pritn
Unknown command 'pritn' - try 'help'
SEP4020=>print
bootdelay=1
baudrate=115200
ethaddr=00:50:c2:1e:af:fb
ipaddr=192.168.0.2
serverip=192.168.0.1
netmask=255.255.255.0
filesize=1849B8
bootcmd=nand read 0x30007fc0 0x00100000 0x00200000;bootm 0x30007fc0
bootargs=root=/dev/mtdblock2 console =ttyS0,115200 rootfstype=yaffs
stdin=serial
stdout=serial
stderr=serial

Environment size: 309/16380 bytes
SEP4020=>
---------------------------------------
---------------------------------------
U-Boot 1.3.3 (Mar 7 2010 - 20:44:43)

DRAM: 32 MB
Flash: 2 MB
NAND: 64 MiB
In: serial
Out: serial
Err: serial
Set the MAC successful!
Hit any key to stop autoboot: 0 

NAND read: device 0 offset 0x100000, size 0x200000
 2097152 bytes read: OK
Boot with zImage

Starting kernel ...

Uncompressing Linux....................................................................................................... done, booting the kernel.

各位高手,为什么会停在“booting the kernel”这个地方?板子是mini4020。

------解决方案--------------------
因为kernel启不来,你编译对了,可以解压,但是不能用。通俗点讲就是真正进入kernel时的二进制不能跑,不出意外的话是编译配置错。
------解决方案--------------------
你要是买的官方mini的板子 自带的代码不会这样的

这种情况最可能的是uboot传递给内核的板子类型编号和内核支持的板子编号不一致
好久没用arm了 具体名字记不住了 但是你的手册里应该有说明,教你如何修改一个跟板子型号相关的环境变量