UBIFS second time booting issue
Jason Liu
liu.h.jason at gmail.com
Mon Oct 26 06:05:26 EDT 2009
2009/10/26 <rithesh at tesbv.com>:
> Hello,
>
> I have built a ubifs filesystem of size 8MiB. The following steps were
> followed:
>
>
> ./mkfs.ubifs -r /home/rithesh/TITAN/ubifilesystem/ -m 512 -e 15360 -c 511 -o
> /tmp/ubifs.img
>
> ./ubinize -o /tmp/ubi.img -m 512 -s 512 -p 16384 ubinize.cfg
>
> My nand flash is 256MiB with the block size of 16KiB and 512 bytes of page
> size.
>
> The ubinize.cfg contains the following:
>
> [ubifs]
> mode=ubi
> image=/tmp/ubifs.img
> vol_id=0
> vol_size=8MiB
> vol_type=dynamic
> vol_name=rootfs
> vol_flags=autoresize
>
>
> ISSUE:
>
> The ubi.img which gets generate out of the following steps is flashed and
> the kernel comes up for the first time but fails to boot up the second time.
>
> Hence i have enabled the Debug message to traces the bug which points
> towards "switching of ubifs filesystem to readonly mode" but i am not sure
> why this should happen.
> Before switching the readonly mode the ubifs write to the flash fails
> continues, please see the logfile attached to this mail.
>
> Please guide me through this problem.
>
> Thanks and Regards,
> Rithesh.M
> TES Electronic Solutions(I) Pvt LTD.
>
What utility did you used to write the UBIFS image to NAND flash?
Please make sure not to program the page which data is all 0xFF. Your
issue is called by writting the page which data is all 0xFF.
More information about the linux-mtd
mailing list