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: How to add a new item in redboot config ?


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


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