How to create a working UBIFS for NAND ?? is our issue
we are using 256MB NAND (MT29F2GXXXXX) for our for AM335x EVM-SK aprocessor and 3.14 is the linux kernel version and 2015 is the U-boot version.
we tried with TI wiki links -- but unable to create working root filesystem for NAND.
1. for mkfs.ubifs require rootfs-path -- we are using TI SDK 8.0 is providing filesystem
while is having :
tisdk-rootfs-image-am335x-evm.ubi and tisdk-rootfs-image-am335x-evm.tar.gz
arago-base-tisdk-image-am335x-evm.ubi and arago-base-tisdk-image-am335x-evm.tar.gz
Shall we use these filesystem --??
we tried with above one ti-sdk-rootfs --with mtd-utils to create ubifs.img-- but we got some error came then
we used arago-base-tisdk-- ubifs.img created but that is not working -- VID and EC header error leads to kernel panic and it is not loading :
[ 2.469038] UBI: attaching mtd9 to ubi0
[ 2.473773] UBI error: validate_ec_hdr: bad VID header offset 512, expected 2048
[ 2.481561] UBI error: validate_ec_hdr: bad EC header
//-------------------------------------------------
we used these command to create: ours is Micron MT29F2G08ABAEAWP -- 256MB NAND
Example:
As suggested links by ti-wiki:
http://www.linux-mtd.infradead.org/faq/ubifs.html#L_mkfubifs
$ mkfs.ubifs -q -r root-fs -m 2048 -e 129024 -c 2047 -o ubifs.img $ ubinize -o ubi.img -m 2048 -p 128KiB -s 512 ubinize.cfg
mkfs.ubifs -q -r /home/cyient/ti-sdk-am335x-evm-08/filesystem/arago-base-tisdk-image-am335x-evm -m 2048 -e 129024 -c 2047 -o ubifs.img
and also tried with "-e 126976" -- which is mentioned in one of Sitara-fourms about LEB -- calculation.
and for ubi.img :
ubinize -o ubi.img -m 2048 -p 128KiB -s 512 ubinize.cfg
our suspect is
arago-base-tisdk-image-am335x-evm is this right root filesystem ?? to use for ubifs..??
Please correct me , if we are done any thing wrong.
Regards,
Viswanath K