UBIFS second time booting issue

rithesh at tesbv.com rithesh at tesbv.com
Thu Oct 29 00:30:16 EDT 2009


Hello All,

I am able to flash the ubifs filesystem using "ubiformat" and now it  
is booting consistently.
Please suggest me a way to flash the ubifs in a factory setup, i am  
presently unable do this using SAM-ICE program for at91sam9260ek.

Regards,
Rithesh.M

Quoting Jason Liu <liu.h.jason at gmail.com>:

> 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.
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the linux-mtd mailing list