hi,<br>I&#39;m trying to setup the kernel&#39;s (linux-2.6.24) flash driver.<br>Our flash is combined of 2 chips of S29GLN (spanion)<br>2 X 16 bits data chips connected to 32 bits data bus.<br>This flash is compatible with the AMD CFI.<br>
I&#39;ve configured the kernel to:<br>1. Detect flash chips by common flash interface (CFI) probe.<br>2. Support for AMD/Fujitsu flash chips<br>(The flash starts at absolute address 0xfc000000<br>&amp; size is 0x4000000)<br>
When the kernel starts I see the messages attached below,<br>which I think indicate that something might be wrong with<br>the detection of the flsah.<br>1. Is this correct ? - something is wrong with the flash detection?<br>
2. Which device I need to use in order to read/write to<br>the flash? (I don&#39;t see any /flash device under /dev/ only:<br>/dev/mtd0 .. /dev/mtd3 &amp; /dev/mtdblock0 .. /dev/mtdblock3)<br><br>Debug messages (DEBUG_CFI is defined):<br>
physmap platform flash device: 04000000 at fc000000<br>Number of erase regions: 1<br>Primary Vendor Command Set: 0002 (AMD/Fujitsu Standard)<br>Primary Algorithm Table at 0040<br>Alternative Vendor Command Set: 0000 (None)<br>
No Alternate Algorithm Table<br>Vcc Minimum:&nbsp; 2.7 V<br>Vcc Maximum:&nbsp; 3.6 V<br>No Vpp line<br>Typical byte/word write timeout: 128 \uffffs<br>Maximum byte/word write timeout: 1024 \uffffs<br>Typical full buffer write timeout: 128 \uffffs<br>
Maximum full buffer write timeout: 4096 \uffffs<br>Typical block erase timeout: 1024 ms<br>Maximum block erase timeout: 16384 ms<br>Chip erase not supported<br>Device size: 0x2000000 bytes (32 MiB)<br>Flash Device Interface description: 0x0002<br>
&nbsp; - supports x8 and x16 via BYTE# with asynchronous interface<br>Max. bytes in buffer write: 0x20<br>Number of Erase Block Regions: 1<br>&nbsp; Erase Region #0: BlockSize 0x20000 bytes, 256 blocks<br>physmap-flash.0: Found 2 x16 devices at 0x0 in 32-bit bank<br>
&nbsp;Amd/Fujitsu Extended Query Table at 0x0040<br>physmap-flash.0: CFI does not contain boot bank location. Assuming top.<br>number of CFI chips: 1<br>cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.<br>
of-flash: probe of fc000000.flash failed with error -16<br><br>Thanks,<br>Liran.<br><br>