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 ?


On Thu, 2006-08-03 at 16:39 +0200, 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.

A good place to start would be to look at how the existing ones were
created. Look in if_npe.c for:

RedBoot_config_option("Network hardware address [MAC] for NPE eth0",
                      npe_eth0_esa,
                      ALWAYS_ENABLED, true,
                      CONFIG_ESA, npe_eth0_priv_data.mac_address
    );

--Mark



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