Clarification on PLACE -vs- AUTO with JFFS2 cleanmarkers.
Artem Bityutskiy
dedekind at infradead.org
Fri Nov 3 04:26:45 EST 2006
On Thu, 2006-11-02 at 13:10 -0500, Pete MacKay wrote:
> I've written a custom driver for the ST 512R3A 8-bit NAND under 2.6.16 and
> ported it to 2.6.18. Because of some chip and system peculiarities I was
> unable to use the NAND framework and wrote it using solely MTD (except for
> software ECC). The problem occurs when mounting a JFFS2 file system: the
> cleanmarker is written to bytes 0-7 (ECC, bad block marker) instead of
> 8-15 of the OOB, as instructed by the write_ops call with ooboffs=0,
> ooblen=8, and mode=MTD_OOB_PLACE. My understanding is that MTD_OOB_AUTO
> should be used to put the cleanmarker into the the free bytes; am I
> mistaken? I've corrected what we thought were other problems with len and
> ooblen in wbuf.c but it looks like that patch came out Monday.
In my opinion you have hit a bug which seems to be introduced at May
2006 by commit 8593fbc68b0df1168995de76d1af38eb62fd6b62.
I think it assumed to be MTD_OOB_AUTO.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list