[BPI-R4 Pro 8X] No TX traffic from SoC to MxL86252 switch (lan1–lan4 & 10G-LAN) on both stock OpenWrt and Linux 7.3 — hardware defect or SerDes/FW issue?

Hello,

I have a Banana Pi BPI-R4 Pro 8X board and I am experiencing a consistent issue where outgoing (TX) traffic from the MT7988A SoC (gmac2 / 10GBASE-R) to the MaxLinear MxL86252 switch never reaches the physical ports (lan1–lan4 and 10G-LAN), while incoming (RX) traffic and intra-switch L2 forwarding work fine.

Key symptoms & tests performed:

  1. Reproduced on stock factory OpenWrt (SPI-NAND) as well as custom Linux 7.3 (based on frank-w/BPI-Router-Linux 7.3-main):
    • lan5 (connected to the internal MT7530 switch) works completely fine (both RX and TX).
    • 10G-WAN (eth1 / AS21010PB1 PHY) links up and passes traffic on the stock image.
    • lan1–lan4 (MxL86252 switch): physical link comes up (1Gbps/Full or 2.5Gbps/Full), LEDs work, and RX packets from connected clients reach the SoC (verified via tcpdump on eth2/end2, lan2, br0, and ARP/FDB tables populate).
    • However, zero TX packets leave the physical RJ45 ports of MxL86252.
  2. Switch-to-switch L2 test:
    • Connecting two devices directly to lan1 and lan2 passes L2 traffic between them without any issues — so the GPHYs and physical RJ45 jacks on the MxL86252 are working.
  3. Loopback patch-cord test (lan2 ↔ lan3):
    • When connecting lan2 and lan3 with a patch cord and sending ARP/ICMP out of lan2, tcpdump on lan2 shows the outgoing frames, end2 TX counters increment, and MxL86252 RMON tx_packets counter increments, but tcpdump on lan3 receives nothing (even though RX from lan3 to SoC works).
  4. Switch firmware & tagging checks:
    • Initially the switch had factory firmware 1.0.70 (build 70) — same exact behavior (RX works, TX fails).
    • Updated the MxL86252 firmware via fwupd (LVFS) to official 1.0.85 (build 85) (GPHY 0.105) — the issue persists identically on both stock OpenWrt and Linux 7.3 (tested with both mxl862xx-8021q and native mxl862xx tag protocols, with and without bridge, and with HW offloads disabled).

Relevant dmesg snippet:

mtk_soc_eth 15100000.ethernet end2: configuring for fixed/10gbase-r link mode
mtk_soc_eth 15100000.ethernet end2: Link is Up - 10Gbps/Full - flow control rx/tx
mxl862xx mdio-bus:10: switch ready after 2652ms, firmware 1.0.85 (build 85)
mxl862xx mdio-bus:10: configuring for fixed/10gbase-r link mode
mxl862xx mdio-bus:10: Link is Up - 10Gbps/Full - flow control off

Could this be a hardware defect on the 10GBASE-R TX differential pair (GMAC2_TXP/N / AC-coupling capacitors) between MT7988A and MxL86252 on my specific board, or is there any known SerDes/XPCS/pin-strap configuration issue on the BPI-R4 Pro 8X revision?

Thanks in advance for any help!

Normally loopback does not work due to routing (there are tricks to allow this,bit i’m not sure if mxl switch is handling packets it already sent on another port). So this test is not reliable.

I ser your serdes is is base-r mode which was correct for older kernels but not for newer. Serdes should be completely usxgmii with inband enabled on actual switch firmware.

I guess it is a netweok config issue. Please show “ip a” and “ip r”

1 Like

Thank you for the reply!

First, here is the requested network configuration (ip a, ip r, bridge vlan show) from my system (with lan1–lan5 bridged into br0, although as mentioned earlier, the exact same TX issue on lan1–lan4 also happens when lan2 is configured standalone outside of any bridge):

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP group default qlen 1000
    link/ether 76:d0:1a:53:3c:87 brd ff:ff:ff:ff:ff:ff
3: end1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 62:41:6f:11:7c:f1 brd ff:ff:ff:ff:ff:ff
4: end2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP group default qlen 1000
    link/ether ce:1a:53:ec:cd:46 brd ff:ff:ff:ff:ff:ff
5: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 76:d0:1a:53:3c:87 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.192/25 brd 192.168.8.255 scope global noprefixroute br0
    inet 172.31.254.1/28 brd 172.31.254.15 scope global noprefixroute br0
6: lan1@end2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state DOWN group default qlen 1000
7: lan2@end2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP group default qlen 1000
8: lan3@end2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
9: lan4@end2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
10: lan5@end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP group default qlen 1000

default via 192.168.8.250 dev br0 proto static metric 425 
172.31.254.0/28 dev br0 proto kernel scope link src 172.31.254.1 metric 425 
192.168.8.128/25 dev br0 proto kernel scope link src 192.168.8.192 metric 425 

port              vlan-id  
br0               1 PVID Egress Untagged
lan1              1 PVID Egress Untagged
lan2              1 PVID Egress Untagged
lan5              1 PVID Egress Untagged

