OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Matthias Walther - 27.05.2021

FS#3832 - [Regression] xrx200 switch affecting AVM Fritz!Box 7362SL

The 7362sl by AVM has two gigabit ports labeled 1+2 and two fast ethernet ports labled 3+4.

They all used to work, but with OpenWrt 21.02.0 only the two gigabit ports work. Port 3+4 are dead. Linked (layer1) can be established, no layer2 or higher traffic possible.

OpenWrt 19.07.7 Kernel 4.14.221 supports ports 3 + 4
Openwrt 21.02.0-rc1 Kernel 5.4.111 ports 3 + 4 are dead

```
root@OpenWrt:~# dmesg|grep -A5 -B5 PHY
[ 0.163028] pinctrl core: initialized pinctrl subsystem
[ 0.170653] NET: Registered protocol family 16
[ 0.183980] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[ 0.198588] pinctrl-xway 1e100b10.pinmux: Init done
[ 0.205140] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28
[ 0.216895] pcie-xrx200 1d900000.pcie: failed to get the PCIe PHY
[ 0.265910] usbcore: registered new interface driver usbfs
[ 0.271499] usbcore: registered new interface driver hub
[ 0.276869] usbcore: registered new device driver usb
[ 0.282522] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 0.294467] clocksource: Switched to clocksource MIPS
– [ 0.708199] NET: Registered protocol family 10
[ 0.715876] Segment Routing with IPv6
[ 0.718218] NET: Registered protocol family 17
[ 0.722769] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 0.735555] 8021q: 802.1Q VLAN Support v1.8
[ 0.746142] pcie-xrx200 1d900000.pcie: failed to get the PCIe PHY
[ 0.859313] libphy: lantiq,xrx200-mdio: probed
[ 0.869051] net-xrx200: invalid MAC, using random
[ 0.872575] Atheros 8030 ethernet 0:00: attached PHY driver [Atheros 8030 ethernet] (mii_bus:phy_addr=0:00, irq=POLL)
[ 0.883256] Atheros 8030 ethernet 0:01: attached PHY driver [Atheros 8030 ethernet] (mii_bus:phy_addr=0:01, irq=POLL)
[ 0.894242] Intel XWAY PHY11G (xRX v1.2 integrated) 0:11: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:11, irq=POLL)
[ 0.907971] Intel XWAY PHY11G (xRX v1.2 integrated) 0:13: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:13, irq=POLL)
[ 1.046546] PCI host bridge /fpi@10000000/pcie@d900000 ranges:
[ 1.051221] PCI host bridge to bus 0000:00
[ 1.055083] pci_bus 0000:00: root bus resource [mem 0x1c000000-0x1cffffff]
[ 1.061969] pci_bus 0000:00: root bus resource [io 0x1d800000-0x1d8fffff]
[ 1.068840] pci_bus 0000:00: root bus resource [??? 0×00000000 flags 0×0]
```

Notably might be the line ”failed to get the PCIe PHY“ which does not appear in 19.07.7.

As I didn’t notice any changes regarding this particular device model, it might be a problem with the kernel driver for the switch module.

Project Manager
Hauke Mehrtens commented on 29.05.2021 10:02

Is a linkup or anything detected when you connect or disconnect the Ethernet cable?

