问题描述: uboot在引导内核时出现错误
简介: 我自己移植的u-boot2016.05下载到NorFlash启动,在引导内核的时候,出现以下现象
问题出现原因:首先我的u-boot是用norflash启动,能正常启动内核,当我想和老师一样设置NandFlsh启动,我按照老师和查资料,添加了init.c文件,并且进行了修改,(暂时想把uboot先放在norflash上,先试试norflash能不能启动成功),uboot启动正常,但是在引导内核时就出现错误了。
SMDK2440 # print
baudrate=115200
bootargs=console=ttySAC0 root=/dev/mtdblock3 rootfstype=jffs2
bootcmd=nand read 30000000 kernel;bootm 30000000
bootdelay=8
ethact=dm9000
ethaddr=00:0c:29:4d:e4:f4
fileaddr=30000000
filesize=5b89a8
ipaddr=192.168.1.17
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=jz2440-0
mtdparts=mtdparts=jz2440-0:256k(u-boot),128k(params),2m(kernel),-(rootfs)
netmask=255.255.255.0
par
tition=nand0,0
serverip=192.168.1.10
stderr=serial
stdin=serial
stdout=serial
Environment size: 501/131068 bytes
SMDK2440 # nand read 30000000 kernel
NAND read: device 0 offset 0x60000, size 0x200000
2097152 bytes read: OK
SMDK2440 # bootm 30000000
## Booting kernel from Legacy Image at 30000000 ...
Image Name: Linux-2.6.22.6
Image Type:
ARM Linux Kernel Image (uncompressed)
Data Size: 1848668 Bytes = 1.8 MiB
Load Address: 30008000
Entry Point: 30008000
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!