mounting jffs2 on NOR flash

Duke ezbonites at
Tue Mar 13 17:51:26 EDT 2007

Hi all,

The easiest way I found to create a jffs2 on my NOR flash is to first
mount my rootfs as NFS, then I created a jffs2 fs using

flash_eraseall /dev/mtd3
mkfs.jffs2 -e 256KiB -o /dev/mtd3

Then I added the line "/dev/mtdblock3 /var jffs2 rw 0 0" to my fstab
(NFS root) and reboot.
An ls after this shows that my /var shows the / fs. How is that possible?

This is my /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00040000 "boot"
mtd1: 00180000 00040000 "kernel"
mtd2: 00640000 00040000 "root"
mtd3: 00400000 00040000 "var"
mtd4: 00400000 00040000 "str"

Am I doing something incorretly?

I did the same thing but booting from mtd2 rootfs and the same thing,
everything in /var gone and /var is the same as /.

I need help.

More information about the linux-mtd mailing list