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
阅读(2649) | 评论(0) | 转发(0) |