* [U-Boot-Users] flash driver in u-boot
@ 2006-10-16 22:53 Reeve Yang
2006-10-16 23:40 ` Ben Warren
2006-10-16 23:42 ` Tolunay Orkun
0 siblings, 2 replies; 6+ messages in thread
From: Reeve Yang @ 2006-10-16 22:53 UTC (permalink / raw)
To: u-boot
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
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 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?
I'll appreciate if someone can shed some lights.
- Reeve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20061016/51d36d34/attachment.htm
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] flash driver in u-boot
2006-10-16 22:53 [U-Boot-Users] flash driver in u-boot Reeve Yang
@ 2006-10-16 23:40 ` Ben Warren
2006-10-16 23:42 ` Tolunay Orkun
1 sibling, 0 replies; 6+ messages in thread
From: Ben Warren @ 2006-10-16 23:40 UTC (permalink / raw)
To: u-boot
On Mon, 2006-10-16 at 22:53 +0000, 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 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 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?
A little Googling will nix your assumption. You should be able to use
CFI.
regards,
Ben
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] flash driver in u-boot
2006-10-16 22:53 [U-Boot-Users] flash driver in u-boot Reeve Yang
2006-10-16 23:40 ` Ben Warren
@ 2006-10-16 23:42 ` Tolunay Orkun
2006-10-16 23:51 ` Reeve Yang
1 sibling, 1 reply; 6+ messages in thread
From: Tolunay Orkun @ 2006-10-16 23:42 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] flash driver in u-boot
2006-10-16 23:42 ` Tolunay Orkun
@ 2006-10-16 23:51 ` Reeve Yang
2006-10-17 8:10 ` Tolunay Orkun
2006-10-17 19:41 ` Michael Trimarchi
0 siblings, 2 replies; 6+ messages in thread
From: Reeve Yang @ 2006-10-16 23:51 UTC (permalink / raw)
To: u-boot
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@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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20061016/cff46754/attachment.htm
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] flash driver in u-boot
2006-10-16 23:51 ` Reeve Yang
@ 2006-10-17 8:10 ` Tolunay Orkun
2006-10-17 19:41 ` Michael Trimarchi
1 sibling, 0 replies; 6+ messages in thread
From: Tolunay Orkun @ 2006-10-17 8:10 UTC (permalink / raw)
To: u-boot
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?
Define success! Did you actually verify that strataflash.c worked
correctly. It might be silently ignoring the issues and giving you false
impression that it was successful. Did you actually check the flash
contents after write? Since you are asking about if md could be used
for reading the flash it tells me you do not know if strataflash was
actually successful.
I have got no idea what code base you are using (top of git tree or some
older version). What CPU architecture you have? How it is interfaced to
your CPU? If flash mapped to the address space correctly. Is that memory
space enabled for write access? Is the timing setup correctly (wait
states, holds etc?). Which one of many strataflash.c you have used (some
with different tweaks)?
Many things can go wrong that could prevent normal operation. If you had
posted actual screen capture from CFI driver and the strataflash.c and
perhaps someone could provide more hints. Ultimately, the code is there.
You will need to do some code reading and debugging to find out why
cfi_flash gives always busy. Or hire someone to do this for you.
All I can say is that cfi_flash.c works with this chip. Cogent csb272
uses 2 of these chips side by side using cfi_flash.c.
Tolunay
>
> On 10/16/06, *Tolunay Orkun* <listmember@orkun.us
> <mailto:listmember@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
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] flash driver in u-boot
2006-10-16 23:51 ` Reeve Yang
2006-10-17 8:10 ` Tolunay Orkun
@ 2006-10-17 19:41 ` Michael Trimarchi
1 sibling, 0 replies; 6+ messages in thread
From: Michael Trimarchi @ 2006-10-17 19:41 UTC (permalink / raw)
To: u-boot
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@orkun.us
> <mailto:listmember@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
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-10-17 19:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-16 22:53 [U-Boot-Users] flash driver in u-boot Reeve Yang
2006-10-16 23:40 ` Ben Warren
2006-10-16 23:42 ` Tolunay Orkun
2006-10-16 23:51 ` Reeve Yang
2006-10-17 8:10 ` Tolunay Orkun
2006-10-17 19:41 ` Michael Trimarchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox