* [U-Boot-Users] ethernet problems on the 5282 - Retry count exceeded
@ 2005-04-06 20:10 NZG
2005-04-07 20:17 ` [U-Boot-Users] " Zachary Landau
2005-04-08 7:24 ` [U-Boot-Users] " Wolfgang Elsner
0 siblings, 2 replies; 4+ messages in thread
From: NZG @ 2005-04-06 20:10 UTC (permalink / raw)
To: u-boot
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] Re: ethernet problems on the 5282 - Retry count exceeded
2005-04-06 20:10 [U-Boot-Users] ethernet problems on the 5282 - Retry count exceeded NZG
@ 2005-04-07 20:17 ` Zachary Landau
2005-04-08 7:24 ` [U-Boot-Users] " Wolfgang Elsner
1 sibling, 0 replies; 4+ messages in thread
From: Zachary Landau @ 2005-04-07 20:17 UTC (permalink / raw)
To: u-boot
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.
--
Zachary P. Landau <kapheine@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] ethernet problems on the 5282 - Retry count exceeded
2005-04-06 20:10 [U-Boot-Users] ethernet problems on the 5282 - Retry count exceeded NZG
2005-04-07 20:17 ` [U-Boot-Users] " Zachary Landau
@ 2005-04-08 7:24 ` Wolfgang Elsner
2005-04-08 15:29 ` Zachary Landau
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Elsner @ 2005-04-08 7:24 UTC (permalink / raw)
To: u-boot
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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] ethernet problems on the 5282 - Retry count exceeded
2005-04-08 7:24 ` [U-Boot-Users] " Wolfgang Elsner
@ 2005-04-08 15:29 ` Zachary Landau
0 siblings, 0 replies; 4+ messages in thread
From: Zachary Landau @ 2005-04-08 15:29 UTC (permalink / raw)
To: u-boot
> 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.
--
Zachary P. Landau <kapheine@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-04-08 15:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-06 20:10 [U-Boot-Users] ethernet problems on the 5282 - Retry count exceeded NZG
2005-04-07 20:17 ` [U-Boot-Users] " Zachary Landau
2005-04-08 7:24 ` [U-Boot-Users] " Wolfgang Elsner
2005-04-08 15:29 ` Zachary Landau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox