This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to add a new item in redboot config ?
- From: Gary Thomas <gary at mlbassoc dot com>
- To: thierry <thierry dot langlais at efixo dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 03 Aug 2006 08:44:26 -0600
- Subject: Re: [ECOS] How to add a new item in redboot config ?
- References: <44D20A85.2010807@efixo.com>
thierry wrote:
Hi Ecos People,
Could someone give me the tip about how to add a new item in this list:
RedBoot> fconfig -l
Run script at boot: true
...
Default network device: npe_eth0
Network hardware address [MAC] for NPE eth0: 0x00:0x03:0x47:0xDF:0x32:0xA8
Network hardware address [MAC] for NPE eth1: 0x00:0x03:0x47:0xDF:0x32:0xAA
RedBoot>
More precisely, i would like to add two new Network hardware address items.
This is done using the 'RedBoot_config_option()' macro.
Look at how the NPE driver does it for the ones you have to see how it is done.
Note: 'fconfig' works a little "strange" in that it only shows you what entries
are in the actual FLASH configuration. If you add a new item, then you'll need
to rerun 'fconfig -i' to get it into the FLASH database.
--
------------------------------------------------------------
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