This is the mail archive of the ecos-patches@sources.redhat.com 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: New FLASH configuration option for network support


On Tue, 2004-01-06 at 14:16, Uwe Kindler wrote:
> Hello,
> 
> when a RedBoot configuration supports network connection, it sends some
> packet at startup to ensure that IP address is not in use. When the board is
> not connected to a network, this procdure needs a quite long time - for the
> EDOSK-2674 board this means that a startup with network support but without
> a network connection last several seconds. This is quite annoying especialy
> when debugging a application where the board needs to be reset quite often.
> Because  network support is not needed if the board is currently not
> connected to a network I would like to suggest the following patch which
> enables flash configuration of network support - the patch is tested for
> EDOSK-2674 board and works well.

This doesn't look very good to me - the delay for checking for an
existing IP address should be at most 4 seconds and if this is too
much for you, then perhaps that should be configurable.

Alternatively, you could make the network initialization fail if not
connected.  Look at the PowerPC/FCC driver for an example (it tests
for the presence of the link or else it fails)

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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