Lorenzo Lutti ha scritto:
[EMAIL PROTECTED]:~# ftl_format /dev/mtd1
Partition size = 4 mb, erase unit size = 16 kb, 1 transfer units
Reserved 5%, formatted size = 3846656 bytes
Erasing all blocks...
block erase failed: Input/output error
format failed.
It looks like a very low-level problem, either with flash character driver or
the hardware itself. If I try to read the contents of flash (i.e. dd
if=/dev/mtd0 of=test count=2000) I get all zeroes, which obviously isn't true:
I'm loading u-boot from NAND, therefore it has to be there (and I've erased the
rest, so it should be all 0xFF). At the kernel loading the flash is detected
though:
NFTL driver: nftlcore.c $Revision: 1.96 $, nftlmount.c $Revision: 1.39 $
INFTL: inftlcore.c $Revision: 1.17 $, inftlmount.c $Revision: 1.15 $
physmap flash device: 0 at 8000000
Failed to ioremap
DaVinci NAND Controller rev. 2.1
NAND device: Manufacturer ID: 0xec, Chip ID: 0x36 (Samsung NAND 64MiB 1,8V
8-bit)
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 64MiB 1,8V 8-bit":
0x00000000-0x00104000 : "Initial Flash Partition 0"
CLASS: registering class device: ID = 'mtd0'
class_hotplug - name = mtd0
CLASS: registering class device: ID = 'mtd0ro'
class_hotplug - name = mtd0ro
0x00104000-0x00504000 : "Kernel Partition 1"
ftl_cs: FTL header not found.
CLASS: registering class device: ID = 'mtd1'
class_hotplug - name = mtd1
CLASS: registering class device: ID = 'mtd1ro'
class_hotplug - name = mtd1ro
0x00504000-0x04000000 : "File System Partition 2"
ftl_cs: FTL header not found.
CLASS: registering class device: ID = 'mtd2'
class_hotplug - name = mtd2
CLASS: registering class device: ID = 'mtd2ro'
class_hotplug - name = mtd2ro
Cheers, Lorenzo
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source