[PATCH 3/3] ARM: sunxi: enable big-endian

Michael Weiser michael.weiser at gmx.de
Fri Jul 29 00:59:23 PDT 2016


Hi ChenYu,

On Wed, Jul 27, 2016 at 09:55:11AM +0800, Chen-Yu Tsai wrote:
> > As far as I gather, the Cubieboard2 does not route the EMAC pins anywhere.
> > So I can't connect a PHY to it for testing.
> The EMAC pins are muxed with the GMAC pins. All you need to do is disable
> the GMAC, enable the EMAC, and use emac_pins_a for the pinctrl.

Okay, I've done that by copying the relevant dts sections from
sun4i-a10-cubieboard.dts. It initialises and transmits packets fine. But
it doesn't seem to accept incoming packets. I suspect that programming
of its own MAC address (which the driver chooses randomly) suffers from
an endianness issue. I'm somewhat stumped as to what is causing it since
all accesses use {read,write}l. Interrupt handling is another possible
culprit. I'm still digging.
-- 
Thanks,
Michael



More information about the linux-arm-kernel mailing list