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


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
------------------------------------------------------------


-- 
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]