PCI flash: found no device
Hi all,
I've added support for flash memory for a PCI card in drivers/mtd/maps/pci.c, based on the two existing drivers. The flash type is Intel 28F series and supports CFI probes. On loading the pci.ko module (I'm using 2.6.6), the message says CFI: Found no 0000:04:02.2 device at location zero. This also means that it found the PCI card and the flash memory at the appropriate function and BAR. I've sprinkled some printk's which show that the pci_resource_start is being read correctly from the device that's to be used as the flash resource.
Do I have to have some extra driver, like a standalone driver in drivers/mtd/maps/ which does some other initialization? I tried that approach as well, but even that thing reports the same problem, so I'm not sure what I'm missing.
Can someone tell me what's missing?
Thanks,
Amit.
Signature · 2 lines
Amit Shah http://amitshah.nav.to/
Quoted 5 lines · Amit Shah
Hi all,
I've added support for flash memory for a PCI card in
drivers/mtd/maps/pci.c, based on the two existing drivers. The flash type is Intel 28F series and supports CFI probes.
The message you saw means that we didn't recognise any flash chips. Are you sure your 'bankwidth' was set correctly? What type and width of flash chips? How many are interleaved?
Signature · 1 line
dwmw2
Hi David,
Quoted 10 lines · David Woodhouse
Quoted 5 lines · Amit Shah
Hi all,
I've added support for flash memory for a PCI card in
drivers/mtd/maps/pci.c, based on the two existing drivers. The flash type is Intel 28F series and supports CFI probes.The message you saw means that we didn't recognise any flash chips. Are you sure your 'bankwidth' was set correctly? What type and width of flash chips? How many are interleaved?
This is the text on the manual:
Intel Advanced+ Boot Block Flash Memory (C3) 28F800C3, 28F160C3, 28F320C3, 28F640C3 (x16)
< http://www.intel.com/design/flcomp/datashts/290645.htm >
and the flash on the board is 28F160C3B(8?)C70.
I've set the buswidth to 2, since it's 16Mbit memory, the flash size is 2MB.
However, I've not defined any partitions on the memory (yet); how to do it for PCI flash devices? A separate driver?
Thanks,
Amit.
Signature · 2 lines
Amit Shah http://amitshah.nav.to/