Can't use mge on 88F5181

Michael Zhilin mizhka at gmail.com
Mon Apr 17 12:28:30 UTC 2017


Hi Adrian, Hiroki,

Did you manage this issue? Actually I see similar issue with BCM53115/53125
and bgmac/dwc.
What I have:
  - Asus RT-N53 with working bgmac driver and with embedded switch (BCM5758)
  - Asus RT-N16 (dead) and Netgear WNR3500: same bgmac driver and external
switch BCM53115 and CPU BCM4718 and default configuration (unmanaged mode,
all in one VLAN, port based VLAN is on, 1Q VLAN is on).

Laptop sends packets and according to switch's MIB switch forwards it to
CPU port and according to gmac's MIB packets are received by gmac (roughly
same size, wireshark shows 42 send bytes, MIB shows 44 received bytes),
there is no errors in MIB (like corrupted packets), but there is no
interrupts/DMA transactions as well.

I don't know what is actual problem, but it seems that DMA of bgmac doesn't
work. Same code works with embedded switch.

If you have any idea, please

Thanks!


On Fri, Apr 14, 2017 at 12:00 AM, Adrian Chadd <adrian.chadd at gmail.com>
wrote:

> hi,
>
> I'd have to go dig through the datasheets of everything to see what
> the deal is. :( it could be ethernet switch side, it could be
> interface config mismatch (MII, RMII, RGMII, SGMII, PSGMII, etc.); it
> could be clock configuration (if it's MII, the clock is changed based
> on 10/100; later interfaces run at a constant speed and just
> bitstuff), etc, etc.
>
> Can you get per-switch-port counters on the switch? Is the CPU port on
> the switch seeing traffic?
>
>
> -adrian
>
>
> On 12 April 2017 at 22:26, Mori Hiroki <yamori813 at yahoo.co.jp> wrote:
> > Hi.
> >
> > No arp and unicast packet receive mge checked by tcpdump command
> > on this target. Also no pacet trans checked by tcpdump command on
> > other machine. netstat -i have trans packet count without error.
> > But no receive other machine. MIDO switch control is work fine.
> > Giga switch physical port to physical port is receive and trans
> > is fine. But cpu port nothing.
> >
> > My e6060sw.c code have dot1q support by VTU access code. e6000sw
> > don't have it. I want add dot1q code to e6000sw too. But It is
> > very hard no data sheet.
> >
> > I found ml topics is this type target at 2011. That subject is
> > "Embedded switch instead of stadard PHY". I seem this is origin
> > of etherswitch.
> >
> > Thanks
> >
> > Hiroki Mori
> >
> >
> > ----- Original Message -----
> >> From: Adrian Chadd <adrian.chadd at gmail.com>
> >> To: Mori Hiroki <yamori813 at yahoo.co.jp>
> >> Cc: "freebsd-arm at freebsd.org" <freebsd-arm at freebsd.org>
> >> Date: 2017/4/12, Wed 09:55
> >> Subject: Re: Can't use mge on 88F5181
> >>
> >> hiya,
> >>
> >> did you figure it out?
> >>
> >> Is there something like CRC, etc packet errors or something on RX?
> >>
> >>
> >>
> >> -adrian
> >>
> >>
> >> On 4 April 2017 at 04:42, Mori Hiroki <yamori813 at yahoo.co.jp> wrote:
> >>>  Hi.
> >>>
> >>>  I try to use Buffalo WZR-AMPG300NH. This module have 88F5181 and
> 88E6131.
> >>>  I modify dev/mge and dev/etherswitch/e600sw/e6000sw.c.
> >>>
> >>>  Network interface mge is detect but not work. Switch port is work by
> >>>  port vlan. But CPU connected port3 is nothing trans and receive
> packet.
> >>>
> >>>  I check marvell code but not fix this problem.
> >>>
> >>>  If you have advice, please let me know.
> >>>
> >>>
> >>>  This is dmesg.
> >>>
> >>>  https://gist.github.com/yamori813/ecd5df1b314053a73f310c1122775540
> >>>
> >>>
> >>>  Thanks.
> >>>
> >>>  Hiroki Mori
> >>>  _______________________________________________
> >>>  freebsd-arm at freebsd.org mailing list
> >>>  https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> >>>  To unsubscribe, send any mail to
> >> "freebsd-arm-unsubscribe at freebsd.org"
> >>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>


More information about the freebsd-arm mailing list