Cannot erase Nand Flash with mtd-util-1.0.0

peter.hosten at rwth-aachen.de peter.hosten at rwth-aachen.de
Mon Jun 26 04:52:43 EDT 2006


Hello, 

I am working on the DbAu1200 Board with Linux version 2.6.11-r000058 and
NAND Flash K9F1208U0B PCB0(Samsung NAND 64MiB 3,3V 8-bit) .

I was able to place the jffs2 file system on NOR Flash (mtd2), i had no
problems using the mtd-utils-1.0.0

Now i want to place it on NAND Flash (mtd3). Unfortunately the mtd-util
(flash_eraseall, mtd_debug) is not able to erase the NAND-Flash. I get the
error  "./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error"
(see below)

Has anyone made the same experiences before?

I also dumped the NAND Flash ( see below); may it be possible that it does
not work because of the OBB data ( OOB Data: 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00) ?

I hope someone can give me a little hint.

Best regards

Peter

 

Linux version 2.6.11-r000058 
CPU revision is: 04030201
AMD Alchemy Db1200 Board
...
Db1200 Flash: probing 16-bit flash bus
Db1200 Flash: Found 1 x16 devices at 0x0 in 16-bit bank
Db1200 Flash: Found 1 x16 devices at 0x2000000 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
Db1200 Flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 2
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 3 MTD partitions on "Db1200 Flash":
0x00000000-0x03c00000 : "User FS"
0x03c00000-0x03d00000 : "YAMON"
0x03d00000-0x03fc0000 : "raw kernel"
block2mtd: version $Revision: 1.23 $
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V
8-bit)
Scanning device for bad blocks
Bad eraseblock 62 at 0x000f8000
Creating 2 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00800000 : "NAND FS 0"
0x00800000-0x04000000 : "NAND FS 1"
No valid DiskOnChip devices found

 


# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 03c00000 00010000 "User FS"
mtd1: 00100000 00010000 "YAMON"
mtd2: 002c0000 00010000 "raw kernel"
mtd3: 00800000 00004000 "NAND FS 0"
mtd4: 03800000 00004000 "NAND FS 1"

 
# ./mtd_debug info /dev/mtd3
mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CLEAR_BITS | MTD_ECC
mtd.size = 8388608 (8M)
mtd.erasesize = 16384 (16K)
mtd.oobblock = 512
mtd.oobsize = 16
mtd.ecctype = MTD_ECC_NONE
regions = 0

 

./flash_eraseall /dev/mtd3
Erasing 16 Kibyte @ 0 --  0 % complete.
./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error
Erasing 16 Kibyte @ 4000 --  0 % complete.
./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error
Erasing 16 Kibyte @ 8000 --  0 % complete.
./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error
Erasing 16 Kibyte @ c000 --  0 % complete.
./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error
Erasing 16 Kibyte @ 10000 --  0 % complete.
./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error
Erasing 16 Kibyte @ 14000 --  0 % complete.
./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error
...
Erasing 16 Kibyte @ 7f8000 -- 99 % complete.
./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error
Erasing 16 Kibyte @ 7fc000 -- 99 % complete.
./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error

 

 

 

# ./nanddump -p -f NAND_DUMP /dev/mtd3
Block size 16384, page size 512, OOB size 16
Dumping data starting at 0x00000000 and ending at 0x00800000..

0x00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000001a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000001b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000001c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000001d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000001e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x000001f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  OOB Data: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000210: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x00000220: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
-------

0x007fffe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x007ffff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  OOB Data: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  









More information about the linux-mtd mailing list