Second, I noticed that in your current mt7988a-bananapi-bpi-r4-pro.dtsi (up to 7.4-rc), &gmac2 and &switch16 port@9 are still set to phy-mode = "10gbase-r" with fixed-link. Following your suggestion, I patched mt7988a-bananapi-bpi-r4-pro-8x.dts to switch both &gmac2 and port@9 to phy-mode = "usxgmii" and tested both options:

  1. With managed = "in-band-status" (and fixed-link deleted): the SerDes link between end2 and mxl862xx never comes up (NO-CARRIER, no Link is Up message in dmesg, and even RX/ARP stops working).
  2. With phy-mode = "usxgmii" and fixed-link kept: mxl862xx logs:
    mxl862xx mdio-bus:10: configuring for fixed/usxgmii link mode
    mxl862xx mdio-bus:10: firmware wants fixed mode, but PCS requires inband
    
    and still passes zero TX frames out of lan1–lan4 (and stops passing RX frames as well).

So on firmware 1.0.85, only the default 10gbase-r + fixed-link DTS configuration allows RX frames to reach the SoC, while usxgmii fails on both in-band-status and fixed-link. Could you share the exact DTS snippet for &gmac2 and &switch16 (port@9) that works for you with usxgmii on 1.0.85?

this is not a dts only change … you can try my build - GitHub - rmandrad/BPI-Router-Linux: Linux kernel for Sinovoip R4PRO 8X · GitHub (7.3.4 is the latest) or prebuild images Release CI-BUILD-7.3-main-7.3.4-2026-11-11_0538 · rmandrad/BPI-Router-Linux · GitHub

1 Like

lan3+lan4 are not part of the bridge br0

oh, you are right, seems i missed the change to usxgmii somehow in recent branch (7.3-rc/main and 7.4-rc)

fixed-link needs to be kept.

@rmandrad can you point on the additional change needed for usxgmii (it seems i miss this too, but needed the usxgmii patch from christian to get mxl switch working which makes no sense now)?

ah, i remember i waited for mxl-firmware and then forget to change it (also to preserve backwards capatibility).

@dangowrt can you help here? but i see in your wip-branch the port9 is 10gbase-r too :slight_smile:

Got response from daniel that base-r on cpu-port is right…only on the phy-connections usxgmii should be used

1 Like

Thank you both for confirming 10gbase-r on the CPU port!

Following your advice, I reverted &gmac2 and &switch16 port@9 back to 10gbase-r + fixed-link, and also tested rmandrad’s 7.3-main tree (with all recent mxl862xx patches included).

Here are the requested outputs (ip a, ip r, bridge vlan show, and ethtool -S lan2). (Note: lan3 and lan4 had not been added to br0 yet in this snapshot simply because no cable had been plugged into them since reboot, while lan1 and lan2 are bridged and exhibit the exact same issue):

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP group default qlen 1000
    link/ether 76:d0:1a:53:3c:87 brd ff:ff:ff:ff:ff:ff
3: end1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 62:41:6f:11:7c:f1 brd ff:ff:ff:ff:ff:ff
4: end2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP group default qlen 1000
    link/ether ce:1a:53:ec:cd:46 brd ff:ff:ff:ff:ff:ff
5: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 76:d0:1a:53:3c:87 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.192/25 brd 192.168.8.255 scope global noprefixroute br0
    inet 172.31.254.1/28 brd 172.31.254.15 scope global noprefixroute br0
6: lan1@end2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br0 state DOWN group default qlen 1000
    link/ether ce:1a:53:ec:cd:46 brd ff:ff:ff:ff:ff:ff
7: lan2@end2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP group default qlen 1000
    link/ether ce:1a:53:ec:cd:46 brd ff:ff:ff:ff:ff:ff
8: lan3@end2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether ce:1a:53:ec:cd:46 brd ff:ff:ff:ff:ff:ff
9: lan4@end2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether ce:1a:53:ec:cd:46 brd ff:ff:ff:ff:ff:ff
10: lan5@end0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP group default qlen 1000
    link/ether 76:d0:1a:53:3c:87 brd ff:ff:ff:ff:ff:ff

default via 192.168.8.250 dev br0 proto static metric 425 
172.31.254.0/28 dev br0 proto kernel scope link src 172.31.254.1 metric 425 
192.168.8.128/25 dev br0 proto kernel scope link src 192.168.8.192 metric 425 

port              vlan-id  
br0               1 PVID Egress Untagged
lan1              1 PVID Egress Untagged
lan2              1 PVID Egress Untagged
lan5              1 PVID Egress Untagged

