Hi,

On 01/20/2014 04:45 PM, [email protected] wrote:
On 10/01/14 07:00, Chen-Yu Tsai wrote:
Hi,

This is v2 of the  Allwinner A20 GMAC glue layer for stmmac.
The clock and DT patches should be applied after my clock
rename[1] series.

Using Hans sunxi-devel branch and patched u-boot I have this working
on an A20-OLinuXino-MICRO and a Cubietruck.

However on Cubieboard2 I get an issue where the interface can send but
not receive.
Looking at /proc/interrupts eth0 shows 0 for both cpus, tcpdump on the
cubie sees outgoing traffic but nothing incoming. DHCP server sees
requests from the cubie, but the cubie never sees the replies.

I've tried the various combinations of using the olinuxino dtb file on
the cubieboard2 and vice-versa with no effect. The Cubie2 dtb works with
the olinuxino and the olinuxino dtb fails on the Cubie2

The only difference I can find is that u-boot for the olinuxino is configured
for SUNXI_EMAC but for the Cubie2 it's using SUNXI_GMAC.

If I rebuild u-boot for the Cubie2 using SUNXI_EMAC than I get working
network in Linux.

 From there I'd been looking at the patch "ARM: sunxi: Do not select unused
GMAC pins under RGMII mode" thinking that maybe some pins had been set
differently, but I can't find anywhere that sets CONFIG_RGMII so I don't
think that's the cause.

This is a known issue, with the current sunxi-devel branch you need to have
u-boot configured for GMAC for things to work. This is fixed in a later version
of Chen's patches but I still need to rebase sunxi-devel to those.

Regards,

Hans

--
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/groups/opt_out.

Reply via email to