From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joao Mouro (Ext_NBS) Date: Wed, 16 Nov 2005 13:08:34 -0000 Subject: [U-Boot-Users] CFI flash driver Message-ID: <852246F66844CC41A5FE1EF659F98F9003164E94@lisi053a.siemens.pt> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 16 Nov 2005 15:25:45 +0100 Subject: [U-Boot-Users] CFI flash driver In-Reply-To: Your message of "Wed, 16 Nov 2005 13:08:34 GMT." <852246F66844CC41A5FE1EF659F98F9003164E94@lisi053a.siemens.pt> Message-ID: <20051116142545.D2DE7352BD1@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > > 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_ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kimmo Jukarainen Date: Fri, 18 Nov 2005 03:38:59 +0200 Subject: [U-Boot-Users] CFI flash driver In-Reply-To: <852246F66844CC41A5FE1EF659F98F9003164E94@lisi053a.siemens.pt> References: <852246F66844CC41A5FE1EF659F98F9003164E94@lisi053a.siemens.pt> Message-ID: <20051118013859.GH30112@inside.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hurricane555 Date: Thu, 30 Mar 2006 23:55:12 -0800 (PST) Subject: [U-Boot-Users] CFI_FLASH_DRIVER Message-ID: <3685144.post@talk.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hurricane555 Date: Fri, 31 Mar 2006 01:35:04 -0800 (PST) Subject: [U-Boot-Users] CFI_FLASH_DRIVER In-Reply-To: <3685144.post@talk.nabble.com> References: <3685144.post@talk.nabble.com> Message-ID: <3686442.post@talk.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.