DOC 2000 driver (NFTL) in kernel 2.4.7

Alexandru Harsanyi a.harsanyi at willhart-tech.com
Wed Aug 8 03:42:42 EDT 2001


Hi,

I commented out the ECC checking part, and nftlmount.c now detects my
partition. I mounted it read-only and made some tests with copying some
files of it. It seems to be working.

However, when I mount it read-write and I write some files to the
partition, the NFTL driver hangs my system...

The messages are:
------------
_Doc_WaitReady called for out-of-line wait
Setting inplace to 0. VUC 194, block 2 was 0 lastEUN, and is in EUN 333
(!=) 673
Cannot fold Virtual Unit Chain 194 in place. Trying out-of-place
-------------

The DOC data doesn't seem to be corrupted (as I can boot from it again)
but nothing gets written to it.

Best Regards,
Alex.

David Woodhouse wrote:
> 
> a.harsanyi at willhart-tech.com said:
> > ANAND header found at 0xc000 in mtd0, but ECC read failed (err 1)
> > ANAND header found at 0xe000 in mtd0, but ECC read failed (err 1)
> > Could not find valid boot record
> 
> And with this applied...?
> 
> Index: nftlmount.c
> ===================================================================
> RCS file: /home/cvs/mtd/drivers/mtd/nftlmount.c,v
> retrieving revision 1.20
> diff -u -r1.20 nftlmount.c
> --- nftlmount.c 2001/08/07 09:22:07     1.20
> +++ nftlmount.c 2001/08/08 06:41:48
> @@ -103,6 +103,7 @@
>                         continue;
>                 }
> 
> +#if 0
>                 /* Finally reread to check ECC */
>                 if ((ret = MTD_READECC(nftl->mtd, block * nftl->EraseSize, SECTORSIZE,
>                                 &retlen, buf, (char *)&oob) < 0)) {
> @@ -119,6 +120,7 @@
>                                buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]);
>                         continue;
>                 }
> +#endif
> 
>                 /* OK, we like it. */
> 
> 
> --
> dwmw2
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/




More information about the linux-mtd mailing list