Eraseblock size in jffs2 ?

David Woodhouse dwmw2 at infradead.org
Wed Oct 10 12:31:38 EDT 2001


martin.kula at deltaes.cz said:
>  1. How can I set eraseblock size for mkfs.jffs2 ?
> I have DoC 24MB and line in /proc/mtd is: dev:    size   erasesize
> name mtd0: 01800000 00002000 "DiskOnChip 2000"

	mkfs.jffs2 -e 0x2000


> 2. Must I use erase command when I create jffs2 on the DoC ?

You need to erase the device first. Use the 'eraseall' utility:
	eraseall /dev/mtd0
Then you can use dd to put the image on the device.

Unfortunately, JFFS2 doesn't yet work on the DiskOnChip, because it uses 
NAND flash. JFFS v1 should probably work, or you can fix up JFFS2 to work 
too.

--
dwmw2






More information about the linux-mtd mailing list