The behavior on 10gbase-r remains identical across stock OpenWrt, frank-w 7.3, and rmandrad 7.3, and on both MxL86252 firmware 1.0.70 and 1.0.85:

  • Incoming frames from a laptop on lan2 reach br0 (ARP requests are visible in tcpdump).
  • When the router sends frames out of lan2, end2 TX counters and MxL86252 RMON counters on lan2 increment with zero errors:
    tx_packets: 871
    tx_bytes: 99173
    rx_packets: 312
    rx_bytes: 32738
    TxAcmDroppedPkts: 0
    RxFilteredPkts: 0
    RxExtendedVlanDiscardPkts: 0
    MtuExceedDiscardPkts: 0
    RxBadBytes: 0
    
  • However, zero frames ever appear on the physical wire on lan1–lan4 (verified on the directly connected laptop NIC with rx-vlan-filter off, rx-vlan-offload off, and promisc on in tcpdump -e).
  • At the same time, direct L2 traffic between lan1 and lan2 passes fine, and lan5 (MT7530) works normally.

@dangowrt Is there anything else in the MxL86252 driver/PCE/SerDes setup that could cause frames received from CPU port 9 (mxl862xx-8021q) to increment lan2 RMON tx_packets without ever leaving the GPHY, or does this point to a hardware fault on this board?

Thanks for the detailed outputs. One correction : the tx_packets / tx_bytes / rx_packets / rx_bytes lines at the top of ethtool -S lan2 are not MxL86252 RMON counters. DSA core adds them from the netdev’s software stats. They only show that the kernel handed the frames to end2, not that the switch transmitted them on lan2. Most of the five MxL counters listed below them count drops on lan2’s receive side, so they don’t cover frames dropped between CPU port 9 and lan2 either.

The switch’s real egress counters are in the standard stats groups. Could you run this:

ethtool -S lan2 --groups eth-mac rmon
ip -s -s link show lan2
ethtool -S end2
cat /sys/class/net/end2/dsa/tagging

Run the first two once, then ping the laptop from the router for ~10 seconds (or arping -I br0 <laptop-ip>), and run them again. Please post both sets and tell us how much eth-mac-FramesTransmittedOK and tx_dropped changed.

How to read the result:

  • FramesTransmittedOK stays flat: the frames are dropped inside the switch between port 9 and lan2. That points at the driver/firmware VLAN setup, not the board.
  • FramesTransmittedOK climbs but the laptop sees nothing: the problem is below the MAC (PHY/board). Your lan1<->lan2 traffic working makes that unlikely, since the same PHYs send it fine.

For comparison, on my R4 Pro with the same 7.3-main kernel (port@9 10gbase-r + fixed-link, mxl862xx-8021q tagger; I also have port@13 enabled as USXGMII via overlay), lan1 shows eth-mac-FramesTransmittedOK: 2980196 and BroadcastFramesXmittedOK: 1870 with only lan1 cabled on the MxL. So CPU->user TX works here with the same CPU-port configuration.

Two more tests that would narrow it down:

  1. Take lan2 out of br0, put an IP directly on lan2, and ping the laptop. This tells us whether only the bridged path is affected.
  2. Switch to the native tagger and repeat:
    ip link set lan1 down; ip link set lan2 down; ip link set lan3 down; ip link set lan4 down
    echo mxl862xx > /sys/class/net/end2/dsa/tagging
    
    (or set dsa-tag-protocol = "mxl862xx" on port@9). If TX works with the native tag, the problem is in the 8021q path, not the SerDes or hardware.
1 Like

Thank you so much for this diagnostic breakdown! I ran all three tests (bridged, standalone lan2, and native mxl862xx tagger) while capturing ethtool -S lan2 --groups eth-mac rmon, ethtool -S end2, and ip -s -s link show lan2 before and after pinging the laptop (172.31.254.4) on lan2.

Summary of results:

  1. eth-mac-FramesTransmittedOK stayed completely flat at 21 across all three tests (even though end2 tx_packets incremented from 11304 to 11368, and s00_p09_* error/discard counters remained 0).
    • (Note: those initial 21 transmitted frames / 3 broadcast frames occurred during early boot before the Linux DSA driver initialized the switch).
  2. Test 2 (Standalone lan2, nomaster, unmanaged by NetworkManager, mxl862xx-8021q): eth-mac-FramesTransmittedOK stayed at 21 (0 replies).
  3. Test 3 (Standalone lan2 with native mxl862xx tagger): verified /sys/class/net/end2/dsa/tagging switched to mxl862xx and lan2 reached UP,LOWER_UP, yet eth-mac-FramesTransmittedOK still stayed flat at 21 (0 replies).

So per your criteria, the frames are definitely being dropped inside the switch between CPU port 9 and lan2 (or not reaching port 9’s MAC at all despite end2 transmitting), regardless of bridge membership or 8021q vs native mxl862xx tagging.

Full raw test log:


==================================================================
=== 0. INITIAL CHECK
==================================================================

==================================================================
=== TEST 1: BRIDGED (lan2 in br0, tagger mxl862xx-8021q)
==================================================================
--- [TEST 1 - BEFORE] dsa tagging: mxl862xx-8021q ---
eth-mac-FramesTransmittedOK: 21
eth-mac-FramesReceivedOK: 780
eth-mac-FrameCheckSequenceErrors: 0
eth-mac-AlignmentErrors: 0
eth-mac-BroadcastFramesXmittedOK: 3
eth-mac-MulticastFramesReceivedOK: 37
eth-mac-BroadcastFramesReceivedOK: 743
eth-mac-FrameTooLongErrors: 0
--- [TEST 1 - BEFORE] ethtool -S end2 (switch port 9) ---
     tx_packets: 11304
     rx_packets: 801
     s00_p09_TxAcmDroppedPkts: 0
     s00_p09_RxFilteredPkts: 0
     s00_p09_RxExtendedVlanDiscardPkt: 0
     s00_p09_MtuExceedDiscardPkts: 0
     s00_p09_RxBadBytes: 0
