Marvell78100有约8M大小的spi-flash,我在在此处存放Uboot minisys。将rootsys(根文件系统)放入512M的nandflash中,以下是总结出的各种flash烧写方法:
第一步:连接开发板,启动gtk
sudo gtkterm -p /dev/ttyUSB0 -s 115200
若成功,gtk下会出现shell(spi-flash中必须有Uboot才会成功)
第二步:烧写Uboot(需要烧写的uboot.bin必须放在/tftpboot下)
tftp 0x10000000 Uboot.bin
sflash protect off
sflash erase 120-127
sflash write 0x10000000 0x400000 0x400000(此处最后一个参数为uboot的大小,千万不能写错,否则后果很严重!!)
等待write完成,then reset
第三步:烧写uImage和minisys
tftp 0x10000000 uImage
sflash protect off
sflash erase 0-60
sflash write 0x10000000 0x0 0x360000(以实际大小为准)
tftp 0x16000000 minisys.gz
sflash erase 64-118
sflash write 0x16000000 0x400000 0x370000
wait for write success,