uboot启动内核失败,求救啊
时间:10-02
整理:3721RD
点击:
参考友善之臂mini2440官方文档移植uboot,不过有一点不同,我的整个过程大概是通过norflash里的suppervivi下载u-boot,经过mkimage处理后的zImage_X35,和光盘里的根文件系统到nandflash中,然后用nand read将内核读到SDRAM,在启动内核。然后就出现了下面的错误。
U-Boot 2009.11 ( 4月 02 2015 - 21:16:50)
modified by tekkamanninja (tekkamanninja@163.com)
Love Linux forever!
I2C: ready
DRAM: 64 MB
Flash: 2 MB
NAND: 256 MiB
*** Warning - bad CRC or NAND, using default environment
Video: 240x320x16 20kHz 62Hz
In: serial
Out: serial
Err: serial
Net: dm9000
U-Boot 2009.11 ( 4月 02 2015 - 21:16:50)
modified by tekkamanninja
(tekkamanninja@163.com)
Love Linux forever!
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x60000, size 0x500000
NAND read from offset 6000033fbfd0c failed 0
5242880 bytes read: ERROR
## Booting kernel from Legacy Image at 30007fc0 ...
Image Name: tekkaman
Created: 2015-03-31 10:50:50 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2266620 Bytes = 2.2 MB
Load Address: 30007fc0
Entry Point: 30008000
Verifying Checksum ... Bad Data CRC
OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Udcompressing Linux...
ran out of input data
-- System hal
内核应该没有问题,经过mkimage处理后的内核我都可以用vboot启动起来,而且我也打印了0x30000100内存参数,几个参数都是正确的,
我的理解是只要内核镜像没问题,参数传递正确了,跳转地址正确,然后跳到内核的入口地址不就完了吗,怎么会有这个问题呢?求助啊
对了,我也查看了被U-boot拷贝到内存中的内核数据,和源文件镜像比对数据也没有差错