modprobe nftl hangs
Good day to ALL!
I'm struggling with M-systems DiskOnChip support under kernel 2.6.34.
Compiled support for DoC as a module under MTD device. Module loads fine, no errors.
When I make nftl_format /dev/mtd0, I receive warnings:
voyage:~# nftl_format /dev/mtd0 version 1.24 2005/11/07 11:15:13 gleixner Phase 1. Checking and erasing Erase Zones from 0x00000000 to 0x02000000 Skipping bad zone (factory marked) #0 @ 0x0 Skipping bad zone (factory marked) #1 @ 0x4000 Skipping bad zone (factory marked) #3 @ 0xc000 Skipping bad zone (factory marked) #4 @ 0x10000
After I try to modprobe nftl, I get:
NFTL Media Headers at 0x0 and 0x8000 disagree.
NFTL Media Headers at 0x0 and 0xc000 disagree.
NFTL Media Headers at 0x0 and 0x10000 disagree.
NFTL Media Headers at 0x0 and 0x14000 disagree.
Formatting block 2
Formatting block 5
And in hangs forever...
I think it is a problem in wrong headers at 0x0, which also resides on bad zone But how to work this around?
With best Regards,
Egorkat.
May be dmesg will be helpful:
DiskOnChip found at 0xc8000
DiskOnChip 2000 responds to DWORD access
Detected 2 chips per floor.
NAND device: Manufacturer ID: 0x98, Chip ID: 0x73 (Toshiba NAND 16MiB 3,3V 8-bit) 2 NAND chips detected
Found DiskOnChip ANAND Media Header at 0x0
Found DiskOnChip ANAND Media Header at 0x4000
DataOrgID = ANAND
NumEraseUnits = 2048
FirstPhysicalEUN = 0
FormattedSize = 32833536
UnitSizeFactor = 0
UnitSizeFactor=0x00 detected. Correct value is assumed to be 0xff. Bad block table at page 1, version 0x55
Bad block table at page 33, version 0x55nand_read_bbt: Bad block at 0x00000000c000nand_read_bbt: Bad block at 0x000000010000nand_read_bbt: Bad block at 0x000000348000
Found alias of DOC at 0xc8000 to 0xca000
also - cat /proc/mtd
dev: size erasesize name
mtd0: 02000000 00004000 "DiskOnChip 2000 (NFTL Model)"
and also - nftl_format /dev/mtd0
version 1.24 2005/11/07 11:15:13 gleixner
Phase 1. Checking and erasing Erase Zones from 0x00000000 to 0x02000000 Skipping bad zone (factory marked) #0 @ 0x0
Skipping bad zone (factory marked) #1 @ 0x4000
Skipping bad zone (factory marked) #2 @ 0x8000
Skipping bad zone (factory marked) #3 @ 0xc000
Skipping bad zone (factory marked) #4 @ 0x10000
Skipping bad zone (factory marked) #5 @ 0x14000
Erasing Zone #210 @ 0x348000: Erase failed (Input/output error)
Checking Zone #2047 @ 0x1ffc000Phase 2.a Writing NFTL Media Header and Bad Unit Table Phase 2.b Writing Spare NFTL Media Header and Spare Bad Unit Table Phase 3. Writing Unit Control Information to each Erase Unit
after it - modprobe nftl hangs and dmesg shows this - NFTL Media Headers at 0x0 and 0x8000 disagree. NFTL Media Headers at 0x0 and 0xc000 disagree. NFTL Media Headers at 0x0 and 0x10000 disagree. NFTL Media Headers at 0x0 and 0x14000 disagree. NFTL Media Headers at 0x0 and 0x18000 disagree. NFTL Media Headers at 0x0 and 0x1c000 disagree. Formatting block 2
Formatting block 5
Formatting block 6
Formatting block 7
thats it... no luck no /dev/nftla...
Situation repeats with another chip - MD2201-D72:
modprobe diskonchip -
DiskOnChip found at 0xc8000
DiskOnChip 2000 responds to DWORD access
Detected 3 chips per floor.
NAND device: Manufacturer ID: 0x98, Chip ID: 0xe6 (Toshiba NAND 8MiB 3,3V 8-bit) 9 NAND chips detected
Found DiskOnChip ANAND Media Header at 0xc000
Found DiskOnChip ANAND Media Header at 0x10000
DataOrgID = ANAND
NumEraseUnits = 4605
FirstPhysicalEUN = 3
FormattedSize = 73875456
UnitSizeFactor = 0
UnitSizeFactor=0x00 detected. Correct value is assumed to be 0xfe. Setting virtual erase size to 16384
Bad block table at page 97, version 0x55
Bad block table at page 129, version 0x55
Found alias of DOC at 0xc8000 to 0xca000
mtd_debug info /dev/mtd0 -
mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CAP_NANDFLASH
mtd.size = 75497472 (72M)
mtd.erasesize = 16384 (16K)
mtd.writesize = 512
mtd.oobsize = 16
regions = 0
nftl_format /dev/mtd0 -
version 1.24 2005/11/07 11:15:13 gleixner
Phase 1. Checking and erasing Erase Zones from 0x00000000 to 0x04800000 Skipping bad zone (factory marked) #3 @ 0xc000
Skipping bad zone (factory marked) #4 @ 0x10000
Skipping bad zone (factory marked) #6 @ 0x18000
Skipping bad zone (factory marked) #7 @ 0x1c000
Skipping bad zone (factory marked) #8 @ 0x20000
Skipping bad zone (factory marked) #9 @ 0x24000
Skipping bad zone (factory marked) #10 @ 0x28000
Checking Zone #4607 @ 0x47fc000
Phase 2.a Writing NFTL Media Header and Bad Unit Table Phase 2.b Writing Spare NFTL Media Header and Spare Bad Unit Table Phase 3. Writing Unit Control Information to each Erase Unit
and modprobe nftl -
[ 1695.537469] NFTL Media Headers at 0x0 and 0xc000 disagree. [ 1695.541610] NFTL Media Headers at 0x0 and 0x10000 disagree. [ 1699.540763] Formatting block 6 [ 1699.580575] Formatting block 7 [ 1699.620227] Formatting block 8 [ 1699.660541] Formatting block 9 [ 1699.699122] Formatting block 10 [ 1851.005969] NFTL: cannot calculate a geometry to match size of 0x23e80. [ 1851.008110] NFTL: using C:1021 H:16 S:9 (== 0x23e50 sects)
and nothing... it hangs forever...