Skip to contentSkip to conversation

phylib does not wait for link

DISCUSSION Sascha Hauer 2 participants 2 messages Oct 24, 2012

lore
Share & tools
lore
#0 lore raw

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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 11 lines · Sascha Hauer

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

Quoted 1 line

- phylib

no

Quoted 1 line

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

no too many

Quoted 10 lines

Anyway, this deserves fixing before the next release.

Sascha

Signature · 4 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox