hi,
I need help on ubifs image creation.
We are following the following link as suggested by Ti forums.
http://www.linux-mtd.infradead.org/faq/ubifs.html#L_mkfubifs.
We are using SDK 8. We are using arago-base-tisdk-image-am335x-evm filesystem.
We are using the following commands to build the ubi image.
$ mkfs.ubifs -q -r root-fs -m 2048 -e 126976-c 2047 -o ubifs.img
$ ubinize -o ubi.img -m 2048 -p 128KiB -s 512 ubinize.cfg
Below is our ubinize cfg file
[ubifs]
mode=ubi
image=ubifs.img
vol_id=0
vol_size=240MiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize
But here the system is crashing with this image.
But the below log is coming with the SDK 8 arago-base-tisdk-image-am335x-evm.ubi
[ 2.957138] ubi_init
[ 2.960445] UBI: attaching mtd9 to ubi0
[ 4.321184] UBI: scanning is finished
[ 4.348919] UBI: volume 0 ("rootfs") re-sized from 273 to 1924 LEBs
[ 4.357185] UBI: attached mtd9 (name "NAND.rootfs", size 246 MiB) to ubi0
[ 4.364422] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 4.371582] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 4.378569] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 4.385807] UBI: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
[ 4.392145] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
Please correct us if anything above is wrong in generation of ubifs file.