移植中可能出现的问题:
1. U-Boot1.3.2 (Jan 12 2009 - 15:57:17) MPC512X
CPU: MPC5121e rev. 1.0, Core e300c4 at 391.874MHz, CSB at 195 MHz
I2C: ready
DRAM: 256 MB
FLASH:16 MB
In: serial
Out: serial
Err: serial
bitmapis out of range, image too large or too much offset
Net: FEC ETHERNET
blocknumber:3501800
blocknumber:3501800
blocknumber:3501800
Startloading file hard_disk_start_config.txt .........
Loadingend
Typerun nfsboot to mount root filesystem over NFS
Hitany key to stop autoboot: 0
##Booting image at ffac0000 ...
Image Name: Linux-2.6.24.6
Created: 2011-08-26 8:16:45 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 2167270 Bytes = 2.1 MB
Load Address: 00000000
Entry Point: 00000000
Uncompressing Kernel Image ... OK
没了下文,死在这里
原因分析:
1Start loading file hard_disk_start_config.txt .........
Loadingend
说明硬盘启动起来了
2## Booting image at ffac0000
说明内核入口地址正确。
3 Uncompressing Kernel Image ... OK
说明内核解压成功了,但没有跳到设备树地址!
也就是bootm的参数没有设置正确,检查参数0xffac0000 – 0xffec0000(本人的入口地址和fdt文件地址)
注意其中的大小写和空格!
2. 在挂载系统时最后出现[ 175.601000] Mount-cache hash table entries: 512
[ 175.607789] net_namespace: 64 bytes
[ 181.733380] device=eth0, addr=192.168.100.200, mask=255.255.0.0, gw=
[ 183.821777] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 183.829944] Rebooting in 180 seconds..
说明nfs服务器上的文件系统下面的ip地址没有设置好,文件系统下面的ip地址放到板子上运行后,无法和服务器连接,从而无法挂载服务器上的文件系统,需要按照服务器配置上的ip配置,重新配置。
3. 无法切换到u-boot下,如下面的红字部分,因为开始没有设置延时启动,内核移植又没有正确移植,从而导致没有正确的系统可以启动。
U-Boot1.3.2 (Jan 12 2009 - 15:57:17) MPC512X
CPU: MPC5121e rev. 1.0, Core e300c4 at 391.874MHz, CSB at 195 MHz
I2C: ready
DRAM: 256 MB
FLASH:16 MB
In: serial
Out: serial
Err: serial
bitmapis out of range, image too large or too much offset
Net: FEC ETHERNET
blocknumber:3501800
blocknumber:3501800
blocknumber:3501800
Startloading file hard_disk_start_config.txt .........
Loadingend
Typerun nfsboot to mount root filesystem over NFS
Hit any key to stop autoboot: 0
##Booting image at ffac0000 ...
Image Name: Linux-2.6.24.6
Created: 2011-08-26 8:16:45 UTC
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 2167270 Bytes = 2.1 MB
Load Address: 00000000
Entry Point: 00000000
Uncompressing Kernel Image ... OK
解决方法,购买flash烧写器,将flash焊下,重烧u-boot。