[U-Boot] Fw: TFTP fails when using network switch

Ben Warren
2009-01-07T18:02:22Z

Loren A. Linden Levy wrote:
> Hi All,
>
> Is there something like ethtool in U-boot that I can use to see what
> the network negotiated too. This is a fairly cheap netgear switch so I
> do not have any diagnostics on it.
>
> I will also have a look with wireshark when i get back to the lab to
> see if I can identify what is happening.
>
> Alex
>
I don't have the 802.3 spec in front of me, but IIRC there are a
standard set of registers for autonegotiation status that display things
like your PHY's capabilities, as well as those of its peer.

As others have pointed out, you can use the MII commands to do all sorts
of things, such as running an AN cycle and looking at the results, and
also turning off AN and forcing speed/duplex values.

I've had bad luck with cheap switches sometimes too, but ultimately this
stuff is deterministic and there's a chance you can make our drivers
more robust.

regards,
Ben