--- [TEST 1 - BEFORE] ip -s -s link show lan2 ---
8: lan2@end2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP mode DEFAULT group default qlen 1000
    link/ether 16:d2:22:47:9c:5b brd ff:ff:ff:ff:ff:ff
    RX:  bytes packets errors dropped  missed   mcast           
         64414     780      0       0       0      37 
    RX errors:  length    crc   frame    fifo overrun
                     0      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
          6806      21      0      26       0       0 
    TX errors: aborted   fifo  window heartbt transns
                     0      0       0       0       9 
+ ping -I br0 -c 10 -W 1 172.31.254.4
PING 172.31.254.4 (172.31.254.4) from 172.31.254.1 br0: 56(84) bytes of data.

--- 172.31.254.4 ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 9212ms

+ true
+ set +x
--- [TEST 1 - AFTER] dsa tagging: mxl862xx-8021q ---
eth-mac-FramesTransmittedOK: 21
eth-mac-FramesReceivedOK: 783
eth-mac-FrameCheckSequenceErrors: 0
eth-mac-AlignmentErrors: 0
eth-mac-BroadcastFramesXmittedOK: 3
eth-mac-MulticastFramesReceivedOK: 37
eth-mac-BroadcastFramesReceivedOK: 746
eth-mac-FrameTooLongErrors: 0
--- [TEST 1 - AFTER] ethtool -S end2 (switch port 9) ---
     tx_packets: 11337
     rx_packets: 804
     s00_p09_TxAcmDroppedPkts: 0
     s00_p09_RxFilteredPkts: 0
     s00_p09_RxExtendedVlanDiscardPkt: 0
     s00_p09_MtuExceedDiscardPkts: 0
     s00_p09_RxBadBytes: 0
--- [TEST 1 - AFTER] ip -s -s link show lan2 ---
8: lan2@end2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP mode DEFAULT group default qlen 1000
    link/ether 16:d2:22:47:9c:5b brd ff:ff:ff:ff:ff:ff
    RX:  bytes packets errors dropped  missed   mcast           
         64606     783      0       0       0      37 
    RX errors:  length    crc   frame    fifo overrun
                     0      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
          6806      21      0      26       0       0 
    TX errors: aborted   fifo  window heartbt transns
                     0      0       0       0       9 

==================================================================
=== TEST 2: STANDALONE lan2 (unmanaged by NM, removed from br0, tagger mxl862xx-8021q)
==================================================================
+ nmcli device set lan1 managed no
+ nmcli device set lan2 managed no
+ nmcli device set lan3 managed no
+ nmcli device set lan4 managed no
+ ip addr del 172.31.254.1/28 dev br0
+ ip link set lan2 nomaster
+ ip addr flush dev lan2
+ ip addr add 172.31.254.1/28 dev lan2
+ ip link set lan2 up
+ sleep 3
+ set +x
--- [TEST 2 - BEFORE] dsa tagging: mxl862xx-8021q ---
eth-mac-FramesTransmittedOK: 21
eth-mac-FramesReceivedOK: 783
eth-mac-FrameCheckSequenceErrors: 0
eth-mac-AlignmentErrors: 0
eth-mac-BroadcastFramesXmittedOK: 3
eth-mac-MulticastFramesReceivedOK: 37
eth-mac-BroadcastFramesReceivedOK: 746
eth-mac-FrameTooLongErrors: 0
--- [TEST 2 - BEFORE] ethtool -S end2 (switch port 9) ---
     tx_packets: 11339
     rx_packets: 804
     s00_p09_TxAcmDroppedPkts: 0
     s00_p09_RxFilteredPkts: 0
     s00_p09_RxExtendedVlanDiscardPkt: 0
     s00_p09_MtuExceedDiscardPkts: 0
     s00_p09_RxBadBytes: 0
--- [TEST 2 - BEFORE] ip -s -s link show lan2 ---
8: lan2@end2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 16:d2:22:47:9c:5b brd ff:ff:ff:ff:ff:ff
    RX:  bytes packets errors dropped  missed   mcast           
         64606     783      0       0       0      37 
    RX errors:  length    crc   frame    fifo overrun
                     0      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
          6806      21      0      26       0       0 
    TX errors: aborted   fifo  window heartbt transns
                     0      0       0       0       9 
+ ping -I lan2 -c 10 -W 1 172.31.254.4
PING 172.31.254.4 (172.31.254.4) from 172.31.254.1 lan2: 56(84) bytes of data.
From 172.31.254.1 icmp_seq=1 Destination Host Unreachable
From 172.31.254.1 icmp_seq=5 Destination Host Unreachable
From 172.31.254.1 icmp_seq=6 Destination Host Unreachable
From 172.31.254.1 icmp_seq=8 Destination Host Unreachable
From 172.31.254.1 icmp_seq=9 Destination Host Unreachable

