jffs2: Too few erase blocks (1)

Dzuy Nguyen dzuy at infinity-studios.com
Mon Feb 9 00:52:59 EST 2009


Hello,

I've allocated a small (64K) "user_config" partition in my flash for
persistence storage:

mtd0: 00020000 00010000 "u-boot"
mtd1: 00010000 00010000 "Config"
mtd2: 00100000 00010000 "vmlinux"
mtd3: 002a0000 00010000 "rootfs"
mtd4: 00010000 00010000 "user_config"
mtd5: 00020000 00010000 "ART"

When I tried to mount -t jffs2 /dev/mtdblock4, I get

jffs2: Too few erase blocks (1)

I understand that my erasesize is 64K, which gives me only 1 block,
and jffs2 needs more than 1 block, but the kernel defaults the erasesize
to 64K.

If I made a jffs2 file with eraseblock=8, would this work or would I have
to set it at the kernel?

Dzuy



More information about the linux-mtd mailing list