public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] LAN Timeout
@ 2008-08-26  8:44 Manuel Sahm
  2008-09-01  6:07 ` Manuel Sahm
  2008-09-10  6:43 ` Manuel Sahm
  0 siblings, 2 replies; 6+ messages in thread
From: Manuel Sahm @ 2008-08-26  8:44 UTC (permalink / raw)
  To: u-boot

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
 
 

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

* [U-Boot] LAN Timeout
  2008-08-26  8:44 [U-Boot] LAN Timeout Manuel Sahm
@ 2008-09-01  6:07 ` Manuel Sahm
  2008-09-10 11:52   ` Andre Schwarz
  2008-09-10  6:43 ` Manuel Sahm
  1 sibling, 1 reply; 6+ messages in thread
From: Manuel Sahm @ 2008-09-01  6:07 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot] LAN Timeout
  2008-08-26  8:44 [U-Boot] LAN Timeout Manuel Sahm
  2008-09-01  6:07 ` Manuel Sahm
@ 2008-09-10  6:43 ` Manuel Sahm
  2008-09-10  8:58   ` Anatolij Gustschin
  1 sibling, 1 reply; 6+ messages in thread
From: Manuel Sahm @ 2008-09-10  6:43 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot] LAN Timeout
  2008-09-10  6:43 ` Manuel Sahm
@ 2008-09-10  8:58   ` Anatolij Gustschin
  2008-09-10 11:36     ` JerryVanBaren
  0 siblings, 1 reply; 6+ messages in thread
From: Anatolij Gustschin @ 2008-09-10  8:58 UTC (permalink / raw)
  To: u-boot

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

-- 
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

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

* [U-Boot] LAN Timeout
  2008-09-10  8:58   ` Anatolij Gustschin
@ 2008-09-10 11:36     ` JerryVanBaren
  0 siblings, 0 replies; 6+ messages in thread
From: JerryVanBaren @ 2008-09-10 11:36 UTC (permalink / raw)
  To: u-boot

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

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

* [U-Boot] LAN Timeout
  2008-09-01  6:07 ` Manuel Sahm
@ 2008-09-10 11:52   ` Andre Schwarz
  0 siblings, 0 replies; 6+ messages in thread
From: Andre Schwarz @ 2008-09-10 11:52 UTC (permalink / raw)
  To: u-boot

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 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

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

end of thread, other threads:[~2008-09-10 11:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-26  8:44 [U-Boot] LAN Timeout Manuel Sahm
2008-09-01  6:07 ` Manuel Sahm
2008-09-10 11:52   ` Andre Schwarz
2008-09-10  6:43 ` Manuel Sahm
2008-09-10  8:58   ` Anatolij Gustschin
2008-09-10 11:36     ` JerryVanBaren

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