--- 172.31.254.4 ping statistics ---
10 packets transmitted, 0 received, +5 errors, 100% packet loss, time 9218ms
pipe 4
+ true
+ set +x
--- [TEST 2 - AFTER] dsa tagging: mxl862xx-8021q ---
eth-mac-FramesTransmittedOK: 21
eth-mac-FramesReceivedOK: 783
eth-mac-FrameCheckSequenceErrors: 0
eth-mac-AlignmentErrors: 0
eth-mac-BroadcastFramesXmittedOK: 3
eth-mac-MulticastFramesReceivedOK: 37
eth-mac-BroadcastFramesReceivedOK: 746
eth-mac-FrameTooLongErrors: 0
--- [TEST 2 - AFTER] ethtool -S end2 (switch port 9) ---
     tx_packets: 11349
     rx_packets: 804
     s00_p09_TxAcmDroppedPkts: 0
     s00_p09_RxFilteredPkts: 0
     s00_p09_RxExtendedVlanDiscardPkt: 0
     s00_p09_MtuExceedDiscardPkts: 0
     s00_p09_RxBadBytes: 0
--- [TEST 2 - AFTER] ip -s -s link show lan2 ---
8: lan2@end2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 16:d2:22:47:9c:5b brd ff:ff:ff:ff:ff:ff
    RX:  bytes packets errors dropped  missed   mcast           
         64606     783      0       0       0      37 
    RX errors:  length    crc   frame    fifo overrun
                     0      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
          6806      21      0      26       0       0 
    TX errors: aborted   fifo  window heartbt transns
                     0      0       0       0       9 

==================================================================
=== TEST 3: STANDALONE lan2 WITH NATIVE TAGGER (mxl862xx)
==================================================================
+ ip addr del 172.31.254.1/28 dev lan2
+ ip link set lan1 down
+ ip link set lan2 down
+ ip link set lan3 down
+ ip link set lan4 down
+ ip link set end2 down
+ echo mxl862xx
+ tee /sys/class/net/end2/dsa/tagging
+ ip link set end2 up
+ ip addr add 172.31.254.1/28 dev lan2
+ ip link set lan2 up
+ sleep 3
+ set +x
--- [TEST 3 - BEFORE] dsa tagging: mxl862xx ---
eth-mac-FramesTransmittedOK: 21
eth-mac-FramesReceivedOK: 783
eth-mac-FrameCheckSequenceErrors: 0
eth-mac-AlignmentErrors: 0
eth-mac-BroadcastFramesXmittedOK: 3
eth-mac-MulticastFramesReceivedOK: 37
eth-mac-BroadcastFramesReceivedOK: 746
eth-mac-FrameTooLongErrors: 0
--- [TEST 3 - BEFORE] ethtool -S end2 (switch port 9) ---
     tx_packets: 11358
     rx_packets: 804
     s00_p09_TxAcmDroppedPkts: 0
     s00_p09_RxFilteredPkts: 0
     s00_p09_RxExtendedVlanDiscardPkt: 0
     s00_p09_MtuExceedDiscardPkts: 0
     s00_p09_RxBadBytes: 0
--- [TEST 3 - BEFORE] ip -s -s link show lan2 ---
8: lan2@end2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether 16:d2:22:47:9c:5b brd ff:ff:ff:ff:ff:ff
    RX:  bytes packets errors dropped  missed   mcast           
         64606     783      0       0       0      37 
    RX errors:  length    crc   frame    fifo overrun
                     0      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
          6806      21      0      27       0       0 
    TX errors: aborted   fifo  window heartbt transns
                     0      0       0       0      10 
+ ping -I lan2 -c 10 -W 1 172.31.254.4
PING 172.31.254.4 (172.31.254.4) from 172.31.254.1 lan2: 56(84) bytes of data.
From 172.31.254.1 icmp_seq=1 Destination Host Unreachable
From 172.31.254.1 icmp_seq=2 Destination Host Unreachable
From 172.31.254.1 icmp_seq=3 Destination Host Unreachable
From 172.31.254.1 icmp_seq=4 Destination Host Unreachable
From 172.31.254.1 icmp_seq=5 Destination Host Unreachable
From 172.31.254.1 icmp_seq=6 Destination Host Unreachable
From 172.31.254.1 icmp_seq=7 Destination Host Unreachable
From 172.31.254.1 icmp_seq=8 Destination Host Unreachable

