当前位置: 技术问答>linux和unix
uboot移植遇到问题 无法启动内核
来源: 互联网 发布时间:2017-05-28
本文导语: 我用的是mini2440开发板,烧写用申嵌提供的minitools软件,无法启动内核。打印信息如下 U-Boot 2010.03 ( 8鏈?14 2014 - 22:42:19) modify DRAM: 64 MB Flash: 1 MB NAND: 256 MiB In: serial Out: serial Err: serial Net: No...
我用的是mini2440开发板,烧写用申嵌提供的minitools软件,无法启动内核。打印信息如下
U-Boot 2010.03 ( 8鏈?14 2014 - 22:42:19)
modify
DRAM: 64 MB
Flash: 1 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: No ethernet found.
now enter into main_loop
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x60000, size 0x500000
NAND read from offset 60000ffffffff failed 0
5242880 bytes read: ERROR
## Booting kernel from Legacy Image at 30008000 ...
Image Name: Linux-2.6.32.2
Created: 2014-08-14 10:19:35 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2050868 Bytes = 2 MB
Load Address: 30008000
Entry Point: 30008000
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
环境变量
bootargs=console=ttySAC0 root=/dev/nfs nfsroot=192.168.0.1:/friendly-arm/rootfs_netserv ip=192.168.0.69:192.168.0.1:192.168.0.1:255.255.255.0:debian:eth0:off
bootcmd=nand read 0x30008000 0x60000 0x500000; bootm 0x30008000
bootdelay=3
baudrate=115200
ethaddr=08:00:3e:26:0a:5b
ipaddr=192.168.0.69
serverip=192.168.0.1
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
Environment size: 380/131068 bytes
主要存在两个问题:
1. NAND read: device 0 offset 0x60000, size 0x500000
NAND read from offset 60000ffffffff failed 0
5242880 bytes read: ERROR
我试了下 nand read只能读2k 超过2k 就会出错
2. Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
U-Boot 2010.03 ( 8鏈?14 2014 - 22:42:19)
modify
DRAM: 64 MB
Flash: 1 MB
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: No ethernet found.
now enter into main_loop
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x60000, size 0x500000
NAND read from offset 60000ffffffff failed 0
5242880 bytes read: ERROR
## Booting kernel from Legacy Image at 30008000 ...
Image Name: Linux-2.6.32.2
Created: 2014-08-14 10:19:35 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2050868 Bytes = 2 MB
Load Address: 30008000
Entry Point: 30008000
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
环境变量
bootargs=console=ttySAC0 root=/dev/nfs nfsroot=192.168.0.1:/friendly-arm/rootfs_netserv ip=192.168.0.69:192.168.0.1:192.168.0.1:255.255.255.0:debian:eth0:off
bootcmd=nand read 0x30008000 0x60000 0x500000; bootm 0x30008000
bootdelay=3
baudrate=115200
ethaddr=08:00:3e:26:0a:5b
ipaddr=192.168.0.69
serverip=192.168.0.1
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
Environment size: 380/131068 bytes
主要存在两个问题:
1. NAND read: device 0 offset 0x60000, size 0x500000
NAND read from offset 60000ffffffff failed 0
5242880 bytes read: ERROR
我试了下 nand read只能读2k 超过2k 就会出错
2. Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
|
有nand read、nand write等命令,还有md用来测试数据读写是否正确,nand info用来查看型号的。
|
检查内存和flash是否有问题呢?检查内存使用md看是否可读取对应地址的信息,确定没问题了可以考虑更换nand尝试了。
|
查nand是什么型号,uboot对这个型号有没有支持。通过uboot读Pagesize、oobsize、blocksize等,看看是否跟手册一致。都是要跟Uboot源代码慢慢看的
|
不是flash问题就是uboot里关于flash的驱动问题
|
也就是说你换了uboot。自带uboot能正常读写nand,新的Uboot只能读2K?那就是新uboot关于nand那部分驱动有问题
|
那就是你的u-boot驱动有问题了