Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2981 - no switch0 device on Xiaomi Mi Router 3G (and V2) #7751

Closed
openwrt-bot opened this issue Apr 8, 2020 · 6 comments
Closed

FS#2981 - no switch0 device on Xiaomi Mi Router 3G (and V2) #7751

openwrt-bot opened this issue Apr 8, 2020 · 6 comments
Labels

Comments

@openwrt-bot
Copy link

dl3it:

Apparently since kernel 5.4, the switch0 is not working correctly anymore. With a plain network config, ethernet ports are available. When using VLAN, the ports don't work anymore; even the LEDs are off.
Luci -> Network: no switch option available

root@test:/# swconfig list root@test:/#

Devices: Xioami Mi Router 3G and Xiaomi Mi Router 3G V2
Tested with both devices. Tested with plain git checkout and my own build environment (master). Always the same behaviour...

boot log:

<## Booting image at bc180000 ...
Image Name: MIPS dl3it-mi3g Linux-5.4.28
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2102189 Bytes = 2 MB
Load Address: 80001000
Entry Point: 80001000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Erasing SPI Flash...
raspi_erase: offs:30000 len:10000
.
Writing to SPI Flash...
.
done
commandline uart_en=0 factory_mode=0 mem=128m root=/dev/mtdblock9
No initrd

Transferring control to Linux (at address 80001000) ...

Giving linux memsize in MB, 128

Starting kernel ...

