> Date: Sat, 24 Mar 2018 22:18:03 +0900
> From: SASANO Takayoshi <u...@mx5.nisiq.net>
> 
> On Thu, 22 Mar 2018 08:59:55 +0900,
> Artturi Alm wrote:
> > Hi, 
> > 
> > i don't know what "nemesis" is, but you could have a try w/diff below.
> > or if you're unable to do that, static arp and/or running tcpdump for
> > IFF_PROMISC might work as a workaround for some bugs the driver has, fwiw..
> > 
> > -Artturi
> 
> Hello,
> 
> "nemesis" is a packet generator that we can use by ports/net/nemesis.
> It is easy to send test packet so I used it.
> 
> I applied your sxie.c patch but the problem is not solved, same as
> not patched... corrupt packet is still sent.
> 
> And none packets are received, the log of tcpdump -i sxie0 shows nothing.
> 
> Artturi, you use Miniand Hackberry board and does the U-boot for this board
> support sxie ethernet? My pcDuino's U-boot does not.
> 
> I think something (not MAC controller but others) is not setup correctly
> so I want to check, what should I start from?

I believe the sunxi EMAC uses SRAM and that the current sxie(4) driver
expects that SRAM to be properly initialized and set up by U-Boot.

In sunxi_emac_board_setup() U-Boot does:

        /* Map SRAM to EMAC */
        setbits_le32(&sram->ctrl1, 0x5 << 2);

Not sure if that is all that is needed.  Doing that from inside the
sxie(4) driver code is a bit hard; this would probably require adding
a driver for the sram-controller ("allwinner,sun4i-a10-sram-controller").

Cheers,

Mark



Reply via email to