But cfi_flash.c doesn't work for me. It always complains "flash is
busy" when I try to write something. However strata_flash.c works. why
is that? By the way, is there anyway to read flash contents in u-boot?
md?<br><br><div><span class="gmail_quote">On 10/16/06, <b class="gmail_sendername">Tolunay Orkun</b> &lt;<a href="mailto:listmember@orkun.us">listmember@orkun.us</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Reeve Yang wrote:<br>&gt; I'm a little confused by flash driver selection in u-boot. My flash<br>&gt; device is intel JS28F128J3, I assume it's not CFI flash so I want to use<br><br>Intel 28F128J3 is a CFI compliant flash chip.
<br><br>&gt; strataflash.c. I added such file under my board directory, add it into<br>&gt; Makefile, and undef CFG_FLASH_CFI_DRIVER, but I got link error. If<br><br>strataflash.c driver is a pre-cursor to common cfi_flash.c. Most boards
<br>are reworked to use the cfi_flash.c. To use strataflash.c you also had<br>to define CFG_FLASH_CFI_DRIVER (as far as my memory serves). There is no<br>reason to use a custom flash driver nowadays unless your flash is<br>
interfaced to the processor bus in a very unusual way (like data bus<br>scrambled -- hardware design bugs)<br><br>&gt; define this macro, the compilation is ok and my flash works. My question<br>&gt; is, if we define this macro, which flash driver being used? cfi_flash.c
<br>&gt; or my strataflash.c?<br><br>Use cfi_flash.c<br><br>Tolunay<br><br></blockquote></div><br>