This is the mail archive of the ecos-discuss@sources.redhat.com 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: Help with package addition


On Thu, 2002-09-12 at 06:26, James Hart wrote:
> Greetings.
> 
> I am attempting to write a network driver for eCos v1.3.1.
> I wish to know what is the procedure for adding the driver as a package in to 
> my ecos tree.

Please try to work from the latest (CVS) version of eCos.  eCos 1.3.1
is now 3+ years old!!

> 
> This is what I have gathered so far (I'm not getting into details):
> 
> 1. The ecos.ecc file has to contain a new cdl_package.

You should be using 'ecosconfig' to add this, not doing it manually.

> 2. The relevant cdl file in the appropriate location must be populated with 
> driver specific component details.
> 3. The ecos.db must be updated with the cdl_package details.
> 
> I have no problems with the first two steps.
> ecosconfig reports no conflicts and all is well.
> I am allowed to add my package comfortably and select all options my package 
> offers as per the design of the package.
> 
> However, if I wish to create a tree using 
> `ecosconfig --config="$ECOS_REPOSITORY/config/ecos.ecc" tree'
> I get the following error:
> couldn't read file (ecos.db) no such file or directory 
> Invalid package database.
> 
> What am I missing ?

Make sure that $ECOS_REPOSITORY points to the directory containing
'ecos.db'

Also, I think a much better approach to what you're trying to do is
to use ".ecm" files.  These can be generated from 'ecosconfig' and
contains the specific details of a configuration, distilled from the
'ecos.ecc' file.  Here's how we do it:

  ... in the directory which contains 'ecos.ecc':
  % ecosconfig export CONFIG.ecm

  ... now in some other directory, to recreate that image:
  % ecosconfig new <platform> <template>  // Start from the same point
  % ecosconfig import CONFIG.ecm
  % ecosconfig tree

Does this help?

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


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


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