记录我踩过的坑。
开始我的操作:
tftp 0x30000000 uImage
nand erase 0 0x200000
nand write.jffs2 0x30000000 0 0x200000
set bootcmd 'nand read.jffs2 0x32000000 0 0x200000;bootm 0x32000000'
重启会打印:
Verifying Checksum ... Bad Data CRC ERROR: can't get kernel image!
无法启动内核。
当我仔细看了内核启动打印后,发现NAND FLASH已经分区:
Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x00000000-0x00040000 : "bootloader"
0x00040000-0x00060000 : "params"
0x00060000-0x00260000 : "kernel"
0x00260000-0x10000000 : "root"
然后修改上面的操作:
tftp 0x30000000 uImage
nand erase 0x60000 0x200000 (擦除内核分区)
nand write.jffs2 0x30000000 0x60000 $(filesize) (把内核文件,放到nand flash的内核分区里面)
set bootcmd 'nand read.jffs2 0x32000000 0x60000 0x200000;bootm 0x32000000'
tftp 0x30000000 fs_mini_mdev.yaffs2
nand erase 0x260000 $(文件大小)
nand write.jffs2 0x30000000 0x260000 $(filesize)
然后开发板能正常启动了