[ 0.000000] Linux version 5.4.28 (dl3it-mi3g@mySpace) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r12868-c948a4782b)) #0 SMP Wed Apr 8 13:05:51 2020
[ 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 Xiaomi Mi Router 3G v2
[ 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-0x0000000007ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] percpu: Embedded 14 pages/cpu s26480 r8192 d22672 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Writing ErrCtl register=000400d0
[ 0.000000] Readback ErrCtl register=000400d0
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 122004K/131072K available (5291K kernel code, 173K rwdata, 688K rodata, 1260K init, 224K bss, 9068K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 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 0x80605a08 with crng_init=0
[ 0.000000] CPU Clock: 880MHz
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[ 0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[ 0.007802] Calibrating delay loop... 583.68 BogoMIPS (lpj=1167360)
[ 0.042004] pid_max: default: 32768 minimum: 301
[ 0.046743] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.053968] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.063838] rcu: Hierarchical SRCU implementation.
[ 0.069180] smp: Bringing up secondary CPUs ...
[ 0.075309] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.075319] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.075331] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.075432] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.101936] Synchronize counters for CPU 1: done.
[ 0.142926] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.142934] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.142942] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.143000] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.166600] Synchronize counters for CPU 2: done.
[ 0.197977] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.197985] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.197994] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.198055] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.224458] Synchronize counters for CPU 3: done.
[ 0.254333] smp: Brought up 1 node, 4 CPUs
[ 0.262078] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.271788] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.278766] pinctrl core: initialized pinctrl subsystem
[ 0.285406] NET: Registered protocol family 16
[ 0.310358] random: fast init done
[ 0.318567] clocksource: Switched to clocksource GIC
[ 0.325345] NET: Registered protocol family 2
[ 0.330315] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.338626] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.346200] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.353202] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.359629] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.366103] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.373226] NET: Registered protocol family 1
[ 0.377532] PCI: CLS 0 bytes, default 32
[ 0.470541] 4 CPUs re-calibrate udelay(lpj = 1163264)
[ 0.477001] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.492348] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.498111] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.510897] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.516745] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.522559] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 0.528863] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.536441] printk: console [ttyS0] disabled
[ 0.540734] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[ 0.549720] printk: console [ttyS0] enabled
[ 0.549720] printk: console [ttyS0] enabled
[ 0.557980] printk: bootconsole [early0] disabled
[ 0.557980] printk: bootconsole [early0] disabled
[ 0.569760] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[ 0.577944] spi-nor spi0.0: gd25q128 (16384 Kbytes)
[ 0.582936] 8 fixed-partitions partitions found on MTD device spi0.0
[ 0.589281] Creating 8 MTD partitions on "spi0.0":
[ 0.594079] 0x000000000000-0x000000030000 : "u-boot"
[ 0.600206] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.606677] 0x000000040000-0x000000050000 : "Bdata"
[ 0.612654] 0x000000050000-0x000000060000 : "factory"
[ 0.618871] 0x000000060000-0x000000070000 : "crash"
[ 0.624841] 0x000000070000-0x000000080000 : "cfg_bak"
[ 0.631048] 0x000000080000-0x000000180000 : "overlay"
[ 0.637248] 0x000000180000-0x000001000000 : "firmware"
[ 0.643805] 2 uimage-fw partitions found on MTD device firmware
[ 0.649771] Creating 2 MTD partitions on "firmware":
[ 0.654751] 0x000000000000-0x0000002013ed : "kernel"
[ 0.660846] 0x0000002013ed-0x000000e80000 : "rootfs"
[ 0.666945] mtd: device 9 (rootfs) set to be root filesystem
[ 0.672703] 1 squashfs-split partitions found on MTD device rootfs
[ 0.678890] 0x0000009c0000-0x000000e80000 : "rootfs_data"
[ 0.686092] libphy: Fixed MDIO Bus: probed
[ 0.716870] libphy: mdio: probed
[ 0.720379] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[ 0.727570] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 21
[ 0.738011] mt7621-pci 1e140000.pcie: Parsing DT failed
[ 0.745444] NET: Registered protocol family 10
[ 0.751473] Segment Routing with IPv6
[ 0.755297] NET: Registered protocol family 17
[ 0.760014] 8021q: 802.1Q VLAN Support v1.8
[ 0.765966] mt7530 mdio-bus:1f: MT7530 adapts as multi-chip module
[ 1.374877] libphy: dsa slave smi: probed
[ 1.438599] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[ 1.458608] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[ 1.478606] mt7530 mdio-bus:1f wan (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[ 1.534553] mt7530 mdio-bus:1f: configuring for fixed/rgmii link mode
[ 2.150548] mt7530 mdio-bus:1f: Link is Up - 1Gbps/Full - flow control off
[ 2.226584] DSA: tree 0 setup
[ 2.229877] rt2880-pinmux pinctrl: pcie is already enabled
[ 2.235383] mt7621-pci 1e140000.pcie: Error applying setting, reverse things back
[ 2.243000] mt7621-pci-phy 1e149000.pcie-phy: PHY for 0xbe149000 (dual port = 1)
[ 2.250551] mt7621-pci-phy 1e14a000.pcie-phy: PHY for 0xbe14a000 (dual port = 0)
[ 2.357677] mt7621-pci-phy 1e149000.pcie-phy: Xtal is 40MHz
[ 2.363264] mt7621-pci-phy 1e14a000.pcie-phy: Xtal is 40MHz
[ 2.468514] mt7621-pci 1e140000.pcie: pcie2 no card, disable it (RST & CLK)
[ 2.475474] mt7621-pci 1e140000.pcie: PCIE0 enabled
[ 2.480348] mt7621-pci 1e140000.pcie: PCIE1 enabled
[ 2.485228] mt7621-pci 1e140000.pcie: PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[ 2.494703] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[ 2.501072] pci_bus 0000:00: root bus resource [io 0x1e160000-0x1e16ffff]
[ 2.507943] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 2.514813] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.520334] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[ 2.526365] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 2.532635] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[ 2.538968] pci 0000:00:00.0: supports D1
[ 2.542981] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 2.549116] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[ 2.555169] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 2.561435] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[ 2.567758] pci 0000:00:01.0: supports D1
[ 2.571771] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[ 2.579056] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[ 2.585128] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 2.591952] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 2.598749] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 2.606100] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 2.611344] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff]
[ 2.617432] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 2.624216] pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref]
[ 2.631434] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 2.638265] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[ 2.644325] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 2.650726] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[ 2.658077] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[ 2.663322] pci 0000:00:01.0: bridge window [io 0x0000-0x0fff]
[ 2.669410] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff]
[ 2.676194] pci 0000:00:01.0: bridge window [mem 0x60300000-0x603fffff pref]
[ 2.683420] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 2.690083] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 2.696693] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.703651] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 2.710254] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.717213] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 2.723998] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[ 2.731215] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[ 2.737997] pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
[ 2.745215] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[ 2.752006] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[ 2.758795] pci 0000:00:00.0: BAR 7: assigned [io 0x1e160000-0x1e160fff]
[ 2.765577] pci 0000:00:01.0: BAR 7: assigned [io 0x1e161000-0x1e161fff]
[ 2.772372] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[ 2.779687] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[ 2.786903] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.791867] pci 0000:00:00.0: bridge window [io 0x1e160000-0x1e160fff]
[ 2.798649] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 2.805429] pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref]
[ 2.812657] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[ 2.819442] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 2.824405] pci 0000:00:01.0: bridge window [io 0x1e161000-0x1e161fff]
[ 2.831188] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff]
[ 2.837966] pci 0000:00:01.0: bridge window [mem 0x60300000-0x603fffff pref]
[ 2.845884] hctosys: unable to open rtc device (rtc0)
[ 2.854774] VFS: Mounted root (squashfs filesystem) readonly on device 31:9.
[ 2.865727] Freeing unused kernel memory: 1260K
[ 2.870309] This architecture does not have kernel memory protection.
[ 2.876743] Run /sbin/init as init process
[ 3.287646] init: Console is alive
[ 3.291282] init: - watchdog -
[ 4.502146] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.642663] usbcore: registered new interface driver usbfs
[ 4.648277] usbcore: registered new interface driver hub
[ 4.653761] usbcore: registered new device driver usb
[ 4.687605] SCSI subsystem initialized
[ 4.700291] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vbus not found, using dummy regulator
[ 4.709018] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
[ 4.717973] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 4.723320] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[ 4.738712] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
[ 4.747932] xhci-mtk 1e1c0000.xhci: irq 20, io mem 0x1e1c0000
[ 4.754929] hub 1-0:1.0: USB hub found
[ 4.758772] hub 1-0:1.0: 2 ports detected
[ 4.763366] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 4.768728] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[ 4.776220] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[ 4.782759] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 4.791649] hub 2-0:1.0: USB hub found
[ 4.795501] hub 2-0:1.0: 1 port detected
[ 4.806463] usbcore: registered new interface driver usb-storage
[ 4.812799] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.830880] init: - preinit -
[ 5.556493] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[ 5.564803] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 5.573306] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 5.758344] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.857508] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.892574] random: jshn: uninitialized urandom read (4 bytes read)
[ 6.182562] mt7530 mdio-bus:1f lan1: configuring for phy/gmii link mode
[ 6.214670] 8021q: adding VLAN 0 to HW filter on device lan1
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 10.454588] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control off
[ 10.461993] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[ 10.497376] jffs2: notice: (593) jffs2_build_xattr_subsystem: complete building xattr subsystem, 12 of xdatum (10 unchecked, 2 orphan) and 14 of xref (2 dead, 0 orphan) found.
[ 10.514983] mount_root: switching to jffs2 overlay
[ 10.541029] overlayfs: upper fs does not support tmpfile.
[ 10.553353] urandom-seed: Seeding with /etc/urandom.seed
[ 10.710556] mt7530 mdio-bus:1f lan1: Link is Down
[ 10.794276] procd: - early -
[ 10.797283] procd: - watchdog -
[ 11.390731] procd: - watchdog -
[ 11.394174] procd: - ubus -
[ 11.495821] urandom_read: 5 callbacks suppressed
[ 11.495833] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.508640] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.516312] procd: - init -
Please press Enter to activate this console.
[ 11.847029] random: crng init done
[ 12.196458] kmodloader: loading kernel modules from /etc/modules.d/*
[ 12.277843] Key type dns_resolver registered
[ 12.294374] RPC: Registered named UNIX socket transport module.
[ 12.300415] RPC: Registered udp transport module.
[ 12.305113] RPC: Registered tcp transport module.
[ 12.309806] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 12.326652] tun: Universal TUN/TAP device driver, 1.6
[ 12.343512] urngd: v1.0.2 started.
[ 12.353986] NFS: Registering the id_resolver key type
[ 12.359125] Key type id_resolver registered
[ 12.363309] Key type id_legacy registered
[ 12.409615] Loading modules backported from Linux version v5.4.27-0-g585e0cc08069
[ 12.417142] Backport generated by backports.git v5.4.27-1-0-gf6e8852f
[ 12.436131] wireguard: WireGuard 1.0.20200401 loaded. See www.wireguard.com for information.
[ 12.444603] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld Jason@zx2c4.com. All Rights Reserved.
[ 12.461355] xt_time: kernel timezone is -0000
[ 12.526918] pci 0000:00:01.0: enabling device (0006 -> 0007)
[ 12.532626] mt7603e 0000:02:00.0: enabling device (0000 -> 0002)
[ 12.538852] mt7603e 0000:02:00.0: ASIC revision: 76030010
[ 13.163810] mt7603e 0000:02:00.0: Firmware Version: ap_pcie
[ 13.169406] mt7603e 0000:02:00.0: Build Time: 20160107100755
[ 13.198554] mt7603e 0000:02:00.0: firmware init done
[ 13.396912] pci 0000:00:00.0: enabling device (0006 -> 0007)
[ 13.402664] mt76x2e 0000:01:00.0: enabling device (0000 -> 0002)
[ 13.408975] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[ 13.890858] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[ 13.905566] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[ 13.911181] mt76x2e 0000:01:00.0: Build: 1
[ 13.915314] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[ 13.938667] mt76x2e 0000:01:00.0: Firmware running!
[ 13.975037] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 19.857666] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[ 20.437833] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[ 20.448515] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 20.457303] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 20.470323] br-gast: port 1(eth0.119) entered blocking state
[ 20.476130] br-gast: port 1(eth0.119) entered disabled state
[ 20.482797] device eth0.119 entered promiscuous mode
[ 20.487821] device eth0 entered promiscuous mode
[ 20.496672] br-gast: port 1(eth0.119) entered blocking state
[ 20.502388] br-gast: port 1(eth0.119) entered forwarding state
[ 20.610001] br-iot: port 1(eth0.120) entered blocking state
[ 20.615694] br-iot: port 1(eth0.120) entered disabled state
[ 20.621937] device eth0.120 entered promiscuous mode
[ 20.631403] br-iot: port 1(eth0.120) entered blocking state
[ 20.637077] br-iot: port 1(eth0.120) entered forwarding state
[ 20.756696] br-lan: port 1(eth0.117) entered blocking state
[ 20.762433] br-lan: port 1(eth0.117) entered disabled state
[ 20.769851] device eth0.117 entered promiscuous mode
[ 20.780577] br-lan: port 1(eth0.117) entered blocking state
[ 20.786261] br-lan: port 1(eth0.117) entered forwarding state
[ 20.903708] br-media: port 1(eth0.118) entered blocking state
[ 20.909789] br-media: port 1(eth0.118) entered disabled state
[ 20.916212] device eth0.118 entered promiscuous mode
[ 20.924455] br-media: port 1(eth0.118) entered blocking state
[ 20.930260] br-media: port 1(eth0.118) entered forwarding state
[ 21.021138] br-rapw: port 1(eth0.128) entered blocking state
[ 21.027159] br-rapw: port 1(eth0.128) entered disabled state
[ 21.033622] device eth0.128 entered promiscuous mode
[ 21.042842] br-rapw: port 1(eth0.128) entered blocking state
[ 21.048592] br-rapw: port 1(eth0.128) entered forwarding state
[ 24.551924] br-lan: port 2(wlan1) entered blocking state
[ 24.557320] br-lan: port 2(wlan1) entered disabled state
[ 24.563518] device wlan1 entered promiscuous mode
[ 24.640154] br-lan: port 3(wlan0) entered blocking state
[ 24.645515] br-lan: port 3(wlan0) entered disabled state
[ 24.651714] device wlan0 entered promiscuous mode
[ 24.657070] br-lan: port 3(wlan0) entered blocking state
[ 24.662453] br-lan: port 3(wlan0) entered forwarding state
[ 25.927299] br-lan: port 3(wlan0) entered disabled state
[ 25.933474] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 25.940330] br-lan: port 2(wlan1) entered blocking state
[ 25.945682] br-lan: port 2(wlan1) entered forwarding state
[ 25.961147] br-gast: port 2(wlan1-1) entered blocking state
[ 25.966815] br-gast: port 2(wlan1-1) entered disabled state
[ 25.973281] device wlan1-1 entered promiscuous mode
[ 25.980340] br-gast: port 2(wlan1-1) entered blocking state
[ 25.986013] br-gast: port 2(wlan1-1) entered forwarding state
[ 26.602100] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
[ 26.615326] br-iot: port 2(wlan1-2) entered blocking state
[ 26.620895] br-iot: port 2(wlan1-2) entered disabled state
[ 26.627238] device wlan1-2 entered promiscuous mode
[ 26.633956] br-iot: port 2(wlan1-2) entered blocking state
[ 26.639547] br-iot: port 2(wlan1-2) entered forwarding state
[ 26.654413] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 26.661418] br-lan: port 3(wlan0) entered blocking state
[ 26.666839] br-lan: port 3(wlan0) entered forwarding state
[ 26.684260] br-gast: port 3(wlan0-1) entered blocking state
[ 26.689898] br-gast: port 3(wlan0-1) entered disabled state
[ 26.696257] device wlan0-1 entered promiscuous mode
[ 26.703570] br-gast: port 3(wlan0-1) entered blocking state
[ 26.709197] br-gast: port 3(wlan0-1) entered forwarding state
[ 26.950979] br-iot: port 2(wlan1-2) entered disabled state
[ 26.958856] br-gast: port 3(wlan0-1) entered disabled state
[ 27.183822] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-2: link becomes ready
[ 27.190950] br-iot: port 2(wlan1-2) entered blocking state
[ 27.196513] br-iot: port 2(wlan1-2) entered forwarding state
[ 27.287694] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[ 27.294743] br-gast: port 3(wlan0-1) entered blocking state
[ 27.300358] br-gast: port 3(wlan0-1) entered forwarding state
[ 27.314616] br-iot: port 3(wlan0-2) entered blocking state
[ 27.320314] br-iot: port 3(wlan0-2) entered disabled state
[ 27.326962] device wlan0-2 entered promiscuous mode
[ 27.333493] br-iot: port 3(wlan0-2) entered blocking state
[ 27.339125] br-iot: port 3(wlan0-2) entered forwarding state
[ 27.763549] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-2: link becomes ready
[ 27.777443] br-rapw: port 2(wlan0-3) entered blocking state
[ 27.783263] br-rapw: port 2(wlan0-3) entered disabled state
[ 27.789570] device wlan0-3 entered promiscuous mode
[ 27.796480] br-rapw: port 2(wlan0-3) entered blocking state
[ 27.802127] br-rapw: port 2(wlan0-3) entered forwarding state
[ 27.954752] br-rapw: port 2(wlan0-3) entered disabled state
[ 28.219373] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-3: link becomes ready
[ 28.226593] br-rapw: port 2(wlan0-3) entered blocking state
[ 28.232216] br-rapw: port 2(wlan0-3) entered forwarding state

kernel modules:

root@test:/# lsmod cfg80211 258960 4 mt76x02_lib,mt7603e,mt76,mac80211 compat 608 2 mac80211,cfg80211 crc_ccitt 1696 0 crc32c_generic 1376 0 dns_resolver 4272 1 nfsv4 ext4 413584 0 fat 58208 1 vfat gpio_button_hotplug 6944 0 grace 1328 1 lockd ip_set 25744 16 xt_set,ip_set_list_set,ip_set_hash_netportnet,ip_set_hash_netport,ip_set_hash_netnet,ip_set_hash_netiface,ip_set_hash_net,ip_set_hash_mac,ip_set_hash_ipportnet,ip_set_hash_ipportip,ip_set_hash_ipport,ip_set_hash_ipmark,ip_set_hash_ip,ip_set_bitmap_port,ip_set_bitmap_ipmac,ip_set_bitmap_ip ip_set_bitmap_ip 6976 0 ip_set_bitmap_ipmac 7200 0 ip_set_bitmap_port 6176 0 ip_set_hash_ip 26176 0 ip_set_hash_ipmark 26400 0 ip_set_hash_ipport 26976 0 ip_set_hash_ipportip 28000 0 ip_set_hash_ipportnet 32576 0 ip_set_hash_mac 13632 0 ip_set_hash_net 29696 0 ip_set_hash_netiface 31264 0 ip_set_hash_netnet 32832 0 ip_set_hash_netport 31104 0 ip_set_hash_netportnet 33952 0 ip_set_list_set 7232 0 ip_tables 10848 3 iptable_nat,iptable_mangle,iptable_filter ip6_tables 10624 2 ip6table_mangle,ip6table_filter ip6_udp_tunnel 1760 1 wireguard ip6t_REJECT 1248 2 ip6table_filter 704 1 ip6table_mangle 1184 1 ipt_REJECT 1184 2 iptable_filter 672 1 iptable_mangle 896 1 iptable_nat 768 1 jbd2 56368 1 ext4 leds_gpio 3040 0 ledtrig_heartbeat 1520 0 ledtrig_usbport 2864 0 lockd 55232 1 nfs mac80211 496000 4 mt76x2e,mt76x02_lib,mt7603e,mt76 mbcache 3952 1 ext4 mt76 32096 4 mt76x2e,mt76x2_common,mt76x02_lib,mt7603e mt7603e 38080 0 mt76x02_lib 39872 2 mt76x2e,mt76x2_common mt76x2_common 11360 1 mt76x2e mt76x2e 10080 0 nf_conntrack 71280 9 xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_MASQUERADE,nf_nat,nf_flow_table,nf_conntrack_rtcache,nf_conntrack_netlink nf_conntrack_netlink 24112 0 nf_conntrack_rtcache 2400 0 nf_defrag_ipv4 1120 1 nf_conntrack nf_defrag_ipv6 4976 1 nf_conntrack nf_flow_table 14864 2 xt_FLOWOFFLOAD,nf_flow_table_hw nf_flow_table_hw 2416 1 nf_log_common 2624 2 nf_log_ipv4,nf_log_ipv6 nf_log_ipv4 3520 0 nf_log_ipv6 4192 0 nf_nat 23056 4 iptable_nat,xt_nat,xt_REDIRECT,xt_MASQUERADE nf_reject_ipv4 2112 1 ipt_REJECT nf_reject_ipv6 2464 1 ip6t_REJECT nfnetlink 4560 2 nf_conntrack_netlink,ip_set nfs 127680 1 nfsv4 nfsv4 139152 0 nls_base 5424 6 vfat,fat,nls_utf8,nls_iso8859_1,nls_cp437,usbcore nls_cp437 4416 0 nls_iso8859_1 2880 0 nls_utf8 864 0 scsi_mod 86320 2 usb_storage,sd_mod sd_mod 29104 0 sunrpc 174064 3 nfsv4,nfs,lockd swconfig 9680 0 tun 32640 0 udp_tunnel 2560 1 wireguard usb_common 2704 3 xhci_plat_hcd,xhci_hcd,usbcore usb_storage 39888 0 usbcore 140176 6 ledtrig_usbport,usb_storage,xhci_plat_hcd,xhci_pci,xhci_mtk,xhci_hcd vfat 10016 0 wireguard 85792 0 x_tables 15472 24 xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_MASQUERADE,xt_FLOWOFFLOAD,ipt_REJECT,xt_time,xt_tcpudp,xt_multiport,xt_mark,xt_mac,xt_limit,xt_comment,xt_TCPMSS,xt_LOG,iptable_mangle,iptable_filter,ip_tables,xt_set,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT xhci_hcd 113408 3 xhci_plat_hcd,xhci_pci,xhci_mtk xhci_mtk 4800 0 xhci_pci 3424 0 xhci_plat_hcd 5600 0 xt_FLOWOFFLOAD 3152 0 xt_LOG 768 0 xt_MASQUERADE 832 0 xt_REDIRECT 704 0 xt_TCPMSS 3168 2 xt_comment 512183 xt_conntrack 2432 24 xt_limit 1312 2 xt_mac 640 0 xt_mark 672 0 xt_multiport 1312 0 xt_nat 2432 0 xt_set 7328 0 xt_state 832 0 xt_tcpudp 1824 18 xt_time 1952 0 root@test:/#

Routers work fine with kernel 4.14.xxx

@openwrt-bot
Copy link
Author

dl3it:

related to #2986

with DSA introduction, the swconfig mechanism is fully broken.

@openwrt-bot
Copy link
Author

jow-:

This is expected insofar as there is no swconfig anymore. As noted above, the platform switched to DSA which attempts to abstract the switch configuration as netdevs, so in theory you should be able to simply bridge the per-port netdevs together to do vlan tagged traffic, e.g. "option ifname lan1.234" to speak VLAN 234 on ethernet port LAN 1.

If that is not working, it needs to be fixed in DSA.

Please see also http://lists.infradead.org/pipermail/openwrt-devel/2020-April/022670.html - apparently there is bugs in DSA VLAN egress handling.

@openwrt-bot
Copy link
Author

dl3it:

I can confirm the bug you linked... VLAN ids don't get transmitted by Interfaces of the type IFACEx.VID. Reception works as expected...

@openwrt-bot
Copy link
Author

n8v8R:

The correct method for VLAN management of DSA ports (switch downstream ports) is via the bridge v command [1 | 2] and which works well but is known as currently not being supported via L/UCI [3]


[1] [[https://www.linux.org/docs/man8/bridge.html]]
[2] [[https://www.kernel.org/doc/html/latest/networking/dsa/configuration.html]]
[3] [[https://github.com/openwrt/luci/issues/2798]]

@openwrt-bot
Copy link
Author

camel:

the same is on mt7621 - zbt3526 devices - switch not working, neither in luci available.

typical, if i try to use an old network config and restart it would hang. so, the whole vlan stuff seems to be not supported anymore or don't know

@981213
Copy link
Member

981213 commented Mar 7, 2022

Not a bug. swconfig is replaced by DSA.

@981213 981213 closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants