Skip to contentSkip to conversation

MTD support for old DoC chips MD2201-D72

DISCUSSION Egorkat 2 participants 4 messages Jun 10, 2010 – Jun 11, 2010 Memory technology devices (MTD)

lore
Share & tools
lore

Egorkat

author
#0 lore raw

Good day, All!

I've faced the problem in 2.6.34 with support for old DiskonChip drives. I have 4 DoCs - one is MD2202-D32 (is recognised) and 3 MD2201-D72. modprobe diskonchip says -

[  151.499542] DiskOnChip found at 0xc8000
[  151.504542] DiskOnChip 2000 responds to DWORD access
[  151.509769] Detected 3 chips per floor.
[  151.509769] No NAND device found.
[  151.517548] DiskOnChip found at 0xca000
[  151.519541] DiskOnChip 2000 responds to DWORD access
[  151.521541] Detected 3 chips per floor.
[  151.527544] No NAND device found.
[  151.536658] No valid DiskOnChip devices found

Here is output from dinfo utility -

                           D I N F O - utility 
                  Version 5.1.4.0.8, Last Update: 22 Oct 2002
                   Copyright (C) M-Systems, 1992 - 2002
                 ----------------------------------------

DiskOnChip 1 - GENERAL INFO.

	Physical Address:  0xC8000
	DiskOnChip Type :  DiskOnChip 2000
	Flash Type      :  TC5864
	FormatType      :  NFTL
	TrueFFS version :  5.1.4
	Driver Version  :  DOS 5.1.4
	Sectors         :  9
	Heads           :  16
	Cylinders       :  1002
	Boot Area Size  :  49152 Bytes
	Logical Sectors :  144288
	Phy. UnitSize   :  8192 Bytes
	Physical Size   :  75497472 (72 MB)
	Unit Size       :  8192 Bytes
	Media Size      :  75497472 Bytes (72 MB)
	Chip Size       :  8388608 Bytes (8 MB)
	No Of Chips     :  9
	Interleaving    :  1

DiskOnChip 2 - GENERAL INFO.

	Physical Address:  0xCA000
	DiskOnChip Type :  DiskOnChip 2000
	Flash Type      :  TC5864
	FormatType      :  NFTL
	TrueFFS version :  5.1.4
	Driver Version  :  DOS 5.1.4
	Sectors         :  9
	Heads           :  16
	Cylinders       :  1002
	Boot Area Size  :  49152 Bytes
	Logical Sectors :  144288
	Phy. UnitSize   :  8192 Bytes
	Physical Size   :  75497472 (72 MB)
	Unit Size       :  8192 Bytes
	Media Size      :  75497472 Bytes (72 MB)
	Chip Size       :  8388608 Bytes (8 MB)
	No Of Chips     :  9
	Interleaving    :  1

Is it possible to add support for that chip in mtd? May be I can supply more information?

Thanks in advance!

#1 lore raw
Quoted 4 lines · Egorkat

Is it possible to add support for that chip in mtd? May be I can supply more
information?

What are the device and manufacturer IDs? Do you have CONFIG_MTD_NAND_MUSEUM_IDS set?

Signature · 1 line
dwmw2
author
#2 lore raw
Quoted 10 lines · David Woodhouse <dwmw2 <at> infradead.org> writes:
Quoted 4 lines · Egorkat

Is it possible to add support for that chip in mtd? May be I can supply more
information?

What are the device and manufacturer IDs? Do you have CONFIG_MTD_NAND_MUSEUM_IDS set?

I don't know device ids. Is there a way to find it out without recompiling the kernel with that parameter?

author
#3 lore raw
In reply to David Woodhouse

Great! After recompiling my kernel with that parameter, I successfully can load diskonchip module! Thanks for advice!

But that doesn't helped me in my primary problem - modprobe nftl also hangs... With these chip behavior is almost equal to MD2202-D32:

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)