Could you please post the output of these files from the working version and the broken version:
/sys/kernel/debug/pinctrl/pinctrl-maps
/sys/kernel/debug/pinctrl/*/pinmux-pins

Matthias Walther commented on 02.06.2021 00:21

19.07.7 (working):

root@OpenWrt:~# cat /sys/kernel/debug/pinctrl/pinctrl-maps 
Pinctrl maps:
device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group mdio
function mdio

device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io37
config 00000000
config 00040001

device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io44
config 00000000
config 00040001

device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand ale
function ebu

device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand cle
function ebu

device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand cs1
function ebu

device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand rd
function ebu

device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand rdy
function ebu

device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io21
config 00010001
config 00040001

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_di
function spi

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_do
function spi

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_clk
function spi

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_cs4
function spi

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_do
config 00040001

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_clk
config 00040001

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_cs4
config 00040001
root@OpenWrt:~# cat /sys/kernel/debug/pinctrl/*/pinmux-pins
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (io0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 1 (io1): (MUX UNCLAIMED) XWAY GPIO:463
pin 2 (io2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 3 (io3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 4 (io4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 5 (io5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 6 (io6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 7 (io7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 8 (io8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 9 (io9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 10 (io10): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_cs4
pin 11 (io11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 12 (io12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 13 (io13): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function ebu group nand ale
pin 14 (io14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 15 (io15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 16 (io16): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_di
pin 17 (io17): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_do
pin 18 (io18): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_clk
pin 19 (io19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 20 (io20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 21 (io21): (MUX UNCLAIMED) XWAY GPIO:483
pin 22 (io22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 23 (io23): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function ebu group nand cs1
pin 24 (io24): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function ebu group nand cle
pin 25 (io25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 26 (io26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 27 (io27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 28 (io28): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 29 (io29): (MUX UNCLAIMED) XWAY GPIO:491
pin 30 (io30): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 31 (io31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 32 (io32): (MUX UNCLAIMED) XWAY GPIO:494
pin 33 (io33): (MUX UNCLAIMED) XWAY GPIO:495
pin 34 (io34): (MUX UNCLAIMED) XWAY GPIO:496
pin 35 (io35): (MUX UNCLAIMED) XWAY GPIO:497
pin 36 (io36): (MUX UNCLAIMED) XWAY GPIO:498
pin 37 (io37): (MUX UNCLAIMED) XWAY GPIO:499
pin 38 (io38): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (io39): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (io40): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 41 (io41): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 42 (io42): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function mdio group mdio
pin 43 (io43): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function mdio group mdio
pin 44 (io44): (MUX UNCLAIMED) XWAY GPIO:506
pin 45 (io45): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 46 (io46): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 47 (io47): (MUX UNCLAIMED) XWAY GPIO:509
pin 48 (io48): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function ebu group nand rdy
pin 49 (io49): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function ebu group nand rd

21.02.0-rc1 (not working):

root@OpenWrt:~# cat /sys/kernel/debug/pinctrl/pinctrl-maps 
Pinctrl maps:
device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io37
config 00000000
config 00040001

device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io44
config 00000000
config 00040001

device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io21
config 00010001
config 00040001

device 14000000.flash
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand cle
function ebu

device 14000000.flash
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand ale
function ebu

device 14000000.flash
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand rd
function ebu

device 14000000.flash
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group nand cle
config 00000000
config 00010000
config 00040001

device 14000000.flash
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group nand ale
config 00000000
config 00010000
config 00040001

device 14000000.flash
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group nand rd
config 00000000
config 00010000
config 00040001

device 14000000.flash
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand rdy
function ebu

device 14000000.flash
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group nand rdy
config 00000002
config 00040000

device 14000000.flash
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand cs1
function ebu

device 14000000.flash
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group nand cs1
config 00000000
config 00010000

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_di
function spi

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_do
function spi

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_clk
function spi

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_do
config 00040001

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_clk
config 00040001

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_cs4
function spi

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_cs4
config 00040001

device 1e108000.eth
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group mdio
function mdio
root@OpenWrt:~# cat /sys/kernel/debug/pinctrl/*/pinmux-pins
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (io0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 1 (io1): (MUX UNCLAIMED) XWAY GPIO:463
pin 2 (io2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 3 (io3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 4 (io4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 5 (io5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 6 (io6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 7 (io7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 8 (io8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 9 (io9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 10 (io10): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_cs4
pin 11 (io11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 12 (io12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 13 (io13): 14000000.flash (GPIO UNCLAIMED) function ebu group nand ale
pin 14 (io14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 15 (io15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 16 (io16): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_di
pin 17 (io17): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_do
pin 18 (io18): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_clk
pin 19 (io19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 20 (io20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 21 (io21): (MUX UNCLAIMED) XWAY GPIO:483
pin 22 (io22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 23 (io23): 14000000.flash (GPIO UNCLAIMED) function ebu group nand cs1
pin 24 (io24): 14000000.flash (GPIO UNCLAIMED) function ebu group nand cle
pin 25 (io25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 26 (io26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 27 (io27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 28 (io28): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 29 (io29): (MUX UNCLAIMED) XWAY GPIO:491
pin 30 (io30): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 31 (io31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 32 (io32): (MUX UNCLAIMED) XWAY GPIO:494
pin 33 (io33): (MUX UNCLAIMED) XWAY GPIO:495
pin 34 (io34): (MUX UNCLAIMED) XWAY GPIO:496
pin 35 (io35): (MUX UNCLAIMED) XWAY GPIO:497
pin 36 (io36): (MUX UNCLAIMED) XWAY GPIO:498
pin 37 (io37): (MUX UNCLAIMED) XWAY GPIO:499
pin 38 (io38): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (io39): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (io40): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 41 (io41): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 42 (io42): 1e108000.eth (GPIO UNCLAIMED) function mdio group mdio
pin 43 (io43): 1e108000.eth (GPIO UNCLAIMED) function mdio group mdio
pin 44 (io44): (MUX UNCLAIMED) XWAY GPIO:506
pin 45 (io45): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 46 (io46): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 47 (io47): (MUX UNCLAIMED) XWAY GPIO:509
pin 48 (io48): 14000000.flash (GPIO UNCLAIMED) function ebu group nand rdy
pin 49 (io49): 14000000.flash (GPIO UNCLAIMED) function ebu group nand rd

I also looked into the git history. Maybe this commit has something to do with the regression:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=f8ea7c53fd227a9c21f0ca45a2c3345312ea54b5

Matthias Walther commented on 02.06.2021 07:48

Oh, just saw, forgot to answer your question: The physical link (layer-1) is there. If I connect port 3 or 4 to a switch, it shows me 100 Mbit/s.

Stefan Kleeschulte commented on 23.12.2021 01:12

I can add this information: When I connect a 100baseT-only device to LAN port 3 or 4, everything works as expected. When I connect a 1000baseT capable device, that device's ethernet port shows it is working in 100baseT mode; however, the port status on page /cgi-bin/luci/admin/network/switch shows "1000baseT full-duplex".

Is anyone working on this issue? What would be the next step to do?

Project Manager
Hauke Mehrtens commented on 27.12.2021 22:23

Is the traffic working like expected and the only problem you see is that the wrong mode, "1000baseT full-duplex" instead of "100baseT full-duplex" is shown in LuCI?

Could you please provide the output of "ethtool <interface name>" for both cases and the output of this command: "ubus call network.device status".

Martinius commented on 30.12.2021 22:40

Hi I can confirm this behavior. The ports are not working, only the first and second ethernet port are working. Here is also a link to a thread were other users confirm that after the upgrade the ports appear to be dead.

https://forum.openwrt.org/t/fritzbox-7362-sl-openwrt-port/28187/38

If it helps my output for "ubus call network.device status" is:

        "br-lan": {
                "external": false,
                "present": true,
                "type": "bridge",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "bridge-members": [
                        "eth0"
                ],
                "mtu": 1500,
                "mtu6": 1500,
                "macaddr": "2e:b1:c8:03:5e:d8",
                "txqueuelen": 1000,
                "ipv6": true,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": true,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 41710,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 174371804,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 1414506,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 24,
                        "tx_aborted_errors": 0,
                        "tx_packets": 2393192,
                        "rx_errors": 0,
                        "tx_bytes": 2941462075,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
        "eth0": {
                "external": false,
                "present": true,
                "type": "Network device",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "mtu": 1500,
                "mtu6": 1500,
                "macaddr": "2e:b1:c8:03:5e:d8",
                "txqueuelen": 1000,
                "ipv6": false,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": true,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 0,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 210041988,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 1334468,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 0,
                        "tx_aborted_errors": 0,
                        "tx_packets": 2264175,
                        "rx_errors": 0,
                        "tx_bytes": 2908567814,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
        "eth0.1": {
                "external": false,
                "present": true,
                "type": "VLAN",
                "up": false,
                "carrier": false,
                "auth_status": false,
                "statistics": {

                }
        },
        "lo": {
                "external": false,
                "present": true,
                "type": "Network device",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "mtu": 65536,
                "mtu6": 65536,
                "macaddr": "00:00:00:00:00:00",
                "txqueuelen": 1000,
                "ipv6": true,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": false,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 0,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 57824,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 683,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 0,
                        "tx_aborted_errors": 0,
                        "tx_packets": 683,
                        "rx_errors": 0,
                        "tx_bytes": 57824,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
Stefan Kleeschulte commented on 01.01.2022 16:38

To clarify: LAN ports 3 and 4 only work correctly, when not connected or connected to a 100baseT-only device. In this case, the port status on page /cgi-bin/luci/admin/network/switch is correct and network connectivity works as expected.

As soon as at least one 1000baseT-capable device is connected to port 3 or 4, both ports (3 and 4) stop working.

Stefan Kleeschulte commented on 01.01.2022 16:56

Here are the outputs of "ethtool <interface name>" and "ubus call network.device status" for both cases:

With a 100baseT-only device connected to LAN port 3 and port 4 unconnected:

root@openwrt:~# ethtool br-lan
Settings for br-lan:
        Link detected: yes
root@openwrt:~# ethtool eth0
Settings for eth0:
No data available
root@openwrt:~# ethtool eth0.1
Settings for eth0.1:
        Link detected: yes
root@openwrt:~# ubus call network.device status
{
        "br-lan": {
                "external": false,
                "present": true,
                "type": "bridge",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "bridge-members": [
                        "eth0.1",
                        "wlan0",
                        "wlan0-1"
                ],
                "mtu": 1500,
                "mtu6": 1500,
                "macaddr": "5c:49:79:...",
                "txqueuelen": 1000,
                "ipv6": true,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": true,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 565756,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 5267718406,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 17636388,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 840211,
                        "tx_aborted_errors": 0,
                        "tx_packets": 16481506,
                        "rx_errors": 0,
                        "tx_bytes": 5409463939,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
        "eth0": {
                "external": false,
                "present": true,
                "type": "Network device",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "mtu": 1500,
                "mtu6": 1500,
                "macaddr": "7a:80:9a:...",
                "txqueuelen": 1000,
                "ipv6": true,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": true,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 0,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 1047296502,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 46316538,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 8,
                        "tx_aborted_errors": 0,
                        "tx_packets": 31679152,
                        "rx_errors": 0,
                        "tx_bytes": 107964942,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
        "eth0.1": {
                "external": false,
                "present": true,
                "type": "VLAN",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "mtu": 1500,
                "mtu6": 1500,
                "macaddr": "5c:49:79:...",
                "txqueuelen": 1000,
                "ipv6": false,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": true,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 679482,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 38497760900,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 46316450,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 27989,
                        "tx_aborted_errors": 0,
                        "tx_packets": 31679199,
                        "rx_errors": 0,
                        "tx_bytes": 8437092062,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
        "lo": {
                "external": false,
                "present": true,
                "type": "Network device",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "mtu": 65536,
                "mtu6": 65536,
                "macaddr": "00:00:00:00:00:00",
                "txqueuelen": 1000,
                "ipv6": true,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": false,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 0,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 557116,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 5818,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 0,
                        "tx_aborted_errors": 0,
                        "tx_packets": 5818,
                        "rx_errors": 0,
                        "tx_bytes": 557116,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
        "vxlan_a": ...,
        "wg_a": ...,
        "wg_b": ...,
        "wlan0": ...,
        "wlan0-1": ...
}

With a 1000baseT-capable device connected to LAN port 3 and port 4 unconnected:

root@openwrt:~# ethtool br-lan
Settings for br-lan:
        Link detected: yes
root@openwrt:~# ethtool eth0
Settings for eth0:
No data available
root@openwrt:~# ethtool eth0.1
Settings for eth0.1:
        Link detected: yes
root@openwrt:~# ubus call network.device status
{
        "br-lan": {
                "external": false,
                "present": true,
                "type": "bridge",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "bridge-members": [
                        "eth0.1",
                        "wlan0",
                        "wlan0-1"
                ],
                "mtu": 1500,
                "mtu6": 1500,
                "macaddr": "5c:49:79:...",
                "txqueuelen": 1000,
                "ipv6": true,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": true,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 566263,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 5269387994,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 17643701,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 840619,
                        "tx_aborted_errors": 0,
                        "tx_packets": 16488245,
                        "rx_errors": 0,
                        "tx_bytes": 5411611091,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
        "eth0": {
                "external": false,
                "present": true,
                "type": "Network device",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "mtu": 1500,
                "mtu6": 1500,
                "macaddr": "7a:80:9a:...",
                "txqueuelen": 1000,
                "ipv6": true,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": true,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 0,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 1049305323,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 46324740,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 8,
                        "tx_aborted_errors": 0,
                        "tx_packets": 31686608,
                        "rx_errors": 0,
                        "tx_bytes": 110321443,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
        "eth0.1": {
                "external": false,
                "present": true,
                "type": "VLAN",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "mtu": 1500,
                "mtu6": 1500,
                "macaddr": "5c:49:79:...",
                "txqueuelen": 1000,
                "ipv6": false,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": true,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 680260,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 38499556469,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 46324652,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 28003,
                        "tx_aborted_errors": 0,
                        "tx_packets": 31686655,
                        "rx_errors": 0,
                        "tx_bytes": 8439385553,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
        "lo": {
                "external": false,
                "present": true,
                "type": "Network device",
                "up": true,
                "carrier": true,
                "auth_status": false,
                "mtu": 65536,
                "mtu6": 65536,
                "macaddr": "00:00:00:00:00:00",
                "txqueuelen": 1000,
                "ipv6": true,
                "ip6segmentrouting": false,
                "promisc": false,
                "rpfilter": 0,
                "acceptlocal": false,
                "igmpversion": 0,
                "mldversion": 0,
                "neigh4reachabletime": 30000,
                "neigh6reachabletime": 30000,
                "neigh4gcstaletime": 60,
                "neigh6gcstaletime": 60,
                "neigh4locktime": 100,
                "dadtransmits": 1,
                "multicast": false,
                "sendredirects": true,
                "drop_v4_unicast_in_l2_multicast": false,
                "drop_v6_unicast_in_l2_multicast": false,
                "drop_gratuitous_arp": false,
                "drop_unsolicited_na": false,
                "arp_accept": false,
                "statistics": {
                        "collisions": 0,
                        "rx_frame_errors": 0,
                        "tx_compressed": 0,
                        "multicast": 0,
                        "rx_length_errors": 0,
                        "tx_dropped": 0,
                        "rx_bytes": 586016,
                        "rx_missed_errors": 0,
                        "tx_errors": 0,
                        "rx_compressed": 0,
                        "rx_over_errors": 0,
                        "tx_fifo_errors": 0,
                        "rx_crc_errors": 0,
                        "rx_packets": 6155,
                        "tx_heartbeat_errors": 0,
                        "rx_dropped": 0,
                        "tx_aborted_errors": 0,
                        "tx_packets": 6155,
                        "rx_errors": 0,
                        "tx_bytes": 586016,
                        "tx_window_errors": 0,
                        "rx_fifo_errors": 0,
                        "tx_carrier_errors": 0
                }
        },
        "vxlan_a": ...,
        "wg_a": ...,
        "wg_b": ...,
        "wlan0": ...,
        "wlan0-1": ...
}
nicefile commented on 02.01.2022 20:07

some tests on ​FB7362

OpenWrt SNAPSHOT, r18460-def9565be6
doesnt even detect link

OpenWrt SNAPSHOT, r17180-089c2bb217
link is up and alive for ~30s but no real traffic possible

root@OpenWrt:~# logread |grep lan4
Wed Jul 21 15:48:45 2021 kern.info kernel: [ 1.495737] gswip 1e108000.switch lan4 (uninitialized): PHY [1e108000.switch-mii:01] driver [Atheros 8030 ethernet]
Wed Jul 21 15:49:10 2021 kern.info kernel: [ 48.364259] gswip 1e108000.switch lan4: configuring for phy/rmii link mode
Wed Jul 21 15:49:10 2021 kern.info kernel: [ 48.372887] 8021q: adding VLAN 0 to HW filter on device lan4
Wed Jul 21 15:49:10 2021 kern.info kernel: [ 48.393889] br-lan: port 4(lan4) entered blocking state
Wed Jul 21 15:49:10 2021 kern.info kernel: [ 48.397682] br-lan: port 4(lan4) entered disabled state
Wed Jul 21 15:49:10 2021 kern.info kernel: [ 48.433289] device lan4 entered promiscuous mode
Wed Jul 21 15:52:44 2021 kern.info kernel: [ 263.053590] gswip 1e108000.switch lan4: Link is Up - 100Mbps/Full - flow control rx/tx
Wed Jul 21 15:52:44 2021 kern.info kernel: [ 263.060120] br-lan: port 4(lan4) entered blocking state
Wed Jul 21 15:52:44 2021 kern.info kernel: [ 263.065382] br-lan: port 4(lan4) entered forwarding state
Wed Jul 21 15:52:44 2021 daemon.notice netifd: Network device 'lan4' link is up
Wed Jul 21 15:53:17 2021 kern.info kernel: [ 295.293562] gswip 1e108000.switch lan4: Link is Down
Wed Jul 21 15:53:17 2021 kern.info kernel: [ 295.297312] br-lan: port 4(lan4) entered disabled state
Wed Jul 21 15:53:17 2021 daemon.notice netifd: Network device 'lan4' link is down

Martinius commented on 14.01.2022 15:39

Could we mark this as confirmed?

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing