This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Help with package addition
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: James Hart <turquoise at hotpop dot com>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 11 Sep 2002 06:42:16 -0600
- Subject: Re: [ECOS] Help with package addition
- References: <200209121756.04372.turquoise@hotpop.com>
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