第一章 Nand flash 烧写步骤
1、准备
先调整拨码开关:底板Sw7和Sw8均拨为0,表示nor flash boot。
复位单板,通过nor flash启动,进入u-boot之后,运行如下步骤。
2、擦除整个 nand flash
nand erase 0
3、烧写主uboot到nand
mw.b 0xC1500000 0xFF 0x100000; # 内存清除为0xFF;
tftp 0xC1500000 u-boot-hi3520v100_200M.bin; # 先把boot load到内存;
nand write 0xC1500000 0 0x100000; # 然后把内存中的boot烧写到flash上,参数0表示偏移地址,0x100000表示写入文件的大小;
4、烧写主kernel到nand
mw.b 0xC1500000 0xFF 0x200000;
tftp 0xC1500000 kernel-hi3520v100_full_release.img;
nand write 0xC1500000 0x100000 0x200000;
# 注:若仅更新kernel,可仅擦除nand flash中kernel对应地址空间即可。擦除命令如下:
# nand erase 0x100000 0x200000
5、烧写从uboot到nand并设置
mw.b 0xC1500000 0xFF 0x100000;
tftp 0xC1500000 u-boot-hi3520v100_slave_200M.img;
nand write 0xC1500000 0x300000 0x100000;
set slave_bootargs mem=32M console=ttyAMA0,115200;
saveenv
6、烧写从kernel和文件系统到nand
mw.b 0xC1500000 0xFF 0x200000;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余3页未读,立即下载