Ubiquiti Edgerouter 10X - ER-10X

Eth5 port works under EdgeOS.

Back under OpenWrt
When connected to Port 9:

        link: port:4 link:up speed:1000baseT full-duplex txflow rxflow auto
        link: port:6 link:up speed:1000baseT full-duplex txflow rxflow

Plugged into Port 6:

        link: port:1 link:up speed:1000baseT full-duplex txflow rxflow
        link: port:6 link:up speed:1000baseT full-duplex txflow rxflow

Port 5 is still dead (maybe not a port0 define somewhere?)

in the 02-network:

        ubnt,edgerouter-10x)
                ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4" "eth0"
                ucidef_add_switch "switch0" "0:lan" "1:lan" "2:lan" "3:lan" "4:lan" "6u@eth5"
                ;;

Run swconfig dev switch0 show again. Are VLAN 2~8 still there?

This is with a cable in eth0 (WAN) and eth6 (rtl8367rb).

When plugged into eth6 (port1), eth7 (port2), eth8 (port3), eth9 (port4), it's fine.. eth5 (port0?) is completely dead. It doesn't even recognize a cable is plugged in (showing Network Cable Unplugged in the Win10 machine)

root@OpenWrt:/# swconfig dev switch0 show
Global attributes:
        enable_vlan: 1
        enable_vlan4k: 0
        max_length: 1
Port 0:
        mib: Port 0 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 1
        link: port:0 link:down
Port 1:
        mib: Port 1 MIB counters
ifInOctets                          : 2478074
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 20
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 12912
etherStatsDropEvents                : 20
ifInMulticastPkts                   : 918
ifInBroadcastPkts                   : 187
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 24282132
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 11714
etherStatsPkts65to127Octets         : 10389
etherStatsPkts128to255Octets        : 2007
etherStatsPkts256to511Octets        : 1126
etherStatsPkts512to1023Octets       : 1262
etherStatsPkts1024to1518Octets      : 13986
ifOutOctets                         : 21804058
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 26425
ifOutMulticastPkts                  : 41
ifOutBroadcastPkts                  : 1
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 19
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 20
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 26
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 2
        link: port:1 link:up speed:1000baseT full-duplex txflow rxflow auto
Port 2:
        mib: Port 2 MIB counters
ifInOctets                          : 157060
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 155
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 978
ifInBroadcastPkts                   : 200
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 234112
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 181
etherStatsPkts65to127Octets         : 1105
etherStatsPkts128to255Octets        : 112
etherStatsPkts256to511Octets        : 37
etherStatsPkts512to1023Octets       : 26
etherStatsPkts1024to1518Octets      : 49
ifOutOctets                         : 77052
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 160
ifOutMulticastPkts                  : 12
ifOutBroadcastPkts                  : 5
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 49
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 65
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 8
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 3
        link: port:2 link:down
Port 3:
        mib: Port 3 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 4
        link: port:3 link:down
Port 4:
        mib: Port 4 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 5
        link: port:4 link:down
Port 5:
        mib: Port 5 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 6
        link: port:5 link:down
Port 6:
        mib: Port 6 MIB counters
ifInOctets                          : 21887453
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 26613
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 59
ifInBroadcastPkts                   : 6
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 24523425
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 11883
etherStatsPkts65to127Octets         : 11505
etherStatsPkts128to255Octets        : 2133
etherStatsPkts256to511Octets        : 1169
etherStatsPkts512to1023Octets       : 1289
etherStatsPkts1024to1518Octets      : 14036
ifOutOctets                         : 2635972
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 2
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 28
ifOutUcastPkts                      : 13072
ifOutMulticastPkts                  : 1878
ifOutBroadcastPkts                  : 387
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 37
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 68
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 85
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 7
        link: port:6 link:up speed:1000baseT full-duplex txflow rxflow
Port 7:
        mib: Port 7 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 8
        link: port:7 link:down
VLAN 1:
        info: VLAN 1: Ports: '06', members=0041, untag=0041, fid=0
        ports: 0 6
VLAN 2:
        info: VLAN 2: Ports: '16', members=0042, untag=0042, fid=0
        ports: 1 6
VLAN 3:
        info: VLAN 3: Ports: '26', members=0044, untag=0044, fid=0
        ports: 2 6
