阅读841 返回首页    go 技术社区[云栖]


Hi3531用SPI FLASH启动 使用Nand做文件系统

1.编译内核(可选)

make ARCH=arm CROSS_COMPILE=arm-hisiv200-linux- menuconfig
make ARCH=arm CROSS_COMPILE=arm-hisiv200-linux- uImage
cp arch/arm/boot/uImage ...

 

2.烧写uboot,内核,擦除SPI FALSH的剩余部分

sf erase 500000 b00000

 
2.写文件系统到NAND

mw.b 82000000 ff 2000000
tftp 82000000 rootfs_2k_1bit.yaffs2
nand erase
nand write.yaffs 82000000 0 167BEC0

 

3.设置启动参数

setenv bootargs 'mem=64M console=ttyAMA0,115200 root=/dev/mtdblock3 rootfstype=yaffs2 mtdparts=hi_sfc:1M(boot),4M(kernel),11M(rootfs);hinand:128M(nand)'

setenv bootcmd 'sf probe 0;sf read 0x82000000 0x100000 0x400000;bootm 0x82000000'

sa

 

4.进系统加载

mount /dev/mtdblock2 /box/ -t jffs2

最后更新:2017-04-03 16:49:03

  上一篇:go 【转载】SDL2.0在mfc窗口中显示yuv的一种方法
  下一篇:go C#生产者与消费者问题(二)