jffs2 summary problem

Josh Boyer jwboyer at linux.vnet.ibm.com
Thu Oct 12 08:12:56 EDT 2006


On Thu, 2006-10-12 at 12:15 +0200, Takács Áron wrote:
> Hi,
> 
> I have to shorten the mount time of a jffs2 filesystem. I am working on 
> a PXA270 based board witha 2.6.18 kernel. I have the jffs2 filesystem in 
> the fourth partition of the flash  (dev/mtdblock3), its size is about 
> 10Mb. The mount time is about 1.5sec. I am doing the followings:
> 
> My kernel config looks likde this:
> 
> CONFIG_JFFS2_FS=y
> CONFIG_JFFS2_FS_DEBUG=0
> CONFIG_JFFS2_FS_WRITEBUFFER=y
> CONFIG_JFFS2_SUMMARY=y
> 
> Now I create the jffs2 image:
> 
> mkfs.jffs2 -r rootfs/adatok -o colibri.jffs2 -e 0x40000 --pad=0xa40000
> Result: colibri.jffs2 10,2Mb

Is the eraseblock size of your chip really 256KiB?  Most NOR flashes
have an eraseblock size of 128KiB ( -e 0x20000).
> 
> After that I am running sumtool:
> 
> sumtool -e 0x40000 -p 0xa40000 -v -icolibri.jffs2 -ocolibri_sum.jffs2
> Result: colibri_sum.jffs2 256kb
> 
> Now I copy the file (from filesystem on nfs) to the flash:
> 
> dd if=/colibri_sum.jffs2 of=/dev/mtdblock3 bs=256k
> 
> After all I have the following situation:
> Mount time is the same. After mounting the first "ls" takes a long time. 
> On the serial console I can se a lot of characters.

A log of the errors might be useful if verifying your eraseblock size
doesn't work.

josh





More information about the linux-mtd mailing list