Can you really write a jffs2 image with nandwrite?
tglx at linutronix.de
Tue Mar 1 14:16:10 EST 2005
On Tue, 2005-03-01 at 11:11 -0700, Peter Grayson wrote:
> > nandwrite does not expect oob data for jffs2 images.
> But it appears nandwrite can accept oob data. It does have the --oob
> option and when this option is set nandwrite reads the oob data from the
> image and does an ioctl() to the mtd character device to write it.
Yes it can, but JFFS2 images contain no oob data
> With mkfs.jffs2, I had some confusion about the pagesize option. I was
> thinking that it corresponded to the NAND pagesize, but that is not
> correct, it sets the jffs2 filesystem page size.
Oops, missed that one.
> With nandwrite, the -j option causes things to not work. This was a
> great stumbling block for me. It proved to be critical to _not_ use the
> -j (or -o) option with nandwrite. This is in direct conflict with
> instructions in the FAQ.
Could you please correct the FAQ and add the steps you took and send a
More information about the linux-mtd