From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zachary Landau Date: Thu, 7 Apr 2005 16:17:12 -0400 Subject: [U-Boot-Users] Re: ethernet problems on the 5282 - Retry count exceeded In-Reply-To: <200504061510.37121.ngustavson@emacinc.com> References: <200504061510.37121.ngustavson@emacinc.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Apr 6, 2005 4:10 PM, NZG 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