您好!
使用的是am335x6.0sdk的,nandflash使用的是MT29F02G08AB。使用的是BCH8的,uboot中也是默认BCH8。
现在遇见的问题是,能在uboot写入一些环境变量并且保存,重新启动时候,变量的写入的数据还在。
但是在想把uboot写入nandflash中的时候,通过手动写入,然后重新重启,串口那边还是答应CCCC,所以不能从nand的启动起来。
我们的启动配置nand的启动是第一位,usb第二位,串口是第四位的。
手动写入的是参考下面这个来写的!
# erase NAND
nand erase.chip
# get MLO
tftp 0x80200000 MLO
# make 4 copies in the RAM
cp.b 0x80200000 0x80220000 20000
cp.b 0x80200000 0x80240000 20000
cp.b 0x80200000 0x80260000 20000
# get u-boot.img
tftp 0x80280000 u-boot.img
# write the whole block (4*MLO + u-boot.img) to NAND
nand write 0x80200000 0x0 0x260000

