public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] CFI flash driver
@ 2005-11-16 13:08 Joao Mouro
  2005-11-16 14:25 ` Wolfgang Denk
  2005-11-18  1:38 ` Kimmo Jukarainen
  0 siblings, 2 replies; 5+ messages in thread
From: Joao Mouro @ 2005-11-16 13:08 UTC (permalink / raw)
  To: u-boot

Hi all!
 
I'm currently working in a new board which supports up to two flash banks.
We are using CFI compliant flashes (S29GLXXXN) and I would like to know
if it is really necessary to have a board specific driver, or if the cfi_flash.c driver  
is enough.
 
Looking at to majority of the boards supported by U-Boot until now, most of them
use specific drivers instead of using the cfi_flash (even when the flash is CFI compliant).
Is there any particular reason?!
 
Thanks in advance and best regards,
Jo?o Mouro
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20051116/34cc5f9a/attachment.htm 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] CFI flash driver
  2005-11-16 13:08 [U-Boot-Users] CFI flash driver Joao Mouro
@ 2005-11-16 14:25 ` Wolfgang Denk
  2005-11-18  1:38 ` Kimmo Jukarainen
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2005-11-16 14:25 UTC (permalink / raw)
  To: u-boot

In message <852246F66844CC41A5FE1EF659F98F9003164E94@lisi053a.siemens.pt> you wrote:
> 
> Looking at to majority of the boards supported by U-Boot until now, most of them
> use specific drivers instead of using the cfi_flash (even when the flash is CFI compliant).
> Is there any particular reason?!

In most cases it's an issue of copy & paste from existing boards, and
in some cases it's because of code size.

> ------_=_NextPart_001_01C5EAAE.D985BADA
> Content-Type: text/html;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>

Please *stop* posting HTML to this list!

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
They weren't that important. They were merely at the top. The  people
who  really  run organizations are usually found several levels down,
where it's still possible to get things done.
                                      - Terry Pratchett, _Small Gods_

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] CFI flash driver
  2005-11-16 13:08 [U-Boot-Users] CFI flash driver Joao Mouro
  2005-11-16 14:25 ` Wolfgang Denk
@ 2005-11-18  1:38 ` Kimmo Jukarainen
  1 sibling, 0 replies; 5+ messages in thread
From: Kimmo Jukarainen @ 2005-11-18  1:38 UTC (permalink / raw)
  To: u-boot

On Wed, Nov 16, 2005 at 01:08:34PM -0000, Joao Mouro (Ext_NBS) wrote:
> We are using CFI compliant flashes (S29GLXXXN) and I would like to know
> if it is really necessary to have a board specific driver, or if the cfi_flash.c driver  
> is enough.

I recently ported U-Boot to a custom board utilizing Spansion S29GLxxxM
chip. I used drivers/cfi_flash.c, but at least on this particular board
it needed an additional patch. I haven't yet verified if this patch is
really needed or if it's just an configuration issue.

I used a patch by Alex Bastos, that is available on u-boot-users list
archives, look for this message [1]:

> From: Alex BASTOS
> Subject: [U-Boot-Users] [PATCH] drivers/cfi_flash.c support for 8 BIT mode Spansion CFI Flashes
> Date: Thu, 21 Apr 2005 13:18:53 +0200
> Message-ID: <1114082333.42678c1d22672@webmail.televes.com:443>

[1] http://sourceforge.net/mailarchive/message.php?msg_id=11540959

-kimju

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] CFI_FLASH_DRIVER
@ 2006-03-31  7:55 Hurricane555
  2006-03-31  9:35 ` Hurricane555
  0 siblings, 1 reply; 5+ messages in thread
From: Hurricane555 @ 2006-03-31  7:55 UTC (permalink / raw)
  To: u-boot

My first question:
What is the difference between PHYS_FLASH_SIZE and CFG_FLASH_SIZE?

second question:
what I have to do to you use CFI_FLASH_DRIVER?
I want to initialize AM29LV160DB
--
View this message in context: http://www.nabble.com/CFI_FLASH_DRIVER-t1373175.html#a3685144
Sent from the Uboot - Users forum at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] CFI_FLASH_DRIVER
  2006-03-31  7:55 [U-Boot-Users] CFI_FLASH_DRIVER Hurricane555
@ 2006-03-31  9:35 ` Hurricane555
  0 siblings, 0 replies; 5+ messages in thread
From: Hurricane555 @ 2006-03-31  9:35 UTC (permalink / raw)
  To: u-boot

No I?m confused! I made the setting in the same like her:
http://www.nabble.com/Help%3A-flash-driver-for-CFI-complient-flash-t893564.html#a2318022

but when I set CFG_ENV_IS_IN_FLASH my compiler says:

env_flash.c: In function `env_relocate_spec':
env_flash.c:403: error: `flash_addr' undeclared (first use in this function)
env_flash.c:403: error: (Each undeclared identifier is reported only once
env_flash.c:403: error: for each function it appears in.)
make[1]: *** [env_flash.o] Error 1
make[1]: Leaving directory `/cygdrive/c/workspace/U-BOOT_1.1.4/common'
make: *** [common/libcommon.a] Error 2

What I did wrong?
--
View this message in context: http://www.nabble.com/CFI_FLASH_DRIVER-t1373175.html#a3686442
Sent from the Uboot - Users forum at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-31  9:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-16 13:08 [U-Boot-Users] CFI flash driver Joao Mouro
2005-11-16 14:25 ` Wolfgang Denk
2005-11-18  1:38 ` Kimmo Jukarainen
  -- strict thread matches above, loose matches on Subject: below --
2006-03-31  7:55 [U-Boot-Users] CFI_FLASH_DRIVER Hurricane555
2006-03-31  9:35 ` Hurricane555

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox