* Possible bug with CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE
@ 2006-11-27 10:19 David Fernandez
2006-11-27 12:15 ` Gary Thomas
0 siblings, 1 reply; 2+ messages in thread
From: David Fernandez @ 2006-11-27 10:19 UTC (permalink / raw)
To: ecos-devel
Hi there,
I'was about to use the feature CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE,
and I've noticed that may be it doesn't work as per the description in
the cdl option:
It says that it should stop initializing network devices as soon as one
is initialized successfully. But it seems that the initialization logic
for a default interface has someway confused the things.
It tries to initialize the default interface, but if it fails, then it
seems to initialize all of them... I think there should be a break
statement within the "if (t->init())" block (net_io.c: net_init()) if
this options is active and enabled.
May be the we can get rid of CYGSEM_REDBOOT_FLASH_CONFIG condition in
CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE (doing the appropriate changes in
net_io.c: net_init()), so we could provide a default interface if there
is no flash configured.
Anybody thinks a patch to change all this is interesting?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Possible bug with CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE
2006-11-27 10:19 Possible bug with CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE David Fernandez
@ 2006-11-27 12:15 ` Gary Thomas
0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2006-11-27 12:15 UTC (permalink / raw)
To: dfernandez; +Cc: ecos-devel
David Fernandez wrote:
> Hi there,
>
> I'was about to use the feature CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE,
> and I've noticed that may be it doesn't work as per the description in
> the cdl option:
>
> It says that it should stop initializing network devices as soon as one
> is initialized successfully. But it seems that the initialization logic
> for a default interface has someway confused the things.
>
> It tries to initialize the default interface, but if it fails, then it
> seems to initialize all of them... I think there should be a break
> statement within the "if (t->init())" block (net_io.c: net_init()) if
> this options is active and enabled.
>
> May be the we can get rid of CYGSEM_REDBOOT_FLASH_CONFIG condition in
> CYGDAT_REDBOOT_DEFAULT_NETWORK_DEVICE (doing the appropriate changes in
> net_io.c: net_init()), so we could provide a default interface if there
> is no flash configured.
>
> Anybody thinks a patch to change all this is interesting?
Propose one and explain why it's useful. Then we can discuss it.
Patches (and the discussion surrounding them) should be sent to:
ecos-patches@ecos.sourceware.org
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-27 12:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-27 10:19 Possible bug with CYGSEM_REDBOOT_NETWORK_INIT_ONE_DEVICE David Fernandez
2006-11-27 12:15 ` Gary Thomas
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).