--- 172.31.254.4 ping statistics ---
10 packets transmitted, 0 received, +8 errors, 100% packet loss, time 9224ms
pipe 4
+ true
+ set +x
--- [TEST 3 - AFTER] dsa tagging: mxl862xx ---
eth-mac-FramesTransmittedOK: 21
eth-mac-FramesReceivedOK: 783
eth-mac-FrameCheckSequenceErrors: 0
eth-mac-AlignmentErrors: 0
eth-mac-BroadcastFramesXmittedOK: 3
eth-mac-MulticastFramesReceivedOK: 37
eth-mac-BroadcastFramesReceivedOK: 746
eth-mac-FrameTooLongErrors: 0
--- [TEST 3 - AFTER] ethtool -S end2 (switch port 9) ---
     tx_packets: 11368
     rx_packets: 804
     s00_p09_TxAcmDroppedPkts: 0
     s00_p09_RxFilteredPkts: 0
     s00_p09_RxExtendedVlanDiscardPkt: 0
     s00_p09_MtuExceedDiscardPkts: 0
     s00_p09_RxBadBytes: 0
--- [TEST 3 - AFTER] ip -s -s link show lan2 ---
8: lan2@end2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 16:d2:22:47:9c:5b brd ff:ff:ff:ff:ff:ff
    RX:  bytes packets errors dropped  missed   mcast           
         64606     783      0       0       0      37 
    RX errors:  length    crc   frame    fifo overrun
                     0      0       0       0       0 
    TX:  bytes packets errors dropped carrier collsns           
          6806      21      0      30       0       0 
    TX errors: aborted   fifo  window heartbt transns
                     0      0       0       0      11 

==================================================================
=== CLEANUP: RESTORING ORIGINAL NETWORK CONFIG
==================================================================
+ ip addr del 172.31.254.1/28 dev lan2
+ ip link set lan1 down
+ ip link set lan2 down
+ ip link set lan3 down
+ ip link set lan4 down
+ ip link set end2 down
+ echo mxl862xx-8021q
+ tee /sys/class/net/end2/dsa/tagging
+ ip link set end2 up
+ nmcli device set lan1 managed yes
+ nmcli device set lan2 managed yes
+ nmcli device set lan3 managed yes
+ nmcli device set lan4 managed yes
+ ip link set lan1 master br0
+ ip link set lan2 master br0
+ ip link set lan1 up
+ ip link set lan2 up
+ ip link set lan3 up
+ ip link set lan4 up
+ ip addr add 172.31.254.1/28 dev br0
+ set +x

Done! Full report is saved into /tmp/mxl_forum_report.txt

What could cause MxL86252 on this specific BPI-R4 Pro 8X board to drop all frames between end2 (port@9) and user ports (lan1–lan4) across stock OpenWrt, frank-w, and rmandrad kernels? Could it be a hardware defect on the GMAC2_TX differential pair (so the switch SerDes RX never locks onto valid Ethernet preambles from end2, hence s00_p09_RxBadBytes: 0 because no valid SFD is ever detected)?

Thanks, these logs settle a lot. Your reading is right: FramesTransmittedOK on lan2 stays flat while end2 TX keeps climbing, so CPU-originated frames never reach lan2’s MAC. All three tests (bridged, standalone, native tagger) fail the same way, which rules out the bridge setup and the 8021q VLAN rules. The switch→CPU direction is fine (lan2 RX and end2 RX go up together), so the problem is one-directional.

For comparison, my R4 Pro on the same board variant runs the same kernel and the same port@9 config (10gbase-r + fixed-link, mxl862xx-8021q). CPU->lan1 TX works there (FramesTransmittedOK ~3M). So it doesn’t look like a driver logic bug.

A dead or marginal GMAC2 TX lane is a reasonable hypothesis, but it isn’t proven yet. We can’t see port 9’s own received-frames counter (the CPU port only shows those 5 s00_p09_* counters), so “nothing arrives at port 9” is inferred, not measured. On 10GBASE-R the receiver needs 64b/66b block lock before it decodes anything, so a bad lane would leave every counter at zero, which matches what you see.

Three tests would separate the explanations:

  1. Where did the 21 boot-time frames come from? If U-Boot has networking, try ping from U-Boot on lan2. If U-Boot can transmit through the switch, the TX pair physically works and the problem is in how Linux brings up the SerDes. That would be a different conversation.
  2. Run the CPU link at 2.5G. Set both ends to 2500base-x:
    &gmac2 {
        phy-mode = "2500base-x";
        fixed-link { speed = <2500>; full-duplex; pause; };
    };
    /* switch16 port@9 */
        phy-mode = "2500base-x";
        fixed-link { speed = <2500>; full-duplex; };
    
    This uses a different PCS on the MT7988 side over the same physical pair. If it works at 2.5G but not at 10G, the signal on that pair is too weak for 10G. If it’s dead at both speeds, a broken lane is much more likely.
  3. Do a full power-off, not just a reboot, then post dmesg | grep -iE 'mxl|end2|phylink', so we can compare link-up messages on both sides of the CPU link. Please include the MxL firmware/revision lines; I’ll post mine.

If the 2.5G test also fails and U-Boot can’t transmit either, I’d agree it points to the board. But as i said, i don’t see this issue on my end… which u-boot you are using is that Frank’s?

1 Like

can you share “during early boot before the Linux DSA driver initialized the switch” ? I am guessing is not u-boot if so share the dmesg of those

1 Like

Thank you for those three tests — I ran all three of them, and the result is completely conclusive: this is a hardware fault on my board’s GMAC2_TX differential pair (MT7988A → MxL86252).

