当前位置: 技术问答>linux和unix
uboot引导内核启动bad CRC
来源: 互联网 发布时间:2016-10-21
本文导语: 我用tftp下载内核,移植的uboot无法启动内核: U-Boot 1.3.4 (Nov 22 2010 - 15:47:15) DRAM: 64 MB NAND: 256 MiB DataFlash:AT45DB642 Nb pages: 8192 Page Size: 1056 Size= 8650752 bytes Logical address: 0xD0000000 Area 0: D0000000 to D0004...
我用tftp下载内核,移植的uboot无法启动内核:
U-Boot 1.3.4 (Nov 22 2010 - 15:47:15)
DRAM: 64 MB
NAND: 256 MiB
DataFlash:AT45DB642
Nb pages: 8192
Page Size: 1056
Size= 8650752 bytes
Logical address: 0xD0000000
Area 0: D0000000 to D00041FF (RO) Bootstrap
Area 1: D0004200 to D00083FF Environment
Area 2: D0008400 to D0041FFF (RO) U-Boot
Area 3: D0042000 to D0251FFF Kernel
Area 4: D0252000 to D083FFFF FS
In: serial
Out: serial
Err: serial
Net: macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps half-duplex (lpa: 0x4081)
Hit any key to stop autoboot: 0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
U-Boot> tftp 21000000 uImage
macb0: link up, 100Mbps half-duplex (lpa: 0x4081)
Using macb0 device
TFTP from server 192.168.1.107; our IP address is 192.168.1.92
Filename 'uImage'.
Load address: 0x21000000
Loading: #################################################################
####################################################
done
Bytes transferred = 1716112 (1a2f90 hex)
U-Boot> bootm 21000000
## Booting kernel from Legacy Image at 21000000 ...
Image Name: Linux-2.6.21
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1716048 Bytes = 1.6 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
环境变量如下:
U-Boot> printenv
bootargs=console=ttyS0,115200 root=/dev/mtdblock0 mtdparts=at91_nand:-(root) rw
rootfstype=jffs2
bootcmd=cp.b 0xD0042000 0x22000000 0x210000; bootm
bootdelay=3
baudrate=115200
ethact=macb0
ethaddr=01:00:20:10:11:22
stdin=serial
stdout=serial
stderr=serial
filesize=1A2F90
fileaddr=21000000
ipaddr=192.168.1.92
serverip=192.168.1.107
Environment size: 333/16892 bytes
望高手指点啊!谢谢
U-Boot 1.3.4 (Nov 22 2010 - 15:47:15)
DRAM: 64 MB
NAND: 256 MiB
DataFlash:AT45DB642
Nb pages: 8192
Page Size: 1056
Size= 8650752 bytes
Logical address: 0xD0000000
Area 0: D0000000 to D00041FF (RO) Bootstrap
Area 1: D0004200 to D00083FF Environment
Area 2: D0008400 to D0041FFF (RO) U-Boot
Area 3: D0042000 to D0251FFF Kernel
Area 4: D0252000 to D083FFFF FS
In: serial
Out: serial
Err: serial
Net: macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps half-duplex (lpa: 0x4081)
Hit any key to stop autoboot: 0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
U-Boot> tftp 21000000 uImage
macb0: link up, 100Mbps half-duplex (lpa: 0x4081)
Using macb0 device
TFTP from server 192.168.1.107; our IP address is 192.168.1.92
Filename 'uImage'.
Load address: 0x21000000
Loading: #################################################################
####################################################
done
Bytes transferred = 1716112 (1a2f90 hex)
U-Boot> bootm 21000000
## Booting kernel from Legacy Image at 21000000 ...
Image Name: Linux-2.6.21
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1716048 Bytes = 1.6 MB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
环境变量如下:
U-Boot> printenv
bootargs=console=ttyS0,115200 root=/dev/mtdblock0 mtdparts=at91_nand:-(root) rw
rootfstype=jffs2
bootcmd=cp.b 0xD0042000 0x22000000 0x210000; bootm
bootdelay=3
baudrate=115200
ethact=macb0
ethaddr=01:00:20:10:11:22
stdin=serial
stdout=serial
stderr=serial
filesize=1A2F90
fileaddr=21000000
ipaddr=192.168.1.92
serverip=192.168.1.107
Environment size: 333/16892 bytes
望高手指点啊!谢谢
|
说起来惭愧,这些日子只想着研究u-boot代码,竟忘了我还要移植了,现在还没有进行到引导内核那一步。
给你个牛人的博客http://blog.chinaunix.net/u3/101649/showart.php?id=2397082
博主写的这个系列文章很详细,有图有真相,希望能帮到你。