[U-Boot-Users] flash driver in u-boot

Michael Trimarchi trimarchi at gandalf.sssup.it
Tue Oct 17 21:41:34 CEST 2006


Do you have a timeout and using timer to test it?

Reeve Yang wrote:

> 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?
>
> On 10/16/06, *Tolunay Orkun* <listmember at orkun.us 
> <mailto:listmember at orkun.us>> wrote:
>
>     Reeve Yang wrote:
>     > I'm a little confused by flash driver selection in u-boot. My flash
>     > device is intel JS28F128J3, I assume it's not CFI flash so I
>     want to use
>
>     Intel 28F128J3 is a CFI compliant flash chip.
>
>     > strataflash.c. I added such file under my board directory, add
>     it into
>     > Makefile, and undef CFG_FLASH_CFI_DRIVER, but I got link error. If
>
>     strataflash.c driver is a pre-cursor to common cfi_flash.c. Most
>     boards
>     are reworked to use the cfi_flash.c. To use strataflash.c you also had
>     to define CFG_FLASH_CFI_DRIVER (as far as my memory serves). There
>     is no
>     reason to use a custom flash driver nowadays unless your flash is
>     interfaced to the processor bus in a very unusual way (like data bus
>     scrambled -- hardware design bugs)
>
>     > define this macro, the compilation is ok and my flash works. My
>     question
>     > is, if we define this macro, which flash driver being used?
>     cfi_flash.c
>     > or my strataflash.c?
>
>     Use cfi_flash.c
>
>     Tolunay
>
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>------------------------------------------------------------------------
>
>_______________________________________________
>U-Boot-Users mailing list
>U-Boot-Users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/u-boot-users
>  
>






More information about the U-Boot mailing list