Skip to contentSkip to conversation

LAN Timeout

U-Boot Manuel Sahm 4 participants 6 messages Aug 26, 2008 – Sep 10, 2008

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hello,

isn?t anybody out there who could help me ?

Thank you

Quoted 1 line
Quoted 1 line
Quoted 1 line

"Manuel Sahm" <[email protected]> 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

#3 lore raw
In reply to Manuel Sahm

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

Quoted 1 line
Quoted 1 line
Quoted 1 line

"Manuel Sahm" <[email protected]> 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

#4 lore raw

Hello,

Quoted 3 lines · Manuel Sahm

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

Signature · 3 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
#5 lore raw
Quoted 6 lines · Anatolij Gustschin

Hello,

Quoted 2 lines · Manuel Sahm

does anybody have an idea to fix this problem ?

Quoted 8 lines
Quoted 1 line

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

#2 lore raw
In reply to 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

Quoted 34 lines · Manuel Sahm

Hello,

isn??t anybody out there who could help me ?

Thank you

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"Manuel Sahm" <[email protected]> 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

Quoted 7 lines

------------------------------------------------------------------------

_______________________________________________
U-Boot mailing list
U-Boot at 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