VLAN 4:
        info: VLAN 4: Ports: '36', members=0048, untag=0048, fid=0
        ports: 3 6
VLAN 5:
        info: VLAN 5: Ports: '46', members=0050, untag=0050, fid=0
        ports: 4 6
VLAN 6:
        info: VLAN 6: Ports: '56', members=0060, untag=0060, fid=0
        ports: 5 6
VLAN 7:
        info: VLAN 7: Ports: '01234567', members=00ff, untag=00ff, fid=0
        ports: 0 1 2 3 4 5 6 7
VLAN 8:
        info: VLAN 8: Ports: '67', members=00c0, untag=00c0, fid=0
        ports: 6 7
root@OpenWrt:/#

Looks like it is not configured properly. Run uci show network to check the switch configuration.

Here is the uci network show and swconfig dev switch0 show

network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.packet_steering='1'
network.globals.ula_prefix='fdfa:679b:c878::/48'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth1 eth2 eth3 eth4 eth5'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan=interface
network.wan.ifname='eth0'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.ifname='eth0'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='0 1 2 3 4 6'
root@OpenWrt:/# swconfig dev switch0 show
Global attributes:
        enable_vlan: 1
        enable_vlan4k: 0
        max_length: 1
Port 0:
        mib: Port 0 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 1
        link: port:0 link:down
Port 1:
        mib: Port 1 MIB counters
ifInOctets                          : 388930
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 786
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 1566
ifInBroadcastPkts                   : 358
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 690901
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 512
etherStatsPkts65to127Octets         : 2333
etherStatsPkts128to255Octets        : 266
etherStatsPkts256to511Octets        : 135
etherStatsPkts512to1023Octets       : 126
etherStatsPkts1024to1518Octets      : 187
ifOutOctets                         : 301971
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 826
ifOutMulticastPkts                  : 20
ifOutBroadcastPkts                  : 3
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 53
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 55
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 13
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 2
        link: port:1 link:up speed:1000baseT full-duplex txflow rxflow auto
Port 2:
        mib: Port 2 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 3
        link: port:2 link:down
Port 3:
        mib: Port 3 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 4
        link: port:3 link:down
Port 4:
        mib: Port 4 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 5
        link: port:4 link:down
Port 5:
        mib: Port 5 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 6
        link: port:5 link:down
Port 6:
        mib: Port 6 MIB counters
ifInOctets                          : 306945
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 856
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 20
ifInBroadcastPkts                   : 3
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 695875
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 513
etherStatsPkts65to127Octets         : 2348
etherStatsPkts128to255Octets        : 274
etherStatsPkts256to511Octets        : 141
etherStatsPkts512to1023Octets       : 126
etherStatsPkts1024to1518Octets      : 187
ifOutOctets                         : 388930
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 29
ifOutUcastPkts                      : 786
ifOutMulticastPkts                  : 1566
ifOutBroadcastPkts                  : 358
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 13
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 53
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 55
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 7
        link: port:6 link:up speed:1000baseT full-duplex txflow rxflow
Port 7:
        mib: Port 7 MIB counters
ifInOctets                          : 0
dot3StatsFCSErrors                  : 0
dot3StatsSymbolErrors               : 0
dot3InPauseFrames                   : 0
dot3ControlInUnknownOpcodes         : 0
etherStatsFragments                 : 0
etherStatsJabbers                   : 0
ifInUcastPkts                       : 0
etherStatsDropEvents                : 0
ifInMulticastPkts                   : 0
ifInBroadcastPkts                   : 0
inMldChecksumError                  : 0
inIgmpChecksumError                 : 0
inMldSpecificQuery                  : 0
inMldGeneralQuery                   : 0
inIgmpSpecificQuery                 : 0
inIgmpGeneralQuery                  : 0
inMldLeaves                         : 0
inIgmpLeaves                        : 0
etherStatsOctets                    : 0
etherStatsUnderSizePkts             : 0
etherOversizeStats                  : 0
etherStatsPkts64Octets              : 0
etherStatsPkts65to127Octets         : 0
etherStatsPkts128to255Octets        : 0
etherStatsPkts256to511Octets        : 0
etherStatsPkts512to1023Octets       : 0
etherStatsPkts1024to1518Octets      : 0
ifOutOctets                         : 0
dot3StatsSingleCollisionFrames      : 0
dot3StatMultipleCollisionFrames     : 0
dot3sDeferredTransmissions          : 0
dot3StatsLateCollisions             : 0
etherStatsCollisions                : 0
dot3StatsExcessiveCollisions        : 0
dot3OutPauseFrames                  : 0
ifOutDiscards                       : 0
dot1dTpPortInDiscards               : 0
ifOutUcastPkts                      : 0
ifOutMulticastPkts                  : 0
ifOutBroadcastPkts                  : 0
outOampduPkts                       : 0
inOampduPkts                        : 0
inIgmpJoinsSuccess                  : 0
inIgmpJoinsFail                     : 0
inMldJoinsSuccess                   : 0
inMldJoinsFail                      : 0
inReportSuppressionDrop             : 0
inLeaveSuppressionDrop              : 0
outIgmpReports                      : 0
outIgmpLeaves                       : 0
outIgmpGeneralQuery                 : 0
outIgmpSpecificQuery                : 0
outMldReports                       : 0
outMldLeaves                        : 0
outMldGeneralQuery                  : 0
outMldSpecificQuery                 : 0
inKnownMulticastPkts                : 0

        pvid: 8
        link: port:7 link:down
