ubinize.ini文件,需要注意的是总[system]120MiB + [cache]30MiB + [data]50MiB 不能超过Nand总容量(256Mb),否则会报错.
[system]
mode=ubi
image=./out/target/product/imx51_bbg/system.img
vol_id=0
vol_size=120MiB
vol_type=dynamic
vol_name=system
vol_alignment=1
[cache]
mode=ubi
image=./out/target/product/imx51_bbg/userdata.img
vol_id=1
vol_size=30MiB
vol_type=dynamic
vol_name=cache
vol_alignment=1
[data]
mode=ubi
image=./out/target/product/imx51_bbg/userdata.img
vol_id=2
vol_size=50MiB
vol_type=dynamic
vol_name=data
vol_alignment=1
vol_flags=autoresize
ubinize_reco.ini文件
[recovery]
mode=ubi
image=./out/target/product/imx51_bbg/recovery.img
vol_id=0
vol_size=10MiB
vol_type=dynamic
vol_name=recovery
vol_alignment=1
vol_flags=autoresize