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

Michael Weiser michael.weiser at gmx.de
Fri Jul 29 11:55:38 PDT 2016


Hi Maxime,

On Fri, Jul 29, 2016 at 06:39:07PM +0200, Maxime Ripard wrote:

> > 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
> Maybe a good way to confirm that would be to generate outgoing
> traffic, dump that and see what the mac address is? If it's not
> programmed properly, you should see it in the packets.

That's what I've done: When trying to ping another machine, with tcpdump
I see ARP requests coming from the cubieboard with the right MAC and I
see the target machine sending ARP responses to the right MAC. But I do
not see them coming in with tcpdump on the cubieboard.

The same process works fine with a little-endian kernel (same .config and
dtb) and userland, so I'm sure it's an endianess issue somewhere.

I'll do some more comparison of little- and big-endian kernel behaviour
and dig a bit deeper into the code.
-- 
Thanks,
Michael



More information about the linux-arm-kernel mailing list