This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: enabling flash from configtool


I've worked it out. I didn't realise (until I started looking through
the "Embedded software development with eCos" book) that I need to
import the redboot_ROM.ecm file as a separate step when using
configtool. 
Thanks for your responses anyway. I hope this info proves useful to
someone else in the future.

m@

-----Original Message-----
From: Gary Thomas [mailto:gary@mlbassoc.com] 
Sent: 25 August 2005 17:06
To: Matt Sartori
Cc: eCos Discussion
Subject: RE: [ECOS] enabling flash from configtool

On Thu, 2005-08-25 at 17:02 +0100, Matt Sartori wrote:
> Yes my redboot_ROM.ecm contains a 
> 	CYGPKG_IO_FLASH current ;
> Inside its cdl_configuration definition.

You should be able to look in the .ecc file to see why your FLASH driver
is not being enabled.

> 
> -----Original Message-----
> From: ecos-discuss-owner@ecos.sourceware.org
> [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Gary
Thomas
> Sent: 25 August 2005 16:52
> To: Matt Sartori
> Cc: eCos Discussion
> Subject: Re: [ECOS] enabling flash from configtool
> 
> On Thu, 2005-08-25 at 16:45 +0100, Matt Sartori wrote:
> > Argh. I'm attempting to enable my flash driver code from the
> configtool
> > by:
> > 
> > 1) writing a flash.c and flash.h and putting them in my
> > /ecos/packages/devs/flash/arm/myboard/current/src/
> > 
> > 2)writing a flash_myboard.cdl and putting it in
> > /ecos/packages/devs/flash/arm/myboard/current/cdl
> > 
> > 3) adding a package -hardware CYGPKG_HAL_ARM_MYBOARD current ;
> > to my redboot_ROM.ecm
> > 
> > 4) adding a package CYGPKG_DEVS_FLASH_ARM_MYBOARD in ecos.db
> > 
> > 5) adding CYGPKG_DEVS_FLASH_ARM_MYBOARD to the packages defined for
> the
> > target of my board in ecos.db
> > 
> > 6) opening the configtool, selecting the template for my board and
> > redboot from the packages popup menu.
> > 
> > What I get is a grayed out MYBOARD FLASH memory support entry in my
> > configuration but I don't believe it is actually compiled (I tested
> this
> > by placing an obvious syntax error in my flash.c code so that the
> > compilation would fail). The compilation doesn't fail.
> > 
> > What am I missing?
> 
> Did you add the generic FLASH layer?  FLASH drivers come in at least
> two parts - the generic layer and a hardware specific driver.  Also
> many hardware drivers are built of two parts - the generic driver for
> a chipset and the platform specific driver.  You'll need to make sure
> that all the pieces have been loaded and enabled.
> 
> Normally, if you configured your target correctly (in ecos.db), just
> adding the CYGPKG_IO_FLASH will be sufficient to enable everything.
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
> 
> 
-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


--------------------------------------------------------------------------------


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.

If you received this in error, please contact the sender or postmaster (postmaster@hanoverdisplays.com) and delete the material from any computer.

Although we routinely screen for viruses, addressees should check this e-mail and any attachment for viruses. We make no warranty as to absence of viruses in this e-mail or any attachments.

Our Company's email policy is to permit incidental personal use. If this email is of a personal nature, it must not be relied upon as expressing the views or opinions of the company.

Visit out website at www.hanoverdisplays.com



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]