mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* phylib does not wait for link
@ 2012-10-24  7:46 Sascha Hauer
  2012-10-24  8:06 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2012-10-24  7:46 UTC (permalink / raw)
  To: barebox

The current phylib behaviour is unusable for unattended network boot, we
need to do something about it.

We currently have no instance that would wait until a link comes up.
This may work for the default-3-seconds-boot-timeout which is enough for
most phys, but fails with smaller timeouts.

There are several places in which we could wait for a link to come up, I
have no idea which one is the best:

- eth_send
- phylib
- in the protocols (dhcp, ping, ...)

Anyway, this deserves fixing before the next release.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: phylib does not wait for link
  2012-10-24  7:46 phylib does not wait for link Sascha Hauer
@ 2012-10-24  8:06 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-10-24  8:06 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On 09:46 Wed 24 Oct     , Sascha Hauer wrote:
> The current phylib behaviour is unusable for unattended network boot, we
> need to do something about it.
> 
> We currently have no instance that would wait until a link comes up.
> This may work for the default-3-seconds-boot-timeout which is enough for
> most phys, but fails with smaller timeouts.
> 
> There are several places in which we could wait for a link to come up, I
> have no idea which one is the best:
> 
> - eth_send
yes with timeout
> - phylib
no
> - in the protocols (dhcp, ping, ...)
no too many
> 
> Anyway, this deserves fixing before the next release.
> 
> Sascha
> 
> -- 
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-10-24  8:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-24  7:46 phylib does not wait for link Sascha Hauer
2012-10-24  8:06 ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox