[U-Boot-Users] Re: ethernet problems on the 5282 - Retry count exceeded

Zachary Landau kapheine at gmail.com
Thu Apr 7 22:17:12 CEST 2005


On Apr 6, 2005 4:10 PM, NZG <ngustavson at emacinc.com> wrote:
> I'm working with a 5282 based board and am having ethernet problems.
> I know the ethernet hardware is sound because it works in uClinux.
> The fec appears to be working somewhat in u-boot, (I'm using Zach's modified
> fec code).
> But still appears to be timing out.
> I have the debugging code on and I'm trying to pick up a dhcp, I'm getting:
[...]
> So it appears to be communicating, just not quite right.
> Zach, you originally mentioned that the timers might not be getting
> initialized correctly. Where are the timers initialized in the code? Do you
> have a patch for this?
>

The timer code is in lib_m68k/time.c.  The archive I sent you has my
modifications.  As a very simple test, try running "sleep 5" from the
command prompt and see if it returns instantly or if it sleeps.

If that works, check the delay between retries.  If it appears to
retry over and over without any sort of human perceptible delay, there
is probably a problem.  Add some debugging statements in the
networking code.  (Hint: check out the NetSetTimeout and related
code).
 
> I'm on a 100 base-T network, is that a problem? Has this code been tested at
> 100?

I'm using it at 100 base-T.  In fact, the 5282 has some errata for
10mbit that may cause problems at that speed.



-- 
Zachary P. Landau <kapheine at gmail.com>




More information about the U-Boot mailing list