[Help] SST39VF6401B Support
Guillaume LECERF
glecerf at gmail.com
Fri Oct 22 06:41:40 EDT 2010
2010/10/22 yidong zhang <zhangyd6 at gmail.com>:
>> You didn't applied my latest patch, you would have only 1 erase region
>> if you did.
> It was printed by the print_cfi_ident function. And the region
> number is readed from the flash. So there was 2 erase region
OK, my bad :(
The datasheet is really f***ed up.
"Sector Information (y + 1 = Number of sectors; z x 256B = sector size)
y = 2047 + 1 = 2048 sectors (03FFH = 1023)
z = 32 x 256 Bytes = 8 KBytes/sector (0100H = 32)"
03FFH = 1023, so y = 1023 + 1 = 1024 sectors
0100H = 256 (not 32), so z = 256 x 256 = 64 KBytes/sector
I think we should modify the sector size on the fly, i.e. changing
0100h to 0020h (32).
Could you try setting cif->cfiq->EraseRegionInfo[0] to 0x02003FF in
fixup_sst39vf_rev_b() ?
--
Guillaume LECERF
GeeXboX developer - www.geexbox.org
More information about the linux-mtd
mailing list