[ECOS] ip address

Gary Thomas gary@mlbassoc.com
Mon Apr 11 07:57:00 GMT 2005

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

More information about the Ecos-discuss mailing list