wrong cfi flash device id
zzs
zzs213 at 126.com
Mon Nov 19 22:54:12 EST 2012
My board is very similar to at91rm9200ek but using
a 8MB cfi flash AT49BV642D.
When barebox started, the flash info as blow:
# devinfo cfi_flash0
CFI conformant FLASH (16 x 16) Size: 8 MB in 135 Sectors
AMD Standard command set, Manufacturer ID: 0x1F, Device ID: 0xD6
Erase timeout: 8192 ms, write timeout: 256 us
Buffer write timeout: 64 us, buffer size: 4 bytes
Sector Start Addresses:
10000000 10010000 10020000 10030000 10040000
10050000 10060000 10070000 10080000 10090000
100A0000 100B0000 100C0000 100D0000 100E0000
Barebox said the device id is 0xD6, But it should be 0x1D6.
Because of this wrong ID, In function drivers/nor/cfi_flash_amd.c:flash_fixup_atmel()
the erase region were reversed.
So I can't erase the first few sectors
I think it should use read8 or read16 according the portwidth like
u-boot does.
Am I right?
--
Best Regards,
zzs
More information about the barebox
mailing list