public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] How to add a new item in redboot config ?
@ 2006-08-03 14:39 thierry
  2006-08-03 14:44 ` Gary Thomas
  2006-08-03 14:46 ` Mark Salter
  0 siblings, 2 replies; 3+ messages in thread
From: thierry @ 2006-08-03 14:39 UTC (permalink / raw)
  To: ecos-discuss

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.

Thanks,

Thierry L.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] How to add a new item in redboot config ?
  2006-08-03 14:39 [ECOS] How to add a new item in redboot config ? thierry
@ 2006-08-03 14:44 ` Gary Thomas
  2006-08-03 14:46 ` Mark Salter
  1 sibling, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2006-08-03 14:44 UTC (permalink / raw)
  To: thierry; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] How to add a new item in redboot config ?
  2006-08-03 14:39 [ECOS] How to add a new item in redboot config ? thierry
  2006-08-03 14:44 ` Gary Thomas
@ 2006-08-03 14:46 ` Mark Salter
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Salter @ 2006-08-03 14:46 UTC (permalink / raw)
  To: thierry; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-03 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-03 14:39 [ECOS] How to add a new item in redboot config ? thierry
2006-08-03 14:44 ` Gary Thomas
2006-08-03 14:46 ` Mark Salter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).