Here are the exact results for each test:

1. U-Boot ping test (stock factory U-Boot)

I am using the factory Sinovoip/OpenWrt U-Boot (U-Boot 2024.10-OpenWrt-unknown, Jun 17 2025). With the laptop (172.31.254.4) connected directly to lan2:

MT7988> version
U-Boot 2024.10-OpenWrt-unknown (Jun 17 2025 - 03:09:13 +0000)

MT7988> setenv ipaddr 172.31.254.1
MT7988> setenv netmask 255.255.255.0
MT7988> ping 172.31.254.4
Using ethernet@15100000 device
ping failed; host 172.31.254.4 is not alive

2. CPU link at 2500base-x (different PCS, lower baud rate over the same physical pair)

I switched both &gmac2 and &switch16 port@9 to phy-mode = "2500base-x" with speed = <2500>:

[   10.998746] mtk_soc_eth 15100000.ethernet end2: renamed from eth2
[   17.599590] mtk_soc_eth 15100000.ethernet end2: configuring for fixed/2500base-x link mode
[   17.600288] mtk_soc_eth 15100000.ethernet end2: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   18.448130] mxl862xx mdio-bus:10: switch ready after 2648ms, firmware 1.0.85 (build 85)
[   19.226316] mxl862xx mdio-bus:10: configuring for fixed/2500base-x link mode
[   19.378730] mxl862xx mdio-bus:10: Link is Up - 2.5Gbps/Full - flow control off

Even at 2.5G (2500base-x), ping 172.31.254.4 still has 100% packet loss (eth-mac-FramesTransmittedOK remains 0).

3. Full cold power-off (10gbase-r) + dmesg

After a full power cycle on 10gbase-r, eth-mac-FramesTransmittedOK on lan2 is 0 while eth-mac-FramesReceivedOK increments normally (41):

[   17.774597] mtk_soc_eth 15100000.ethernet end2: configuring for fixed/10gbase-r link mode
[   17.799570] mtk_soc_eth 15100000.ethernet end2: Link is Up - 10Gbps/Full - flow control rx/tx
[   18.834823] mxl862xx mdio-bus:10: switch ready after 2648ms, firmware 1.0.85 (build 85)
[   19.615094] mxl862xx mdio-bus:10: configuring for fixed/10gbase-r link mode
[   19.727591] mxl862xx mdio-bus:10: Link is Up - 10Gbps/Full - flow control off
[   19.753179] mxl862xx mdio-bus:10 lan1 (uninitialized): PHY [mdio-bus:10-mii:00] driver [MaxLinear Ethernet MxL86252] (irq=POLL)
[   19.778976] mxl862xx mdio-bus:10 lan2 (uninitialized): PHY [mdio-bus:10-mii:01] driver [MaxLinear Ethernet MxL86252] (irq=POLL)
[   19.803344] mxl862xx mdio-bus:10 lan3 (uninitialized): PHY [mdio-bus:10-mii:02] driver [MaxLinear Ethernet MxL86252] (irq=POLL)
[   19.825923] mxl862xx mdio-bus:10 lan4 (uninitialized): PHY [mdio-bus:10-mii:03] driver [MaxLinear Ethernet MxL86252] (irq=POLL)

Everything points unambiguously to a dead/defective GMAC2_TXP/N differential pair (likely a missing/bad AC-coupling capacitor or BGA solder joint) between MT7988A and MxL86252 on my board. I will request an RMA replacement from the vendor. Thank you again for all your help narrowing this down!

2 Likes

Hi! Here is the early boot dmesg log covering the MAC/PHY bring-up (mtk_soc_eth, Aeonsemi) up to the point where both DSA switches (mxl862xx and mt7530) finish initialization:

