07/06/2009 6:44 AM
NOR Flash (Numonyx M29W128FH) and devf-generic
I am using a Numonyx NOR-Flash Device (16MB, 16 bit Bus Width) on a AMCC PPC460EX CPU.
My problem is, that I can't bring up a properly erased device.
At first my problem was, that the device wasn't recognized from devf-generic. This was cause all of the ident functions
(for AMD compatible devices) in the libmtd-flash library was looking for the AMD Device ID 0x01 before reading the
device values via the JEDEC defined Common Flash Interface (CFI).
Since Numonyx changed that Device ID to 0x20 (the predecessor Spansion had 0x01 as well), I had to change the code of
the ident function as well.
Now the device is properly detected and all necessary values are read via CFI.
But now I can't erase the device with the flashctl -p/dev/fs0 -ve command.
A little change in the used f3s_a29f100_v2erase() function shows that already before erasing, the error status bit of
the status register is set.
I attached the output of the calls: devf-generic-generic -s0x4ff000000,16M -vvvvv and "flashctl -p /dev/fs0 -ve"