VLAN 1:
        info: VLAN 1: Ports: '06', members=0041, untag=0041, fid=0
        ports: 0 6
VLAN 2:
        info: VLAN 2: Ports: '16', members=0042, untag=0042, fid=0
        ports: 1 6
VLAN 3:
        info: VLAN 3: Ports: '26', members=0044, untag=0044, fid=0
        ports: 2 6
VLAN 4:
        info: VLAN 4: Ports: '36', members=0048, untag=0048, fid=0
        ports: 3 6
VLAN 5:
        info: VLAN 5: Ports: '46', members=0050, untag=0050, fid=0
        ports: 4 6
VLAN 6:
        info: VLAN 6: Ports: '56', members=0060, untag=0060, fid=0
        ports: 5 6
VLAN 7:
        info: VLAN 7: Ports: '01234567', members=00ff, untag=00ff, fid=0
        ports: 0 1 2 3 4 5 6 7
VLAN 8:
        info: VLAN 8: Ports: '67', members=00c0, untag=00c0, fid=0
        ports: 6 7
root@OpenWrt:/#

Try enabling 4K VLAN:

uci set network.@switch[0].enable_vlan4k='1'
uci commit network
/etc/init.d/network restart

No change. It's just weird only that one port doesn't want to work.

There is no LAN 0?

It seems the switch configuration has no effect. VLAN 1 is not configured properly and VLAN 2~8 are probably added by the bootloader and are not cleared during swconfig reset. Port 0 is probably disabled by the bootloader for whatever reason.

That's so strange..

Do you find any errors in kernel log?

dmesg:

