mkfs.jffs2 and mksum

Timo Piiroinen timo.piiroinen at tut.fi
Wed Sep 19 10:03:57 EDT 2007


Artem Bityutskiy kirjoitti:
> Hi,
>
> On Wed, 2007-09-19 at 15:45 +0300, Timo Piiroinen wrote:
>   
>> I have done jffs2 image with --pad option to match my flash size and it 
>> works fine. However, if I want to use summary, the sumtool creates smaller 
>> image than original padded jffs2 image and the flash isn't fully used. 
>> I write the jffs2 image using bootloader, where I set the size of the 
>> flashing length match the filesize. Is there any way to pad summed 
>> image to larger so that i can fully occupy flash?
>> sumtool -p option doesn't allow to set filesize.
>>     
>
> If your flash is NAND flash I do not recommend you to pad it because
> writing FFs may have side-effects.
>
>   
Yes it is NAND flash. I tried to add dummy file to my filesystem to 
increase the size of image and after that remove that dummy file to free 
space, unfortunately I couldn't remove the file cause the filesystem was 
100% full,
and that's the real problem.




More information about the linux-mtd mailing list