[    4.984925] mtk_soc_eth 15100000.ethernet: generated random MAC address e6:33:38:bc:04:4e
[    4.985050] mtk_soc_eth 15100000.ethernet: generated random MAC address ae:fb:74:c8:d9:cf
[    4.985082] mtk_soc_eth 15100000.ethernet: generated random MAC address 22:e6:b9:61:56:47
[    5.564871] mdio_bus mdio-bus:18: Aeonsemi recovery: stale cached PCS ID refreshed to 75009410
[    7.899229] Aeonsemi AS21010PB1 mdio-bus:18: Firmware Version: 1.9.1
[    8.540844] mdio_bus mdio-bus:1c: Aeonsemi recovery: stale cached PCS ID refreshed to 75009410
[   10.881417] Aeonsemi AS21010PB1 mdio-bus:1c: Firmware Version: 1.9.1
[   10.932780] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc082740000, irq 122
[   10.933687] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc082740000, irq 122
[   10.934587] mtk_soc_eth 15100000.ethernet eth2: mediatek frame engine at 0xffffffc082740000, irq 122
[   10.979695] mtk_soc_eth 15100000.ethernet end0: renamed from eth0
[   10.993618] mtk_soc_eth 15100000.ethernet end1: renamed from eth1
[   10.998746] mtk_soc_eth 15100000.ethernet end2: renamed from eth2
[   17.566460] mtk_soc_eth 15100000.ethernet end0: configuring for fixed/internal link mode
[   17.567173] mtk_soc_eth 15100000.ethernet end0: Link is Up - 10Gbps/Full - flow control rx/tx
[   17.589022] mtk_soc_eth 15100000.ethernet end1: PHY [mdio-bus:1c] driver [Aeonsemi AS21010PB1] (irq=POLL)
[   17.589116] mtk_soc_eth 15100000.ethernet end1: configuring for phy/usxgmii link mode
[   17.599590] mtk_soc_eth 15100000.ethernet end2: configuring for fixed/2500base-x link mode
[   17.600288] mtk_soc_eth 15100000.ethernet end2: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   17.677764] mtk_soc_eth 15100000.ethernet end0: Link is Down
[   17.682770] mtk_soc_eth 15100000.ethernet end0: configuring for fixed/internal link mode
[   17.682941] mtk_soc_eth 15100000.ethernet end0: Link is Up - 10Gbps/Full - flow control rx/tx
[   18.448130] mxl862xx mdio-bus:10: switch ready after 2648ms, firmware 1.0.85 (build 85)
[   19.226316] mxl862xx mdio-bus:10: configuring for fixed/2500base-x link mode
[   19.378730] mxl862xx mdio-bus:10: Link is Up - 2.5Gbps/Full - flow control off
[   19.403007] mxl862xx mdio-bus:10 lan1 (uninitialized): PHY [mdio-bus:10-mii:00] driver [MaxLinear Ethernet MxL86252] (irq=POLL)
[   19.427928] mxl862xx mdio-bus:10 lan2 (uninitialized): PHY [mdio-bus:10-mii:01] driver [MaxLinear Ethernet MxL86252] (irq=POLL)
[   19.450243] mxl862xx mdio-bus:10 lan3 (uninitialized): PHY [mdio-bus:10-mii:02] driver [MaxLinear Ethernet MxL86252] (irq=POLL)
[   19.474053] mxl862xx mdio-bus:10 lan4 (uninitialized): PHY [mdio-bus:10-mii:03] driver [MaxLinear Ethernet MxL86252] (irq=POLL)
[   19.497916] mtk_soc_eth 15100000.ethernet end2: entered promiscuous mode
[   19.498236] DSA: tree 0 setup
[   19.559490] mxl862xx mdio-bus:10 lan1: configuring for phy/internal link mode
[   19.582248] mxl862xx mdio-bus:10 lan2: configuring for phy/internal link mode
[   19.583308] mt7530-mmio 15020000.switch: configuring for fixed/internal link mode
[   19.583449] mt7530-mmio 15020000.switch: Link is Up - 10Gbps/Full - flow control rx/tx
[   19.596721] mxl862xx mdio-bus:10 lan3: configuring for phy/internal link mode
[   19.613157] mxl862xx mdio-bus:10 lan4: configuring for phy/internal link mode
[   19.615159] mt7530-mmio 15020000.switch lan5 (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7988 PHY] (irq=129)
[   19.616598] mtk_soc_eth 15100000.ethernet end0: entered promiscuous mode
[   19.616657] DSA: tree 1 setup
[   19.647327] mt7530-mmio 15020000.switch lan5: configuring for phy/internal link mode
[   19.648053] mt7530-mmio 15020000.switch lan5: Link is Up - 1Gbps/Full - flow control off
[   19.654757] mt7530-mmio 15020000.switch lan5: entered allmulticast mode
[   19.654764] mtk_soc_eth 15100000.ethernet end0: entered allmulticast mode
[   19.654988] mt7530-mmio 15020000.switch lan5: entered promiscuous mode

As you can see, mxl862xx takes ~2.6s to become ready and DSA finishes setting up tree 0 at ~19.5s (after end0/end2 are already up at ~17.6s). Before 19.5s, the switch firmware is already running in its default hardware/unmanaged forwarding state until the DSA driver takes over.

@rmandrad, As an additional confirmation: I also enabled port@13 (lan6) on the MxL86252 switch connected to the external 10G copper PHY (phy24, Aeonsemi AS21010PB1 over USXGMII).

lan6@end2 brings up the physical link (UP,LOWER_UP), completely bypassing the switch’s internal GPHYs (lan1–lan4), yet exhibits the exact same failure — zero CPU-originated TX packets ever leave the switch. This confirms beyond any doubt that the fault is specifically on the GMAC2_TX (end2 → MxL86252 port@9) differential pair on this board.

1 Like

thanks @sergey-239 . lan6 failing the same way fits, and it confirms the fault is upstream of every user port, at or before port 9’s ingress. I’d still hold off on “beyond any doubt” for the PCB pair specifically. From Linux we can’t yet tell a bad trace apart from the MT7988 TX SerDes or the MxL port 9 receiver on this particular unit, because port 9’s own receive counter isn’t exposed. Same kernel and config work on my board, so I agree it’s specific to your unit, not the driver. Unless we both missed something…

Anyhow I would ask for the board to be replaced based on the tests you have done.