root@OpenWrt:/# dmesg
[    0.000000] Linux version 5.10.23 (grommish@DESKTOP-N35LRJ4) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 10.2.0 r16196+1-98d456a14e) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #0 SMP Sun Mar 14 18:11:05 2021
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Ubiquiti EdgeRouter 10X
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  [mem 0x0000000010000000-0x0000000023ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001bffffff]
[    0.000000]   node   0: [mem 0x0000000020000000-0x0000000023ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   Normal zone: 576 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15
[    0.000000] percpu: Embedded 14 pages/cpu s27120 r8192 d22032 u57344
[    0.000000] pcpu-alloc: s27120 r8192 d22032 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130496
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Writing ErrCtl register=00003e00
[    0.000000] Readback ErrCtl register=00003e00
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 507052K/524288K available (6351K kernel code, 614K rwdata, 1332K rodata, 3016K init, 235K bss, 17236K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from start_kernel+0x3d0/0x5e8 with crng_init=0
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000014] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[    0.015849] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.033723] Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
[    0.074078] pid_max: default: 32768 minimum: 301
[    0.083447] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.097857] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.116180] rcu: Hierarchical SRCU implementation.
[    0.125993] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.141529] smp: Bringing up secondary CPUs ...
[    0.151244] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.151255] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.151271] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.151353] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.178727] Synchronize counters for CPU 1: done.
[    0.241040] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.241049] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.241058] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.241107] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.273941] Synchronize counters for CPU 2: done.
[    0.334181] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.334189] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.334198] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.334251] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.361528] Synchronize counters for CPU 3: done.
[    0.421145] smp: Brought up 1 node, 4 CPUs
[    0.433679] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.453004] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.466841] pinctrl core: initialized pinctrl subsystem
[    0.479211] NET: Registered protocol family 16
[    0.503751] FPU Affinity set after 4688 emulations
[    0.514489] random: fast init done
[    0.533140] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.555192] clocksource: Switched to clocksource GIC
[    0.567236] NET: Registered protocol family 2
[    0.576907] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.593487] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.608653] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.622809] TCP: Hash tables configured (established 2048 bind 2048)
[    0.635562] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.648456] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.662530] NET: Registered protocol family 1
[    0.671111] PCI: CLS 0 bytes, default 32
[    3.007127] 4 CPUs re-calibrate udelay(lpj = 1167360)
[    3.018987] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    3.036691] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.048184] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    3.068577] bounce: pool size: 64 pages
[    3.077518] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    3.088908] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    3.100262] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    3.112296] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    3.126683] printk: console [ttyS0] disabled
[    3.135196] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    3.153116] printk: console [ttyS0] enabled
[    3.169662] printk: bootconsole [early0] disabled
[    3.190928] mt7621-nand 1e003000.nand: Using programmed access timing: 31c07388
[    3.205759] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xdc
[    3.218414] nand: Macronix MX30LF4G18AC
[    3.226053] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    3.241141] mt7621-nand 1e003000.nand: ECC strength adjusted to 4 bits
[    3.254193] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    3.268758] mt7621-nand 1e003000.nand: Using programmed access timing: 21005134
[    3.283320] Scanning device for bad blocks
[    4.788640] Bad eraseblock 1185 at 0x000009420000
[    5.468219] Bad eraseblock 1716 at 0x00000d680000
[    5.713176] Bad eraseblock 1903 at 0x00000ede0000
[    8.491567] 6 fixed-partitions partitions found on MTD device mt7621-nand
[    8.505088] Creating 6 MTD partitions on "mt7621-nand":
[    8.515505] 0x000000000000-0x000000080000 : "u-boot"
[    8.527187] 0x000000080000-0x0000000e0000 : "u-boot-env"
[    8.539424] 0x0000000e0000-0x000000140000 : "factory"
[    8.551077] 0x000000140000-0x000000440000 : "kernel1"
[    8.562901] 0x000000440000-0x000000740000 : "kernel2"
[    8.574641] 0x000000740000-0x00001fc00000 : "ubi"
[    8.590146] rtl8367b rtl8367rb: cannot find mdio bus from bus handle (yet)
[    8.605653] libphy: Fixed MDIO Bus: probed
[    8.642195] libphy: mdio: probed
[    8.649169] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[    8.665604] mtk_soc_eth 1e100000.ethernet dsa: mediatek frame engine at 0xbe100000, irq 22
[    8.687429] NET: Registered protocol family 10
[    8.697728] Segment Routing with IPv6
[    8.705172] NET: Registered protocol family 17
[    8.714368] 8021q: 802.1Q VLAN Support v1.8
[    8.724661] rtl8367b rtl8367rb: using MDIO bus 'mdio'
[    8.735747] rtl8367b rtl8367rb: RTL8367RB chip found
[   10.591995] libphy: rtl8367rb: probed
[   10.599634] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[   10.688791] libphy: dsa slave smi: probed
[   10.697230] mt7530 mdio-bus:1f eth0 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY] (irq=POLL)
[   10.717424] mt7530 mdio-bus:1f eth1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY] (irq=POLL)
[   10.737638] mt7530 mdio-bus:1f eth2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY] (irq=POLL)
[   10.757818] mt7530 mdio-bus:1f eth3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY] (irq=POLL)
[   10.777956] mt7530 mdio-bus:1f eth4 (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY] (irq=POLL)
[   10.799720] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[   10.817599] DSA: tree 0 setup
[   10.824883] UBI: auto-attach mtd5
[   10.831557] ubi0: attaching mtd5
[   10.838376] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[   15.920348] ubi0: scanning is finished
[   15.950805] ubi0: attached mtd5 (name "ubi", size 500 MiB)
[   15.961778] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   15.975475] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   15.988994] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[   16.002860] ubi0: good PEBs: 4003, bad PEBs: 3, corrupted PEBs: 0
[   16.015005] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[   16.029396] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 157515308
[   16.047418] ubi0: available PEBs: 0, total reserved PEBs: 4003, PEBs reserved for bad PEB handling: 77
[   16.065983] ubi0: background thread "ubi_bgt0d" started, PID 385
[   16.089142] Freeing unused kernel memory: 3016K
[   16.098210] This architecture does not have kernel memory protection.
[   16.111070] Run /init as init process
[   16.118364]   with arguments:
[   16.118372]     /init
[   16.118378]   with environment:
[   16.118384]     HOME=/
[   16.118389]     TERM=linux
[   16.404900] init: Console is alive
[   16.411943] init: - watchdog -
[   16.428380] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   16.446443] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   16.467493] init: - preinit -
[   16.666771] random: jshn: uninitialized urandom read (4 bytes read)
[   16.738576] random: jshn: uninitialized urandom read (4 bytes read)
[   16.847861] random: jshn: uninitialized urandom read (4 bytes read)
[   21.295782] procd: - early -
[   21.301685] procd: - watchdog -
[   21.843306] procd: - watchdog -
[   21.850041] procd: - ubus -
[   21.862591] urandom_read: 6 callbacks suppressed
[   21.862605] random: ubusd: uninitialized urandom read (4 bytes read)
[   21.910693] procd: - init -
[   22.245303] kmodloader: loading kernel modules from /etc/modules.d/*
[   22.364237] xt_time: kernel timezone is -0000
[   22.384564] urngd: v1.0.2 started.
[   22.385498] PPP generic driver version 2.4.2
[   22.401578] NET: Registered protocol family 24
[   22.454841] kmodloader: done loading kernel modules from /etc/modules.d/*
[   22.529692] random: crng init done
[   57.086636] mtk_soc_eth 1e100000.ethernet dsa: configuring for fixed/rgmii link mode
[   57.103236] mtk_soc_eth 1e100000.ethernet dsa: Link is Up - 1Gbps/Full - flow control rx/tx
[   57.120453] IPv6: ADDRCONF(NETDEV_CHANGE): dsa: link becomes ready
[   57.133970] device dsa entered promiscuous mode
[   57.143745] mt7530 mdio-bus:1f eth1: configuring for phy/gmii link mode
[   57.157625] 8021q: adding VLAN 0 to HW filter on device eth1
[   57.172840] br-lan: port 1(eth1) entered blocking state
[   57.183383] br-lan: port 1(eth1) entered disabled state
[   57.194995] device eth1 entered promiscuous mode
[   57.225933] mt7530 mdio-bus:1f eth2: configuring for phy/gmii link mode
[   57.239777] 8021q: adding VLAN 0 to HW filter on device eth2
[   57.254894] br-lan: port 2(eth2) entered blocking state
[   57.265500] br-lan: port 2(eth2) entered disabled state
[   57.277212] device eth2 entered promiscuous mode
[   57.298291] mt7530 mdio-bus:1f eth3: configuring for phy/gmii link mode
[   57.312255] 8021q: adding VLAN 0 to HW filter on device eth3
[   57.328256] br-lan: port 3(eth3) entered blocking state
[   57.338782] br-lan: port 3(eth3) entered disabled state
[   57.351198] device eth3 entered promiscuous mode
[   57.371582] mt7530 mdio-bus:1f eth4: configuring for phy/gmii link mode
[   57.385464] 8021q: adding VLAN 0 to HW filter on device eth4
[   57.401123] br-lan: port 4(eth4) entered blocking state
[   57.411678] br-lan: port 4(eth4) entered disabled state
[   57.423888] device eth4 entered promiscuous mode
[   57.445111] mt7530 mdio-bus:1f eth5: configuring for fixed/rgmii-rxid link mode
[   57.460357] 8021q: adding VLAN 0 to HW filter on device eth5
[   57.473471] mt7530 mdio-bus:1f eth5: Link is Up - 1Gbps/Full - flow control rx/tx
[   57.492919] br-lan: port 5(eth5) entered blocking state
[   57.503479] br-lan: port 5(eth5) entered disabled state
[   57.518877] device eth5 entered promiscuous mode
[   57.533525] br-lan: port 5(eth5) entered blocking state
[   57.544046] br-lan: port 5(eth5) entered forwarding state
[   57.555803] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   57.592083] mt7530 mdio-bus:1f eth0: configuring for phy/gmii link mode
[   57.606668] 8021q: adding VLAN 0 to HW filter on device eth0
[   60.679626] mt7530 mdio-bus:1f eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   60.694601] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root@OpenWrt:/#

@LGA1150 Would it be possible to use the 8366_SMI base to do DSA for the 8367RB?

There's a data sheet which might help with the current issues regarding Switch0:Port0 not working, but it's beyond my current knowledge

I'm back @LGA1150 :smiley:

Ok, so, here is where I stand at this point.

I've got the RTB8367RB switch working, except for the physical port labeled 5/Lan 1 in the switch0. Port 1 (Physical port 5) never even registeres a cable being inserted, but ONLY that port.

image

CPU (eth5) is the CPU port to connect to the MT7621

My partial dts:

/dts-v1/;

#include "mt7621_ubnt_edgerouter-x.dtsi"

/ {
        model = "Ubiquiti EdgeRouter 10X";
        compatible = "ubnt,edgerouter-10x", "mediatek,mt7621-soc";

        rtl8367rb {
                compatible = "realtek,rtl8367b", "rtl8367b";
                cpu_port = <7>;
                realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
                mii-bus = <&mdio>;
        };
};

&switch0 {
        ports {
                port@5 {
                        reg = <5>;
                        label = "eth5";
                        phy-mode = "rgmii-rxid";
                        mtd-mac-address = <&factory 0x22>;
                        mtd-mac-address-increment = <5>;

                fixed-link {
                        speed = <1000>;
                        full-duplex;
                        pause;
                        };
                };
        };
};

I've had success with setting the cpu_port = <7> to both 6 and 7.

According to the technical sheet I posted, the rtl8367rb has a gmac0 and a gmac1 port for connecting external. I know gmac0 is used by the mt7621, but there is a gmac1 defined but disabled.

Do you think it would be feasible/possible to connect thru gmac1 so i can clear the eth5 define? Or, other suggestions?

You mixed up MT7621 with RTL8367RB GMACs. Both have 2, but on MT7621, GMAC1 and the internal switch's port 5 share the same RGMII bus, and which getting connected to external depends on the TX/RX wiring. In this case it is switch port 5 <==> 8367RB extif1, and cannot be changed if there is no GPIO-controlled MUXes for that.

So if I can't change it, any idea why the physical port 5 is completely dead on the rtl? Ubiquiti obviously made it work; any suggestions on what to look into?

Device is standing in front of me. Will try to reproduce your progress next week.

What does this file do? it seem specific to the 10x

Also the er-10x has 512MB ram (and more nvram I think) is that found automatically? I ask because:

I have one of these but I haven't flashed it yet. I'm not sure how I can help.

That is a dts fragment overlay used by Ubiquity for the ER10x variant.

It's the wrong format and isn't complete.

Is what I ended up coming up with as a starter, but had issues with Port 5 that I never got fixed and ended up moving to other projects.

Be aware that the rlt8367rb wasn't recognized by the build system at the time I did my initial attempt at the 10x, and I had to physically set the value in other places in the code in order for it to be recognized.

I can say that I didn't really find the e50_e55 kernel all that helpful :frowning: Hopefully, you can get more out of it.

I'm curious if there's any progress on this?

I'm interested in using OpenWRT on my Edgerouter 10x, I'm not really a developer though, but from what I'm reading here the only limitation so far is one physical port (out of 10) not working? I'd be willing to live with that if I had to as long as the rest was working.

I'll have to see where I am in the branch, but yes, my last testing had Ports 0-4 working and 6-9 working, but Port 5 was unresponsive. Unfortunately, my attention has been elsewhere.

This is probably not the newest I have, but it is the most public at the moment, and will get you started. It's also very hacky because the RTL switch had to be hard-set to be recognized.

Hello, can I know if Openwrt is available for installing in the Edgerouter 10x, any limitations as @ve6rah was pointing. Anyone tried it?

Thank you

1 Like

I have a 10x too. Never tried installing firmware on any router, and this thread made my head spin. But if it's possible to get OpenWRT working on Edge Router I would be pleased :smiley: