Message ID | 4C6AD9C2.1070705@broadcom.com |
---|---|
State | New, archived |
Headers | show |
On 17 Aug 10 11:49, Brian Norris wrote: > First, have you ever used any of the mtdutils? In particular, > running the command "mtdinfo -a" and sending the output is helpful > if you have the utility installed on your board. hmm mtdinfo tries to open /sys/class/mtd/mtd0/dev which das not exist the device is working ok as block device on the other hand so let's try the next thing. Output booting with a patched .36-rc1 [ 0.279217] rbppc_nand_probe: MikroTik RouterBOARD 600 series NAND driver, version 0.0.2 [ 0.287535] ID byte 0: 0xad [ 0.290373] ID byte 1: 0x76 [ 0.293185] ID byte 2: 0xad [ 0.295985] ID byte 3: 0x76 [ 0.298798] ID byte 4: 0xad [ 0.301610] ID byte 5: 0x76 [ 0.304423] ID byte 6: 0xad [ 0.307223] ID byte 7: 0x76 [ 0.310046] NAND device: Manufacturer ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit) Hope this helps...
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 4a7b864..d2d1fab 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -2809,8 +2809,10 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, /* Read entire ID string */ - for (i = 0; i < 8; i++) + for (i = 0; i < 8; i++) { id_data[i] = chip->read_byte(mtd); + printk(KERN_INFO "ID byte %i: %#x\n", i, id_data[i]); + } if (id_data[0] != *maf_id || id_data[1] != dev_id) {