public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] ixdp425 w/ Spansion Flash
@ 2007-07-31 19:09 Semeraro, Greg
  2007-08-01 12:40 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Semeraro, Greg @ 2007-07-31 19:09 UTC (permalink / raw)
  To: ecos-discuss

I'm trying to build RedBoot v2.04 for the ixdp425 development board but
with a Spansion (AMD) Flash - we have a board with the same design but
with a 29SGL512N flash instead of the Intel Strata flash.  All I need to
do (I think) is add the flash_amd_am29xxxxx (or flash_amd_am29xxxxx_v2)
package and remove the flash_ixdp425 and strata packages.  I have tried
in vain to do this.  If I add the flash_amd_am29xxxxx package I get
unresolved references (to flash_lock, flash_unlock, etc) - this makes
sense to me because there is not src directory in that dev subtree for
the package.  If I use flash_amd_am29xxxxx_v2 I get many, many
compilation errors as if it is not including a header or there are
#defines that are not defined.  I have never used RedBoot before and the
entire build / configuration process has been stumped.  I can build the
default RedBoot from the Intel website.  I thought I was doing the right
thing by removing the packages I don't need and adding the package that
I do need but apparently there is more to it than that.  Any assistance
would be greatly appreciated.

 

Greg

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] ixdp425 w/ Spansion Flash
  2007-07-31 19:09 [ECOS] ixdp425 w/ Spansion Flash Semeraro, Greg
@ 2007-08-01 12:40 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2007-08-01 12:40 UTC (permalink / raw)
  To: Semeraro, Greg; +Cc: eCos Disuss

On Tue, Jul 31, 2007 at 03:08:43PM -0400, Semeraro, Greg wrote:
> I'm trying to build RedBoot v2.04 for the ixdp425 development board but
> with a Spansion (AMD) Flash - we have a board with the same design but
> with a 29SGL512N flash instead of the Intel Strata flash.  All I need to
> do (I think) is add the flash_amd_am29xxxxx (or flash_amd_am29xxxxx_v2)
> package and remove the flash_ixdp425 and strata packages.  I have tried
> in vain to do this.  If I add the flash_amd_am29xxxxx package I get
> unresolved references (to flash_lock, flash_unlock, etc) - this makes
> sense to me because there is not src directory in that dev subtree for
> the package.  If I use flash_amd_am29xxxxx_v2 I get many, many
> compilation errors as if it is not including a header or there are
> #defines that are not defined.  I have never used RedBoot before and the
> entire build / configuration process has been stumped.  I can build the
> default RedBoot from the Intel website.  I thought I was doing the right
> thing by removing the packages I don't need and adding the package that
> I do need but apparently there is more to it than that.  Any assistance
> would be greatly appreciated.

This is using the Intel fork?

You actually need a little more than removing the Strata driver and
adding the AMD driver. Each flash driver is made up of two
parts. There is the generic part and a hardware specific part. The
hardware specific part tells the generic part where the flash is in
memory, many devices there are, how wide the memory bus is etc. 

So you need to write a package which contains the hardware specific
parts for the AMD flash. For an example, take a look at
packages/devs/flash/arm/phycore/current in the official eCos
repository.

The missing flash_lock and flash_unlock problem should also go away
when you have the system correctly configured. 

     Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

end of thread, other threads:[~2007-08-01 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-31 19:09 [ECOS] ixdp425 w/ Spansion Flash Semeraro, Greg
2007-08-01 12:40 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).