jffs2/nand flash

David Woodhouse dwmw2 at infradead.org
Tue Dec 9 13:45:02 EST 2003

On Tue, 2003-12-09 at 17:55 +0000, John Stirling wrote:
> jffs2_flash_writev is called with vecs[0]=68, vecs[1]=489. This only
> results in one page write even though there is more than 512 bytes of
> data. It is called from jffs2_full_dnode (in write.c).
> alloc_mode=ALLOC_GC. Is this expected operation ? It seems to be causing
> the reported errors.

Yes, it's expected. The remainder should remain in the wbuf, and later
writes will be appended, before it's flushed. It'll also be flushed if
appropriate on sync(), fsync(), umount() etc.

> I have some additional errors - see below. 0x4ac400 corresponds to the
> end of the downloaded jffs2 image (approx 5Mb). The remainder of the
> partition was filled with 0xff (7Mb). Individual page reads and writes
> work fine.

Can you read the entire flash back and give me a dump of it? 


More information about the linux-mtd mailing list