DOC2000 issues...
Kevin Fenzi
kevin at scrye.com
Fri Feb 2 18:15:25 EST 2001
>>>>> "David" == David Woodhouse <dwmw2 at infradead.org> writes:
David> That's amusing. you said the latest binary-only driver actually
David> detected four units, didn't you? Looks like our code is doing
David> better alias detection :)
yeah. ;)
>> M-Systems NAND Flash Translation Layer driver. (C) 1999 MVHI $Id:
>> nftl.c,v 1.57 2000/12/01 17:51:54 dwmw2 Exp $ Could not find valid
>> boot record Could not mount NFTL device
David> Hmmm. Failing to recognise the Media Header. #define ECC_DEBUG
David> in doc2000.c. It may well be the same problem that's causing
David> 72MiB units to fail.
yeah, looks like:
...
DiskOnChip ECC Error: Read at 728000
Errors corrected: ffffffff
...
for all kinds of sectors. ;)
David> If it complains about ECC errors, go to nftlmount.c. Find the
David> bit which does this:
David> if ((i & (SECTORSIZE - 1)) == 0) { /* read one sector for
David> every SECTORSIZE of blocks */ if (MTD_READECC(nftl->mtd, block
David> * nftl->EraseSize + i + SECTORSIZE, SECTORSIZE, &retlen, buf,
David> (char *)&oob) < 0) goto ReplUnitTable; }
David> Replace MTD_READECC with MTD_READ and omit the final (&oob)
David> argument.
ok.
So I have:
/* read one sector for every SECTORSIZE of blocks */
if (MTD_READ(nftl->mtd, block * nftl->EraseSize +
i + SECTORSIZE, SECTORSIZE,
&retlen, buf) < 0)
I still get:
tons of these...
DiskOnChip ECC Error: Read at 2fec000
Errors corrected: ffffffff
DiskOnChip ECC Error: Read at 2ff0000
Errors corrected: ffffffff
DiskOnChip ECC Error: Read at 2ff4000
Errors corrected: ffffffff
DiskOnChip ECC Error: Read at 2ff8000
Errors corrected: ffffffff
Could not find valid boot record
Could not mount NFTL device
...
NFTL_open
ENODEV: thisNFTL = 0, minor = 23809, ip = c1173cf0, fp = c111bef8
VFS: Cannot open root device "5d01" or 5d:01
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 5d:01
Should I have to have the DEBUG_ECC off?
Looks like in find_boot_record() at the top of that file is another
MTD_READECC...should I change that to MTD_READ?
David> -- dwmw2
kevin
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list