Hi,

On Sun, May 18, 2014 at 10:14 PM, Ian Campbell <[email protected]> wrote:
> My cubieboard2 (which uses the designware GMAC driver) doesn't seem to
> work with my 100MB netgear hub. From both Linux (3.14.4) and u-boot

IIRC the associated DT and clock drivers were merged in 3.15.
3.14 only had stmmac glue layer merged.

Without them, either the driver won't probe, or you're at the mercy of
whatever u-boot setup.

> (either mainline + sunxi upstreaming patches + cb2 bits, or sunxi repo,
> doesn't matter) it doesn't seem to be able to generate traffic, despite
> it thinking there is a link.

What is the link speed it thinks it has? Is it correct?
Also is the GMAC clock set to the correct setting for MII mode?

> A cubietruck plugged into the same hub works fine (as do various other
> bits of non-sunxi kit) and the cubieboard works fine if I plug it
> directly into the uplink cable which goes to a gigabit cisco switch.

Sounds like an auto-negotiation problem. IIRC we've encountered this
while working on GMAC support. You must always select PHY_GIGE, even
if the link/phy can only do 100M. This is to make U-boot's miiphy interface
be aware of the 1000M flags, and correctly mask them out.

> TBH this hub is probably due an upgrade, but I wondered if anyone had
> any ideas of things I should try first.

Hope this helps. I didn't leave any notes around.


Cheers,
ChenYu

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to