NAND diskonchip driver broken with NFTL DOC 2000
Michael Marineau
mike at marineau.org
Mon Feb 5 02:12:29 EST 2007
On 2/2/07, David Woodhouse <dwmw2 at infradead.org> wrote:
> On Mon, 2007-01-29 at 17:10 -0800, Michael Marineau wrote:
> > I have been having a bit of an adventure trying to get a DiskOnChip
> > 2000 (NFTL model) working properly with nandwrite/nanddump utilities
> > and jffs2. With the current version in 2.6.20-rc6 nandwrite/nanddump
> > can properly read and write the main data area but writes to the oob
> > area didn't do anything and reads just got garbage. jffs2 was
> > similar, generally working but could never find clearmarkes.
> >
> > If I use the generic nand_read/write_oob_std functions from
> > nand_base.c instead of nand_read/write_syndrome then
> > nandwrite/nanddump operates perfectly for both the data area and oob.
> > Unfortunatly with those oob functions swapped jffs2 is unhappy,
> > throwing ecc errors constantly. I didn't check if jffs2 was able to
> > read the clearmarkers from oob.
>
> Does Artem's patch to use MTD_OOB_AUTO fix this?
Just gave that patch a try today and it fixed my jffs2 problems. So
that in combination with my previously mentioned trick fixes oob
access on this chip. I'm attaching my hack patch, all it does is copy
the nand_read/write_oob_std functions from nand_base.c to diskonchip.c
and use them instead of the default syndrome functions on doc2000
chips. I don't have any other doc devices so I'm not sure if this
helps or breaks anything else.
--
Michael Marineau
Oregon State University
mike at marineau.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diskonchip-oob-hack.patch
Type: text/x-patch
Size: 1495 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20070204/44943dab/attachment.bin
More information about the linux-mtd
mailing list