[ECOS] ip address

Diego Duyvejonck diego.duyvejonck@skynet.be
Mon Apr 11 18:44:00 GMT 2005


Yes, and this is working splendidly.  But I was just wondering how to
determine my network initialisation at start up.  Do I need to change
the network_support.c (in the ecc file, one can choose dhcp xor fixed
address) or is there any other way to do this ( I would prefer not to
change my eCos tree ;-) ?
Thanks,
Diego 

-----Oorspronkelijk bericht-----
Van: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] Namens Gary Thomas
Verzonden: maandag 11 april 2005 9:58
Aan: Diego Duyvejonck
CC: eCos Discussion
Onderwerp: Re: [ECOS] ip address

On Sat, 2005-04-09 at 19:05 +0200, Diego Duyvejonck wrote: 
> Hi,
> During network initialisation, eCos will get its ip address from a
dhcp
> server or just have a predefined fixed ip address depending on the
> kernel configuration.
> However, I would prefer to use the bootp flag status from the redboot
> config block to decide how to get the ip address.  
> Is there any trivial way to change the way to obtain the ip address at
> startup (on the fly) ?  
> Using the dhcp client + fall back to a fixed address is not really an
> option, since this can only be done after some timeout.
> When the system is installed in a fixed and well defined environment
> with no dhcp server on the network, this timeout is wasted time.
> Any idea ?

Your application could read the 'fconfig' values from RedBoot and
then behave the way that it does.  It's straight forward to access
these data using the CYGNUM_CALL_IF_FLASH_CFG_GET function.

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



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



More information about the Ecos-discuss mailing list