nand
1、查看mtd信息
mtdinfo -a //列出所有分区信息
mtdinfo /dev/mtd0 //查看具体分区信息
2、更新u-boot (/dev/mtdx为具体的uboot分区)
flash_eraseall /dev/mtdx (flash_erase /dev/mtdx 0 0) //擦除旧的uboot
nandwrite -p /dev/mtdx u-boot.img //写入新的uboot
3、更新内核(/dev/mtdx为具体的uboot分区)
flash_eraseall /dev/mtdx (flash_erase /dev/mtdx 0 0) //擦除旧内核
nandwrite -p /dev/mtdx uImage //写入内核
emmc 直接在目录下替换