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

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:
u-boot-> dhcp BOOTP broadcast 1 BOOTP broadcast 2 packet received packet received Receive from protocol 0x806 Got ARP packet received packet received Receive from protocol 0x806 Got ARP packet received packet received Receive from protocol 0x806 Got ARP BOOTP broadcast 3 BOOTP broadcast 4 BOOTP broadcast 5
Retry count exceeded; starting again
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?
I'm on a 100 base-T network, is that a problem? Has this code been tested at 100?
If anyone has been down a similar path before I could use some debugging tips.
thx, NZG.

On Apr 6, 2005 4:10 PM, NZG ngustavson@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.

Hello, I have ported u-boot to our MCF5282 based board COBRA5282 with support for ethernet. Sadly, I didn't send the patch to the u-boot project. But if you would like to have the source code I could send it.
Regards, Wolfgang
NZG schrieb:
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:
u-boot-> dhcp BOOTP broadcast 1 BOOTP broadcast 2 packet received packet received Receive from protocol 0x806 Got ARP packet received packet received Receive from protocol 0x806 Got ARP packet received packet received Receive from protocol 0x806 Got ARP BOOTP broadcast 3 BOOTP broadcast 4 BOOTP broadcast 5
Retry count exceeded; starting again
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?
I'm on a 100 base-T network, is that a problem? Has this code been tested at 100?
If anyone has been down a similar path before I could use some debugging tips.
thx, NZG.
SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

Hello, I have ported u-boot to our MCF5282 based board COBRA5282 with support for ethernet. Sadly, I didn't send the patch to the u-boot project. But if you would like to have the source code I could send it.
I wouldn't mind a copy, if it isn't too much trouble. It'd be helpful to have a reference to sanity check my code. Plus, I've only tested what I have an immediate need for, so I'm sure my code still has gaps.
participants (3)
-
NZG
-
Wolfgang Elsner
-
Zachary Landau