
Hello,
I have a problem concnering the LAN Connection Timeout.
I uses a Teridian Phy connected via MII Interface to an AT91SAM9260. All works fine. If I boot my system uboot comes up and detects the connection very quickly, so that my system boots fast. But if I have no lan cable plugged in when I boot my system, it takes some seconds to detect that no lan cable is plugged in and a timeout occurs.
How could I speed up my booting sequence if there is no lan cable plugged in ?
Thank you very much
Best regards
Manuel Sahm

Hello,
isn´t anybody out there who could help me ?
Thank you
"Manuel Sahm" Manuel.Sahm@feig.de 26.08.2008 10:44 >>>
Hello,
I have a problem concnering the LAN Connection Timeout.
I uses a Teridian Phy connected via MII Interface to an AT91SAM9260. All works fine. If I boot my system uboot comes up and detects the connection very quickly, so that my system boots fast. But if I have no lan cable plugged in when I boot my system, it takes some seconds to detect that no lan cable is plugged in and a timeout occurs.
How could I speed up my booting sequence if there is no lan cable plugged in ?
Thank you very much
Best regards
Manuel Sahm

Manuel,
we do this with conditional boot depending on environment settings, e.g. "netboot" yes or no.
If netboot==no then omit bootp/dhcp completely and proceed to boot from flash. Otherwise try netboot and stick to the timeout. Autoneg can indeed take some time ...
This can easily be done with a bootscript, i.e. bootcmd=autoscr valid_addr.
regards, Andre
Manuel Sahm schrieb:
Hello,
isn´t anybody out there who could help me ?
Thank you
"Manuel Sahm" Manuel.Sahm@feig.de 26.08.2008 10:44 >>>
Hello,
I have a problem concnering the LAN Connection Timeout.
I uses a Teridian Phy connected via MII Interface to an AT91SAM9260. All works fine. If I boot my system uboot comes up and detects the connection very quickly, so that my system boots fast. But if I have no lan cable plugged in when I boot my system, it takes some seconds to detect that no lan cable is plugged in and a timeout occurs.
How could I speed up my booting sequence if there is no lan cable plugged in ?
Thank you very much
Best regards
Manuel Sahm
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
MATRIX VISION GmbH, Talstra�e 16, DE-71570 Oppenweiler - Registergericht: Amtsgericht Stuttgart, HRB 271090 Gesch�ftsf�hrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner

Hello,
does anybody have an idea to fix this problem ?
Which paramter is for the "lan connection timeout" ?
Please, please help me Thanks a lot
Manuel Sahm
"Manuel Sahm" Manuel.Sahm@feig.de 26.08.2008 10:44 >>>
Hello,
I have a problem concnering the LAN Connection Timeout.
I uses a Teridian Phy connected via MII Interface to an AT91SAM9260. All works fine. If I boot my system uboot comes up and detects the connection very quickly, so that my system boots fast. But if I have no lan cable plugged in when I boot my system, it takes some seconds to detect that no lan cable is plugged in and a timeout occurs.
How could I speed up my booting sequence if there is no lan cable plugged in ?
Thank you very much
Best regards
Manuel Sahm

Hello,
Manuel Sahm wrote:
does anybody have an idea to fix this problem ?
Which paramter is for the "lan connection timeout" ?
Try to decrease CFG_MACB_AUTONEG_TIMEOUT in drivers/net/macb.c to 500000 or so. It is currently 5000000 which results in 5 sec. timeout in macb_phy_init() and also in macb_phy_reset().
Best regards, Anatolij

Anatolij Gustschin wrote:
Hello,
Manuel Sahm wrote:
does anybody have an idea to fix this problem ?
Which paramter is for the "lan connection timeout" ?
Try to decrease CFG_MACB_AUTONEG_TIMEOUT in drivers/net/macb.c to 500000 or so. It is currently 5000000 which results in 5 sec. timeout in macb_phy_init() and also in macb_phy_reset().
Best regards, Anatolij
Caution: don't reduce it to less than 2 seconds. The minimum PHY autonegotiation time is 2 seconds per definition by the standard: if you read the standard and add all the delays together, the sum is 2 seconds.
I've never seen a PHY take noticeably longer than 2 seconds for autonegotiation, but there is a world of PHYs out there that I've never tried.
Best regards, gvb
participants (4)
-
Anatolij Gustschin
-
Andre Schwarz
-
JerryVanBaren
-
Manuel Sahm