mail:bookworepeng@Hotmail.com
qq:196568501
author:Driver Monkey
phone:13410905075
1. 修改 U-BOOT 默认启动参数
"mmc_root=ubi0:rootfs rw ubi.mtd=8,2048\0" \
"nand_root=ubi0:rootfs rw ubi.mtd=8,2048\0" \
"mmc_root_fs_type=ubifs rootwait=1t\0" \
2. 制作 UBI 镜像文件
mkfs.ubifs/mkfs.ubifs -r filesystem/ -F -o ubifs.img -m 2048 -e 126976 -c 1580
ubi-utils/ubinize -o ubi.img -m 2048 -p 128KiB -s 512 -O 2048 ubinize.cfg
3. 烧写 UBI 镜像文件
#nand erase <mtdsize start offset> <mtdsize>
#nand ecc hw 2
#nand wrirte 0x82000000 <mtdsize start offset> <mtdsize>
其中于到了两个问题:
1. 擦除的时候没有把整个 nand 分区擦除系统启动不了
2. 烧写镜像文件的时候起始地址算错系统也是起不了