page size == 4096 , nand size == 1GB, block size == 256kb 的ubi 文件系统制作
-
mkubiimg.sh
2 sudo mkfs.ubifs -F -q -r rootfs_ecm_5410 -m 4096 -e 253952 -c 3600 -o ubifs.img
3
4 echo mkfs.ubifs over!
5 sudo ubinize -o ubi.img -m 4096 -p 256KiB -s 4096 -O 4096 ubinize.cfg
6 echo ubinize over!
7
8 sync
9
10 sudo cp ubi.img ~/image -rf
11
12 sudo rm ubifs.img ubi.img -rf
13 sync
14 echo make file system ok !
-
ubinize.cfg
1 [ubifs]
2 mode=ubi
3 image=ubifs.img
4 vol_id=0
5 vol_size=900MiB
6 vol_type=dynamic
7 vol_name=rootfs
8 vol_flags=autoresize
Read The Fucking Source Code