|
各路的大侠啊,帮帮忙啊,我移u-boot移了一周了.....一直弄不好,倍受打击啊......会不会都来看吧,只要你有什么见解我都愿意去试试的......我不怕麻烦,只求让我移植得u-boot....网上找了好久,没找到答案啊......请解:dizzy:
我照 移植u-boot-1.1.6到TQ2440文档 中移植u-boot的,可是出现的问题有
1、我保存环境变量时出现下面的情况:
U-Boot 1.1.6 (Jan 20 2012 - 18:52:50)
DRAM: 64 MB
Flash: 2 MB
NAND: 512 MiB
*** Warning - bad CRC or NAND, using default environment
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
[TQ2440] # save
Saving Environment to NAND...
Erasing Nand...nand_erase: attempt to erase a bad block at page 0x00000200
[TQ2440] #
2、我用tftp 把内核下载到SDRAM中 ,然后bootm 0x30000000 内核可以正常运行。但我在nand中运行时却不行。
U-Boot 1.1.6 (Jan 20 2012 - 18:52:50)
DRAM: 64 MB
Flash: 2 MB
NAND: 512 MiB
*** Warning - bad CRC or NAND, using default environment
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x200000, size 0x300000
3145728 bytes read: ERROR
## Booting image at 32000000 ...
Bad Magic Number
我原来的环境变量是
[TQ2440] # printenv
bootargs=noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
bootcmd=nand read 0x32000000 0x200000 0x300000;bootm 0x32000000
bootdelay=3
baudrate=115200
ethaddr=10:23:45:67:89:AB
ipaddr=192.168.1.6
serverip=192.168.1.8
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
Environment size: 289/131068 bytes
[TQ2440] #
其它的跟那文档上一样的,我对过两遍了........
|
|