Skip to content

mediatek: mt7622: convert devices with RTL8367S switch to DSA - #24861

Merged
openwrt-bot merged 2 commits into
openwrt:mainfrom
namiltd:dsa-mediatek1
Sep 3, 2026
Merged

openwrt-bot merged 2 commits into
openwrt:mainfrom
namiltd:dsa-mediatek1

Conversation

@namiltd

@namiltd namiltd commented Aug 22, 2026 •

Copy link
Copy Markdown
Contributor

Migrates selected MT7622 boards from the legacy RTL8367S/swconfig driver to the RTL8365MB DSA driver.

Changes:

  • Adds DSA switch topologies, packages, and network configuration.
  • Updates compatibility-version migration handling.
  • Removes legacy RTL8367S/RTL8367C driver integration and sources.
  • Disable swconfig in the kernel config

Requires testing on real hardware.

Behavior change on ELECOM WRC-2533GENT: this board's SoC-side SerDes link moves from SGMII (1G) to HSGMII (2.5G) as part of the DSA conversion, unlike the Buffalo and TOTOLINK boards, which already ran their CPU-facing link at 2500base-x before this PR. The RTL8367S EXT0 <-> MT7622 gmac0 lane on this board has not been confirmed to train at HSGMII; if it does not, the board loses connectivity entirely instead of degrading to 1G. This board should be the first to receive hardware testing before merge.

@openwrt openwrt Bot added drop package Removes an existing package Makefile from the tracking tree kernel pull request/issue with Linux kernel related changes target/mediatek pull request/issue for mediatek target labels Aug 22, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit checks

  • 7f190cc7 "mediatek: mt7622: convert devices with RTL8367S switch to DSA" — the per-device bullet list omits the kernel-config change the commit also makes (CONFIG_RTL8367S_GSW=y → # CONFIG_RTL8367S_GSW is not set in mt7622/config-6.18). Also, "Remove unused gmac1" is inaccurate for the ELECOM and TOTOLINK boards: gmac1 was the second CPU port in the swconfig setup (5u@eth1), so removing it is a bandwidth change, not dead-code cleanup. See the inline note on mt7622-elecom-wrc-2533gent.dts.

The driver removal in 071d6447 is clean — no dangling references to RTL8367S_GSW, rtk-gsw or files/drivers/net/phy/rtk remain in the tree, and no mt7622 device still pulls swconfig, so disabling CONFIG_SWCONFIG for that subtarget checks out.

The main functional concern is the 05_fix-compat-version change — see that inline comment; as written it will leave all three boards demanding sysupgrade -F on every future upgrade.


Generated by Claude Code

Comment thread target/linux/mediatek/image/mt7622.mk Resolved
@namiltd
namiltd force-pushed the dsa-mediatek1 branch 4 times, most recently from 1b73fe1 to 21d8cab Compare August 23, 2026 10:11
@namiltd

namiltd commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

Ping @blogic @981213 @musashino205

@981213

981213 commented Aug 23, 2026

Copy link
Copy Markdown
Member

I have my totolink a8000ru deployed at a remote place and can't really help with testing unfortunately :(

@blogic

blogic commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

LGTM, I have none of the devices but do appreciate the effort to get rid of swconfig and make devices work with DSA ...

had a quite glance at the latest push and does look sane to me.

Thanks !

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed the two commits since 071d6447. Everything raised last round is addressed:

  • 05_fix-compat-version now bumps buffalo,wsr-2533dhp2 to 1.2 and adds elecom,wrc-2533gent / totolink,a8000ru at 1.1, matching both 05_compat-version and the DEVICE_COMPAT_VERSION values in mt7622.mk (1.2 / 1.1 / 1.1). Force-upgraded devices will now land on the right version.
  • switch_mdio: / switch_ports: labels dropped, phy-connection-type → phy-mode, reg = <1> indentation, stray blank line in the TOTOLINK regulator block, and the DEVICE_COMPAT_MESSAGE wording — all fixed. The three DSA blocks are now a byte-for-byte structural match for the in-tree rtl8365mb reference mt7981b-mercusys-mr85x-common.dtsi.
  • rgmii_via_gmac2 removal checked against the other two consumers of mt7622-buffalo-wsr.dtsi — safe, see inline.
  • Removing the three ucidef_add_switch entries from 02_network is correct: the fall-through *) case emits lan1 lan2 lan3 lan4 + wan, which is exactly the port labels the new switch nodes declare.
  • CONFIG_SWCONFIG is not set for mt7622 checks out — no swconfig remains in any mt7622 DEVICE_PACKAGES, and mt7629 (the only other mediatek subtarget still shipping it) keeps its own CONFIG_SWCONFIG=y.

Commit checks

  • 21d8cabf "mediatek: mt7622: remove RTL8367S_GSW driver and disable swconfig" — the subject scopes the change to mt7622, but the commit also deletes the target-wide files/drivers/net/phy/rtk/ tree and patches-6.18/500-gsw-rtl8367s-mt7622-support.patch, and drops the now-dead # CONFIG_RTL8367S_GSW is not set line from filogic/, mt7623/ and mt7629/config-6.18. The content is right — removing the Kconfig symbol requires cleaning every subtarget config — but mediatek: remove RTL8367S_GSW driver and disable swconfig on mt7622 would describe the blast radius more honestly.

71b5d5eb's message now matches its diff, including the kernel-config hunk and the per-board MAC layout notes.

Three inline notes, two of them nits.


Generated by Claude Code

@namiltd
namiltd force-pushed the dsa-mediatek1 branch 2 times, most recently from 878961b to f9e8f98 Compare August 23, 2026 16:35
@namiltd
namiltd marked this pull request as ready for review August 23, 2026 16:45
@namiltd

namiltd commented Aug 23, 2026

Copy link
Copy Markdown
Contributor Author

@blogic Do you remember where you got the information to create the mt7622-elecom-wrc-2533gent.dts file, or do you have the manufacturer's GNU source code? I'm looking for confirmation that HSGMII mode will work on this router.

@blogic

blogic commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

I just pushed the commit, don't recall the name of the person that did all the elecom boards, sorry .. worste case just fire and forget, if there are active consumers they will complain about breakage and can serve as fixup testers ...

@namiltd

namiltd commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor Author

TOTOLINK A8000RU tests (from https://forum.openwrt.org/t/reduce-number-of-drivers-for-rtl8367s/237681)

dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.12.40 (asim@Asus-Vivobook) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.3.0 r29818+30-9ed1278cf7) 14.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Sun Aug  3 06:06:49 2025
[    0.000000] Machine model: TOTOLINK A8000RU
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: legacy bootconsole [uart8250] enabled
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 20 pages/cpu s42520 r8192 d31208 u81920
[    0.000000] pcpu-alloc: s42520 r8192 d31208 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x11002000 swiotlb=512
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 131072
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x000000005f4c0000-0x000000005f5c0000] (1MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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 10 jiffies.
[    0.000000] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 80ns, wraps every 4398046511080ns
[    0.008274] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[    0.018674] pid_max: default: 32768 minimum: 301
[    0.026155] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.033501] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.044223] rcu: Hierarchical SRCU implementation.
[    0.049038] rcu:     Max phase no-delay instances is 1000.
[    0.054454] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.062797] smp: Bringing up secondary CPUs ...
[    0.067748] Detected VIPT I-cache on CPU1
[    0.067827] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.067902] smp: Brought up 1 node, 2 CPUs
[    0.082584] SMP: Total of 2 processors activated.
[    0.087301] CPU: All CPU(s) started at EL2
[    0.091410] CPU features: detected: 32-bit EL0 Support
[    0.096564] CPU features: detected: CRC32 instructions
[    0.101741] alternatives: applying system-wide alternatives
[    0.107465] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.115966] Memory: 497120K/524288K available (9216K kernel code, 916K rwdata, 2664K rodata, 448K init, 301K bss, 25328K reserved, 0K cma-reserved)
[    0.132961] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.142867] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.149745] 29344 pages in range for non-PLT usage
[    0.149749] 520864 pages in range for PLT usage
[    0.155996] pinctrl core: initialized pinctrl subsystem
[    0.166901] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.173118] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.180228] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.188017] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.196371] thermal_sys: Registered thermal governor 'fair_share'
[    0.196376] thermal_sys: Registered thermal governor 'bang_bang'
[    0.202489] thermal_sys: Registered thermal governor 'step_wise'
[    0.208521] thermal_sys: Registered thermal governor 'user_space'
[    0.214605] ASID allocator initialised with 65536 entries
[    0.226499] pstore: Using crash dump compression: deflate
[    0.231927] pstore: Registered ramoops as persistent store backend
[    0.238127] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.250397] /pcie@1a143000: Fixed dependency cycle(s) with /pcie@1a143000/interrupt-controller
[    0.259405] /pcie@1a145000: Fixed dependency cycle(s) with /pcie@1a145000/interrupt-controller
[    0.280219] cryptd: max_cpu_qlen set to 1000
[    0.286573] SCSI subsystem initialized
[    0.290504] libata version 3.00 loaded.
[    0.295734] clocksource: Switched to clocksource arch_sys_counter
[    0.304042] NET: Registered PF_INET protocol family
[    0.309052] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.317470] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.325869] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.333648] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.341451] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.348803] TCP: Hash tables configured (established 4096 bind 4096)
[    0.355478] MPTCP token hash table entries: 512 (order: 1, 12288 bytes, linear)
[    0.362923] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.369497] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.376661] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.382360] PCI: CLS 0 bytes, default 64
[    0.387406] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.398662] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.404517] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.477351] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.497202] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.504696] printk: legacy console [ttyS0] disabled
[    0.530015] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 118, base_baud = 1562500) is a ST16650V2
[    0.539334] printk: legacy console [ttyS0] enabled
[    0.548926] printk: legacy bootconsole [uart8250] disabled
[    0.560822] mtk_rng 1020f000.rng: registered RNG driver
[    0.560969] random: crng init done
[    0.571857] loop: module loaded
[    0.575435] mtk-ecc 1100e000.ecc: probed
[    0.580761] spi-nand spi0.0: Macronix SPI NAND was found.
[    0.586194] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.594364] mtk-snand 1100d000.spi: ECC strength: 4 bits per 512 bytes
[    0.603327] [BBT] BMT.v2 is found at 0x3ff
[    0.607717] 8 fixed-partitions partitions found on MTD device spi0.0
[    0.614069] Creating 8 MTD partitions on "spi0.0":
[    0.618957] 0x000000000000-0x000000080000 : "Preloader"
[    0.625074] 0x000000080000-0x0000000c0000 : "ATF"
[    0.630313] 0x0000000c0000-0x000000140000 : "u-boot"
[    0.636138] 0x000000140000-0x0000001c0000 : "u-boot-env"
[    0.642187] 0x0000001c0000-0x000000200000 : "factory"
[    0.647778] OF: Bad cell count for /spi@1100d000/flash@0/partitions
[    0.654214] 0x000000200000-0x000006600000 : "ubi"
[    0.766406] 0x000006600000-0x000006700000 : "User_data"
[    0.772964] 0x000006700000-0x0000075c0000 : "reserved"
[    0.919417] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc0812e0000, irq 123
[    0.929511] rtc_mt7622 10212800.rtc: registered as rtc0
[    0.934766] rtc_mt7622 10212800.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[    0.943734] i2c_dev: i2c /dev entries driver
[    0.949323] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    0.959134] NET: Registered PF_INET6 protocol family
[    0.964746] Segment Routing with IPv6
[    0.968469] In-situ OAM (IOAM) with IPv6
[    0.972429] NET: Registered PF_PACKET protocol family
[    0.977610] 8021q: 802.1Q VLAN Support v1.8
[    1.001677] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.008275] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.014116] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    1.262270] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    1.268487] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.273973] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    1.280857] pci_bus 0000:00: scanning bus
[    1.285100] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400 PCIe Root Port
[    1.292600] pci 0000:00:00.0: BAR 0 [mem 0x00000000-0x1ffffffff 64bit pref]
[    1.299641] pci 0000:00:00.0: PCI bridge to [bus 00]
[    1.304673] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    1.314176] pci_bus 0000:00: fixups for bus
[    1.318378] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    1.325076] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.333152] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.340233] pci_bus 0000:01: scanning bus
[    1.344440] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280 PCIe Endpoint
[    1.351847] pci 0000:01:00.0: BAR 0 [mem 0x00000000-0x000fffff 64bit]
[    1.359294] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.385828] pci_bus 0000:01: fixups for bus
[    1.390012] pci_bus 0000:01: bus scan returning with max=01
[    1.395584] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.402223] pci_bus 0000:00: bus scan returning with max=01
[    1.407817] pci 0000:00:00.0: BAR 0 [mem size 0x200000000 64bit pref]: can't assign; no space
[    1.416362] pci 0000:00:00.0: BAR 0 [mem size 0x200000000 64bit pref]: failed to assign
[    1.424370] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]: assigned
[    1.431865] pci 0000:01:00.0: BAR 0 [mem 0x20000000-0x200fffff 64bit]: assigned
[    1.439269] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.444238] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    1.451044] pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    1.460094] pci_bus 0000:00: resource 4 [mem 0x20000000-0x27ffffff]
[    1.466368] pci_bus 0000:01: resource 1 [mem 0x20000000-0x200fffff]
[    1.472789] pcieport 0000:00:00.0: assign IRQ: got 128
[    1.477951] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    1.484064] pcieport 0000:00:00.0: enabling bus mastering
[    1.489568] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x450050c0
[    1.497022] pcieport 0000:00:00.0: PME: Signaling with IRQ 128
[    1.502955] pcieport 0000:00:00.0: save config 0x00: 0x325814c3
[    1.508888] pcieport 0000:00:00.0: save config 0x04: 0x00100006
[    1.514809] pcieport 0000:00:00.0: save config 0x08: 0x06040000
[    1.520738] pcieport 0000:00:00.0: save config 0x0c: 0x00010000
[    1.526665] pcieport 0000:00:00.0: save config 0x10: 0x0000000c
[    1.532585] pcieport 0000:00:00.0: save config 0x14: 0x00000000
[    1.538517] pcieport 0000:00:00.0: save config 0x18: 0x40010100
[    1.544437] pcieport 0000:00:00.0: save config 0x1c: 0x04200000
[    1.550365] pcieport 0000:00:00.0: save config 0x20: 0x20002000
[    1.556292] pcieport 0000:00:00.0: save config 0x24: 0x00000000
[    1.562212] pcieport 0000:00:00.0: save config 0x28: 0x00000000
[    1.568142] pcieport 0000:00:00.0: save config 0x2c: 0x00000000
[    1.574062] pcieport 0000:00:00.0: save config 0x30: 0x00000000
[    1.579990] pcieport 0000:00:00.0: save config 0x34: 0x00000050
[    1.585918] pcieport 0000:00:00.0: save config 0x38: 0x00000000
[    1.591838] pcieport 0000:00:00.0: save config 0x3c: 0x00020180
[    1.598312] mtk-pcie 1a145000.pcie: host bridge /pcie@1a145000 ranges:
[    1.604854] mtk-pcie 1a145000.pcie: Parsing ranges property...
[    1.610703] mtk-pcie 1a145000.pcie:      MEM 0x0028000000..0x002fffffff -> 0x0028000000
[    1.852427] mtk-pcie 1a145000.pcie: PCI host bridge to bus 0001:00
[    1.858646] pci_bus 0001:00: root bus resource [bus 00-ff]
[    1.864130] pci_bus 0001:00: root bus resource [mem 0x28000000-0x2fffffff]
[    1.871008] pci_bus 0001:00: scanning bus
[    1.875360] pci 0001:00:01.0: [14c3:3258] type 01 class 0x060400 PCIe Root Port
[    1.882859] pci 0001:00:01.0: BAR 0 [mem 0x00000000-0x1ffffffff 64bit pref]
[    1.889893] pci 0001:00:01.0: PCI bridge to [bus 00]
[    1.894923] pci 0001:00:01.0:   bridge window [mem 0x00000000-0x000fffff]
[    1.904216] pci_bus 0001:00: fixups for bus
[    1.908415] pci 0001:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.915112] pci 0001:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.923186] pci 0001:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.930251] pci_bus 0001:01: scanning bus
[    1.934454] pci 0001:01:00.0: [14c3:7615] type 00 class 0x000280 PCIe Endpoint
[    1.941856] pci 0001:01:00.0: BAR 0 [mem 0x00000000-0x000fffff 64bit]
[    1.949292] pci 0001:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0001:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.975828] pci_bus 0001:01: fixups for bus
[    1.980012] pci_bus 0001:01: bus scan returning with max=01
[    1.985584] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    1.992223] pci_bus 0001:00: bus scan returning with max=01
[    1.997816] pci 0001:00:01.0: BAR 0 [mem size 0x200000000 64bit pref]: can't assign; no space
[    2.006355] pci 0001:00:01.0: BAR 0 [mem size 0x200000000 64bit pref]: failed to assign
[    2.014362] pci 0001:00:01.0: bridge window [mem 0x28000000-0x280fffff]: assigned
[    2.021863] pci 0001:01:00.0: BAR 0 [mem 0x28000000-0x280fffff 64bit]: assigned
[    2.029266] pci 0001:00:01.0: PCI bridge to [bus 01]
[    2.034235] pci 0001:00:01.0:   bridge window [mem 0x28000000-0x280fffff]
[    2.041040] pci_bus 0001:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    2.050090] pci_bus 0001:00: resource 4 [mem 0x28000000-0x2fffffff]
[    2.056363] pci_bus 0001:01: resource 1 [mem 0x28000000-0x280fffff]
[    2.062782] pcieport 0001:00:01.0: assign IRQ: got 130
[    2.067941] pcieport 0001:00:01.0: enabling device (0000 -> 0002)
[    2.074053] pcieport 0001:00:01.0: enabling bus mastering
[    2.079546] mtk-pcie 1a145000.pcie: msi#0 address_hi 0x0 address_lo 0x450150c0
[    2.086989] pcieport 0001:00:01.0: PME: Signaling with IRQ 130
[    2.092922] pcieport 0001:00:01.0: save config 0x00: 0x325814c3
[    2.098855] pcieport 0001:00:01.0: save config 0x04: 0x00100006
[    2.104776] pcieport 0001:00:01.0: save config 0x08: 0x06040000
[    2.110704] pcieport 0001:00:01.0: save config 0x0c: 0x00010000
[    2.116631] pcieport 0001:00:01.0: save config 0x10: 0x0000000c
[    2.122551] pcieport 0001:00:01.0: save config 0x14: 0x00000000
[    2.128482] pcieport 0001:00:01.0: save config 0x18: 0x40010100
[    2.134402] pcieport 0001:00:01.0: save config 0x1c: 0x04200000
[    2.140336] pcieport 0001:00:01.0: save config 0x20: 0x28002800
[    2.146264] pcieport 0001:00:01.0: save config 0x24: 0x00000000
[    2.152184] pcieport 0001:00:01.0: save config 0x28: 0x00000000
[    2.158110] pcieport 0001:00:01.0: save config 0x2c: 0x00000000
[    2.164030] pcieport 0001:00:01.0: save config 0x30: 0x00000000
[    2.169956] pcieport 0001:00:01.0: save config 0x34: 0x00000050
[    2.175883] pcieport 0001:00:01.0: save config 0x38: 0x00000000
[    2.181803] pcieport 0001:00:01.0: save config 0x3c: 0x00020182
[    2.188603] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    2.196853] UBI: auto-attach mtd5
[    2.200178] ubi0: default fastmap pool size: 40
[    2.204703] ubi0: default fastmap WL pool size: 20
[    2.209526] ubi0: attaching mtd5
[    2.507542] ubi0: scanning is finished
[    2.515463] ubi0 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 6, need 19
[    2.526133] ubi0: attached mtd5 (name "ubi", size 100 MiB)
[    2.531633] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.538519] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.545306] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.552271] ubi0: good PEBs: 800, bad PEBs: 0, corrupted PEBs: 0
[    2.558281] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    2.565501] ubi0: max/mean erase counter: 81/20, WL threshold: 4096, image sequence number: 0
[    2.574033] ubi0: available PEBs: 0, total reserved PEBs: 800, PEBs reserved for bad PEB handling: 6
[    2.583183] ubi0: background thread "ubi_bgt0d" started, PID 579
[    2.589774] block ubiblock0_1: created from ubi0:1(rootfs)
[    2.595258] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    2.602320] clk: Disabling unused clocks
[    2.606533] PM: genpd: Disabling unused power domains
[    2.614907] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    2.622275] Freeing unused kernel memory: 448K
[    2.626760] Run /sbin/init as init process
[    2.630849]   with arguments:
[    2.633806]     /sbin/init
[    2.636515]   with environment:
[    2.639647]     HOME=/
[    2.641997]     TERM=linux
[    2.819893] init: Console is alive
[    2.823395] init: - watchdog -
[    3.367701] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.389895] usbcore: registered new interface driver usbfs
[    3.395418] usbcore: registered new interface driver hub
[    3.400782] usbcore: registered new device driver usb
[    3.406820] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    3.566222] rtl8365mb-mdio mdio-bus:1d: found an RTL8367S switch
[    3.748858] rtl8365mb-mdio mdio-bus:1d: missing child interrupt-controller node
[    3.756216] rtl8365mb-mdio mdio-bus:1d: no interrupt support
[    3.972785] rtl8365mb-mdio mdio-bus:1d: configuring for fixed/2500base-x link mode
[    4.123074] rtl8365mb-mdio mdio-bus:1d: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    4.123758] rtl8365mb-mdio mdio-bus:1d lan0 (uninitialized): PHY [mdio-bus:1d:user_mii:00] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    4.145696] rtl8365mb-mdio mdio-bus:1d lan1 (uninitialized): PHY [mdio-bus:1d:user_mii:01] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    4.160142] rtl8365mb-mdio mdio-bus:1d lan2 (uninitialized): PHY [mdio-bus:1d:user_mii:02] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    4.174595] rtl8365mb-mdio mdio-bus:1d lan3 (uninitialized): PHY [mdio-bus:1d:user_mii:03] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    4.189022] rtl8365mb-mdio mdio-bus:1d wan (uninitialized): PHY [mdio-bus:1d:user_mii:04] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    4.202809] mtk_soc_eth 1b100000.ethernet eth0: entered promiscuous mode
[    4.209556] DSA: tree 0 setup
[    4.217777] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    4.223024] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 1
[    4.232099] xhci-mtk 1a0c0000.usb: hcc params 0x01403198 hci version 0x96 quirks 0x0000000000200010
[    4.241202] xhci-mtk 1a0c0000.usb: irq 132, io mem 0x1a0c0000
[    4.247076] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    4.252301] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
[    4.259706] xhci-mtk 1a0c0000.usb: Host supports USB 3.0 SuperSpeed
[    4.266422] hub 1-0:1.0: USB hub found
[    4.270188] hub 1-0:1.0: 2 ports detected
[    4.274498] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.282871] hub 2-0:1.0: USB hub found
[    4.286647] hub 2-0:1.0: 1 port detected
[    4.296386] usbcore: registered new interface driver usb-storage
[    4.303404] usbcore: registered new interface driver uas
[    4.308983] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.319036] init: - preinit -
[    4.820326] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    4.828823] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    4.849656] rtl8365mb-mdio mdio-bus:1d lan1: configuring for phy/gmii link mode
[    9.169409] UBIFS (ubi0:2): default file-system created
[    9.174940] UBIFS (ubi0:2): Mounting in unauthenticated mode
[    9.180796] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 765
[    9.210587] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[    9.218449] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    9.228372] UBIFS (ubi0:2): FS size: 72249344 bytes (68 MiB, 569 LEBs), max 579 LEBs, journal size 3555328 bytes (3 MiB, 28 LEBs)
[    9.240024] UBIFS (ubi0:2): reserved for root: 3412514 bytes (3332 KiB)
[    9.246652] UBIFS (ubi0:2): media format: w5/r0 (latest is w5/r0), UUID 0E60E0A0-B40E-4ECE-868A-79D0E7AC9F7A, small LPT model
[    9.259186] mount_root: overlay filesystem has not been fully initialized yet
[    9.266534] mount_root: switching to ubifs overlay
[    9.273228] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    9.286464] urandom-seed: Seed file not found (/etc/urandom.seed)
[    9.345549] procd: - early -
[    9.348536] procd: - watchdog -
[    9.903606] procd: - watchdog -
[    9.921230] procd: - ubus -
[   10.083307] procd: - init -
[   10.402267] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.428813] netfs: FS-Cache loaded
[   10.433671] Key type dns_resolver registered
[   10.450268] Key type cifs.idmap registered
[   10.456881] GACT probability on
[   10.461010] Mirror/redirect action on
[   10.470259] u32 classifier
[   10.472978]     input device check on
[   10.476683]     Actions configured
[   10.487513] fuse: init (API version 7.41)
[   10.498199] Loading modules backported from Linux version v6.14.11-0-gb9d5d463c216
[   10.505794] Backport generated by backports.git v6.1.110-1-43-g2e32643b84e8
[   10.519022] usbcore: registered new interface driver ums-alauda
[   10.525598] usbcore: registered new interface driver ums-cypress
[   10.533020] usbcore: registered new interface driver ums-datafab
[   10.539857] usbcore: registered new interface driver ums-freecom
[   10.546616] usbcore: registered new interface driver ums-isd200
[   10.553136] usbcore: registered new interface driver ums-jumpshot
[   10.560012] usbcore: registered new interface driver ums-karma
[   10.567106] usbcore: registered new interface driver ums-sddr09
[   10.573838] usbcore: registered new interface driver ums-sddr55
[   10.580684] usbcore: registered new interface driver ums-usbat
[   10.642261] mt7615e 0000:01:00.0: assign IRQ: got 128
[   10.647409] mt7615e 0000:01:00.0: enabling device (0000 -> 0002)
[   10.653491] mt7615e 0000:01:00.0: enabling bus mastering
[   10.658947] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x450050c0
[   10.667408] urngd: v1.0.2 started.
[   10.676093] mt7615e 0000:01:00.0: registering led 'mt76-phy0'
[   10.716261] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   10.723069] ieee80211 phy0: copying sband (band 1) due to VHT EXT NSS BW flag
[   10.746274] mt7615e 0001:01:00.0: assign IRQ: got 130
[   10.751379] mt7615e 0001:01:00.0: enabling device (0000 -> 0002)
[   10.757494] mt7615e 0001:01:00.0: enabling bus mastering
[   10.762950] mtk-pcie 1a145000.pcie: msi#0 address_hi 0x0 address_lo 0x450150c0
[   10.839746] mt7615e 0001:01:00.0: registering led 'mt76-phy1'
[   10.845555] mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[   10.845555]
[   10.928537] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   10.935342] ieee80211 phy1: copying sband (band 1) due to VHT EXT NSS BW flag
[   10.971924] mt7615e 0001:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[   10.971924]
[   10.972884] mt7615e 0000:01:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
[   10.993374] mt7622-wmac 18000000.wmac: registering led 'mt76-phy2'
[   11.002222] mt7615e 0001:01:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
[   11.056405] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht'
[   11.056779] mt7615e 0000:01:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190415154149
[   11.063744] mt7615e 0001:01:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190415154149
[   11.120511] PPP generic driver version 2.4.2
[   11.126587] NET: Registered PF_PPPOX protocol family
[   11.136296] kmodloader: done loading kernel modules from /etc/modules.d/*
[   11.143214] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[   11.143214]
[   11.238228] mt7622-wmac 18000000.wmac: N9 Firmware Version: _reserved_, Build Time: 20220630094834
[   17.871343] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[   17.892096] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   17.903351] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   17.912019] rtl8365mb-mdio mdio-bus:1d lan1: configuring for phy/gmii link mode
[   17.939879] br-lan: port 1(lan1) entered blocking state
[   17.945129] br-lan: port 1(lan1) entered disabled state
[   17.950470] rtl8365mb-mdio mdio-bus:1d lan1: entered allmulticast mode
[   17.957076] mtk_soc_eth 1b100000.ethernet eth0: entered allmulticast mode
[   17.989092] rtl8365mb-mdio mdio-bus:1d lan1: entered promiscuous mode
[   18.034735] rtl8365mb-mdio mdio-bus:1d lan2: configuring for phy/gmii link mode
[   18.049688] br-lan: port 2(lan2) entered blocking state
[   18.054927] br-lan: port 2(lan2) entered disabled state
[   18.060250] rtl8365mb-mdio mdio-bus:1d lan2: entered allmulticast mode
[   18.068257] rtl8365mb-mdio mdio-bus:1d lan2: entered promiscuous mode
[   18.088806] rtl8365mb-mdio mdio-bus:1d lan3: configuring for phy/gmii link mode
[   18.103611] br-lan: port 3(lan3) entered blocking state
[   18.108944] br-lan: port 3(lan3) entered disabled state
[   18.114210] rtl8365mb-mdio mdio-bus:1d lan3: entered allmulticast mode
[   18.122225] rtl8365mb-mdio mdio-bus:1d lan3: entered promiscuous mode
[   18.150722] rtl8365mb-mdio mdio-bus:1d wan: configuring for phy/gmii link mode
[   21.250620] rtl8365mb-mdio mdio-bus:1d lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[   21.250653] br-lan: port 3(lan3) entered blocking state
[   21.264083] br-lan: port 3(lan3) entered forwarding state
[   71.168576] rtl8365mb-mdio mdio-bus:1d lan3: Link is Down
[   71.174123] br-lan: port 3(lan3) entered disabled state
[   75.330627] rtl8365mb-mdio mdio-bus:1d lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[   75.330666] br-lan: port 3(lan3) entered blocking state
[   75.344088] br-lan: port 3(lan3) entered forwarding state
ifconfig
br-lan    Link encap:Ethernet  HWaddr 14:11:22:33:44:A0  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::1611:22ff:fe44:55a0/64 Scope:Link
          inet6 addr: fd12:e96:aa0a::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1088 errors:0 dropped:0 overruns:0 frame:0
          TX packets:942 errors:0 dropped:3 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:160638 (156.8 KiB)  TX bytes:1043579 (1019.1 KiB)
 
eth0      Link encap:Ethernet  HWaddr 14:11:22:33:44:A0  
          inet6 addr: fe80::1611:22ff:fe44:55a0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1508  Metric:1
          RX packets:1122 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1391 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:194865 (190.2 KiB)  TX bytes:1090473 (1.0 MiB)
          Interrupt:123 

lan1      Link encap:Ethernet  HWaddr 14:11:22:33:44:A0  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:4 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan2      Link encap:Ethernet  HWaddr 14:11:22:33:44:A0  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr 14:11:22:33:44:A0  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1089 errors:0 dropped:23 overruns:0 frame:0
          TX packets:1347 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:182295 (178.0 KiB)  TX bytes:1058006 (1.0 MiB)

lan4      Link encap:Ethernet  HWaddr 14:11:22:33:44:A0  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:169 errors:0 dropped:0 overruns:0 frame:0
          TX packets:169 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:13460 (13.1 KiB)  TX bytes:13460 (13.1 KiB)

wan       Link encap:Ethernet  HWaddr 14:11:22:33:44:A1  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

@musashino205

Copy link
Copy Markdown
Contributor

I'll check this on my WSR-2533DHP2 later.

BTW, ELECOM does not sell "WRC-2533GENT," at least not in Japan. When the commit adding support for that device was merged, I was very surprised; it was a device I was completely unfamiliar with, and there was no information about it anywhere on the ELECOM website.
However, radio certifications of Japan were registered for the device.

@namiltd
namiltd force-pushed the dsa-mediatek1 branch 2 times, most recently from fcfdd46 to c4b2a85 Compare August 23, 2026 19:39

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the changes since the last review (21d8cabf). The only content difference is in mt7622-buffalo-wsr.dtsi / mt7622-buffalo-wsr-2533dhp2.dts: phy-connection-type → phy-mode on the gmac0 node, plus a cosmetic blank line. This brings the Buffalo board in line with the ELECOM and TOTOLINK boards, which already use phy-mode. Commit messages still match their diffs. No new issues found.


Generated by Claude Code

@namiltd

namiltd commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor Author

@musashino205 I've also tried to find some information about this router online, but without success. If the radio certificate is genuine, the hardware is out there somewhere, but I wouldn't hold my breath waiting for a user to respond and confirm its functionality. I'd be inclined to treat it as a "curiosity" with a low probability of being confirmed in practice.

@musashino205

Copy link
Copy Markdown
Contributor

Tested on my BUFFALO WSR-2533DHP2 and works without any issues.

dmesg

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.18.44 (tofu@Tofu-B450HVKU24) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.4.0 r35621+228-c9833b993d) 14.4.0, GNU ld (GNU Binutils) 2.46.1) #0 SMP Fri Aug 28 06:20:42 2026
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: Buffalo WSR-2533DHP2
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: legacy bootconsole [uart8250] enabled
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000004fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000004fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000004fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 20 pages/cpu s43416 r8192 d30312 u81920
[    0.000000] pcpu-alloc: s43416 r8192 d30312 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8 swiotlb=512
[    0.000000] printk: log buffer data + meta data: 131072 + 458752 = 589824 bytes
[    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x000000004f900000-0x000000004fa00000] (1MB)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65536
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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 10 jiffies.
[    0.000000] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.000000] arch_timer: cp15 timer running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 80ns, wraps every 4398046511080ns
[    0.008522] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[    0.019255] pid_max: default: 32768 minimum: 301
[    0.026372] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.033863] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.047558] rcu: Hierarchical SRCU implementation.
[    0.052526] rcu:     Max phase no-delay instances is 1000.
[    0.058163] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.066752] smp: Bringing up secondary CPUs ...
[    0.071856] Detected VIPT I-cache on CPU1
[    0.071953] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.072029] smp: Brought up 1 node, 2 CPUs
[    0.087178] SMP: Total of 2 processors activated.
[    0.092046] CPU: All CPU(s) started at EL2
[    0.096288] CPU features: detected: 32-bit EL0 Support
[    0.101608] CPU features: detected: CRC32 instructions
[    0.106951] alternatives: applying system-wide alternatives
[    0.112854] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.121631] Memory: 234596K/262144K available (9600K kernel code, 926K rwdata, 2812K rodata, 896K init, 295K bss, 25812K reserved, 0K cma-reserved)
[    0.139420] posixtimers hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.147154] futex hash table entries: 512 (32768 bytes on 1 NUMA nodes, total 32 KiB, linear).
[    0.156106] 29088 pages in range for non-PLT usage
[    0.156110] 520608 pages in range for PLT usage
[    0.162609] pinctrl core: initialized pinctrl subsystem
[    0.173911] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.180328] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.187661] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.195708] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.204368] thermal_sys: Registered thermal governor 'fair_share'
[    0.204373] thermal_sys: Registered thermal governor 'bang_bang'
[    0.210682] thermal_sys: Registered thermal governor 'step_wise'
[    0.216907] thermal_sys: Registered thermal governor 'user_space'
[    0.223195] ASID allocator initialised with 65536 entries
[    0.235488] pstore: Using crash dump compression: deflate
[    0.241090] pstore: Registered ramoops as persistent store backend
[    0.247489] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.260355] /pcie@1a143000: Fixed dependency cycle(s) with /pcie@1a143000/interrupt-controller
[    0.283386] SCSI subsystem initialized
[    0.287374] libata version 3.00 loaded.
[    0.292753] clocksource: Switched to clocksource arch_sys_counter
[    0.301445] NET: Registered PF_INET protocol family
[    0.306613] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.315191] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.323862] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.331894] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.339937] TCP bind hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.347386] TCP: Hash tables configured (established 2048 bind 2048)
[    0.354202] MPTCP token hash table entries: 256 (order: 1, 6144 bytes, linear)
[    0.361781] UDP hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.368658] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.376156] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.382037] PCI: CLS 0 bytes, default 64
[    0.386284] Unpacking initramfs...
[    0.403789] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[    0.415469] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.421526] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.434655] cryptd: max_cpu_qlen set to 1000
[    0.496182] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.517166] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.527631] printk: legacy console [ttyS0] disabled
[    0.553146] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 118, base_baud = 1562500) is a ST16650V2
[    0.562737] printk: legacy console [ttyS0] enabled
[    0.572352] printk: legacy bootconsole [uart8250] disabled
[    0.584963] mtk_rng 1020f000.rng: registered RNG driver
[    0.590954] random: crng init done
[    0.598360] loop: module loaded
[    0.601961] mtk-ecc 1100e000.ecc: probed
[    0.607251] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xa1
[    0.613635] nand: Winbond W29N01HZ
[    0.617032] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.624627] mtk-nand 1100d000.nand-controller: eccsize 512 eccstrength 4
[    0.631351] Scanning device for bad blocks
[    1.452887] Freeing initrd memory: 4384K
[    1.462132] 9 fixed-partitions partitions found on MTD device mtk-nand
[    1.468935] Creating 9 MTD partitions on "mtk-nand":
[    1.473907] 0x000000000000-0x000000080000 : "Preloader"
[    1.479445] 0x000000080000-0x0000000c0000 : "ATF"
[    1.484381] 0x0000000c0000-0x000000140000 : "Bootloader"
[    1.489903] 0x000000140000-0x0000001c0000 : "Config"
[    1.495100] 0x0000001c0000-0x000000200000 : "factory"
[    1.500575] 0x000000200000-0x000003c00000 : "firmware"
[    1.506431] 2 trx partitions found on MTD device firmware
[    1.511824] Creating 2 MTD partitions on "firmware":
[    1.516870] 0x00000000001c-0x000000600000 : "linux"
[    1.521740] mtd: partition "linux" doesn't start on an erase/write block boundary -- force read-only
[    1.531506] 0x000000600000-0x000003a00000 : "ubi"
[    1.536680] 0x000003c00000-0x000007600000 : "Kernel2"
[    1.542117] 0x000007600000-0x000007800000 : "glbcfg"
[    1.547455] 0x000007800000-0x000007a00000 : "board_data"
[    1.559728] mtk_soc_eth 1b100000.ethernet: legacy DT: missing interrupt-names.
[    1.687080] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc0811e0000, irq 123
[    1.696879] i2c_dev: i2c /dev entries driver
[    1.702622] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.712420] NET: Registered PF_INET6 protocol family
[    1.718074] Segment Routing with IPv6
[    1.721761] In-situ OAM (IOAM) with IPv6
[    1.725738] NET: Registered PF_PACKET protocol family
[    1.730888] 8021q: 802.1Q VLAN Support v1.8
[    1.755039] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.761587] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.767477] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    1.899635] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    1.905874] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.911369] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    1.918273] pci_bus 0000:00: scanning bus
[    1.922391] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400 PCIe Root Port
[    1.929797] pci 0000:00:00.0: BAR 0 [mem 0x00000000-0x1ffffffff 64bit pref]
[    1.936784] pci 0000:00:00.0: PCI bridge to [bus 00]
[    1.941765] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    1.951560] pci_bus 0000:00: fixups for bus
[    1.955770] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    1.962476] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.970517] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.977389] pci_bus 0000:01: scanning bus
[    1.981644] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280 PCIe Endpoint
[    1.989342] pci 0000:01:00.0: BAR 0 [mem 0x00000000-0x000fffff 64bit]
[    1.996622] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    2.022868] pci 0000:01:00.0: ASPM: default states L0s L1
[    2.028313] pci_bus 0000:01: fixups for bus
[    2.032491] pci_bus 0000:01: bus scan returning with max=01
[    2.038092] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.044751] pci_bus 0000:00: bus scan returning with max=01
[    2.050331] pci 0000:00:00.0: BAR 0 [mem size 0x200000000 64bit pref]: can't assign; no space
[    2.058863] pci 0000:00:00.0: BAR 0 [mem size 0x200000000 64bit pref]: failed to assign
[    2.066882] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]: assigned
[    2.074369] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]: releasing
[    2.081936] pci 0000:00:00.0: BAR 0 [mem size 0x200000000 64bit pref]: can't assign; no space
[    2.090462] pci 0000:00:00.0: BAR 0 [mem size 0x200000000 64bit pref]: failed to assign
[    2.098468] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]: assigned
[    2.105959] pci 0000:01:00.0: BAR 0 [mem 0x20000000-0x200fffff 64bit]: assigned
[    2.113358] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.118353] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    2.125215] pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    2.134260] pci_bus 0000:00: resource 4 [mem 0x20000000-0x27ffffff]
[    2.140523] pci_bus 0000:01: resource 1 [mem 0x20000000-0x200fffff]
[    2.146839] pci 0000:00:00.0: save config 0x00: 0x325814c3
[    2.152331] pci 0000:00:00.0: save config 0x04: 0x00100000
[    2.157830] pci 0000:00:00.0: save config 0x08: 0x06040000
[    2.163328] pci 0000:00:00.0: save config 0x0c: 0x00010000
[    2.168820] pci 0000:00:00.0: save config 0x10: 0x0000000c
[    2.174321] pci 0000:00:00.0: save config 0x14: 0x00000000
[    2.179812] pci 0000:00:00.0: save config 0x18: 0x40010100
[    2.185310] pci 0000:00:00.0: save config 0x1c: 0x04200000
[    2.190801] pci 0000:00:00.0: save config 0x20: 0x20002000
[    2.196299] pci 0000:00:00.0: save config 0x24: 0x00000000
[    2.201790] pci 0000:00:00.0: save config 0x28: 0x00000000
[    2.207289] pci 0000:00:00.0: save config 0x2c: 0x00000000
[    2.212789] pci 0000:00:00.0: save config 0x30: 0x00000000
[    2.218280] pci 0000:00:00.0: save config 0x34: 0x00000050
[    2.223778] pci 0000:00:00.0: save config 0x38: 0x00000000
[    2.229270] pci 0000:00:00.0: save config 0x3c: 0x00020100
[    2.235256] pcieport 0000:00:00.0: assign IRQ: got 126
[    2.240429] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    2.246646] pcieport 0000:00:00.0: enabling bus mastering
[    2.252170] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x1a1430c0
[    2.259843] pcieport 0000:00:00.0: PME: Signaling with IRQ 126
[    2.265860] pcieport 0000:00:00.0: bwctrl: enabled with IRQ 126
[    2.271806] pcieport 0000:00:00.0: save config 0x00: 0x325814c3
[    2.277743] pcieport 0000:00:00.0: save config 0x04: 0x00100006
[    2.283676] pcieport 0000:00:00.0: save config 0x08: 0x06040000
[    2.289602] pcieport 0000:00:00.0: save config 0x0c: 0x00010000
[    2.295537] pcieport 0000:00:00.0: save config 0x10: 0x0000000c
[    2.301463] pcieport 0000:00:00.0: save config 0x14: 0x00000000
[    2.307396] pcieport 0000:00:00.0: save config 0x18: 0x40010100
[    2.313329] pcieport 0000:00:00.0: save config 0x1c: 0x04200000
[    2.319254] pcieport 0000:00:00.0: save config 0x20: 0x20002000
[    2.325189] pcieport 0000:00:00.0: save config 0x24: 0x00000000
[    2.331115] pcieport 0000:00:00.0: save config 0x28: 0x00000000
[    2.337052] pcieport 0000:00:00.0: save config 0x2c: 0x00000000
[    2.342984] pcieport 0000:00:00.0: save config 0x30: 0x00000000
[    2.348909] pcieport 0000:00:00.0: save config 0x34: 0x00000050
[    2.354845] pcieport 0000:00:00.0: save config 0x38: 0x00000000
[    2.360770] pcieport 0000:00:00.0: save config 0x3c: 0x0002017e
[    2.367092] pci 0000:01:00.0: save config 0x00: 0x761514c3
[    2.372584] pci 0000:01:00.0: save config 0x04: 0x00100000
[    2.378084] pci 0000:01:00.0: save config 0x08: 0x00028000
[    2.383583] pci 0000:01:00.0: save config 0x0c: 0x00000000
[    2.389075] pci 0000:01:00.0: save config 0x10: 0x20000004
[    2.394573] pci 0000:01:00.0: save config 0x14: 0x00000000
[    2.400064] pci 0000:01:00.0: save config 0x18: 0x00000000
[    2.405561] pci 0000:01:00.0: save config 0x1c: 0x00000000
[    2.411052] pci 0000:01:00.0: save config 0x20: 0x00000000
[    2.416553] pci 0000:01:00.0: save config 0x24: 0x00000000
[    2.422045] pci 0000:01:00.0: save config 0x28: 0x00000000
[    2.427544] pci 0000:01:00.0: save config 0x2c: 0x14c37615
[    2.433045] pci 0000:01:00.0: save config 0x30: 0x00000000
[    2.438536] pci 0000:01:00.0: save config 0x34: 0x00000050
[    2.444034] pci 0000:01:00.0: save config 0x38: 0x00000000
[    2.449525] pci 0000:01:00.0: save config 0x3c: 0x00000100
[    2.455935] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    2.463724] UBI: auto-attach mtd7
[    2.467044] ubi0: default fastmap pool size: 20
[    2.471568] ubi0: default fastmap WL pool size: 10
[    2.476375] ubi0: attaching mtd7
[    2.692260] ubi0: scanning is finished
[    2.706705] ubi0: attached mtd7 (name "ubi", size 52 MiB)
[    2.712110] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[    2.718998] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[    2.725701] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[    2.732484] ubi0: good PEBs: 416, bad PEBs: 0, corrupted PEBs: 0
[    2.738489] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    2.745710] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1735380437
[    2.754843] ubi0: available PEBs: 0, total reserved PEBs: 416, PEBs reserved for bad PEB handling: 20
[    2.764076] ubi0: background thread "ubi_bgt0d" started, PID 588
[    2.764874] block ubiblock0_0: created from ubi0:0(rootfs)
[    2.775567] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    2.782643] clk: Disabling unused clocks
[    2.786902] PM: genpd: Disabling unused power domains
[    2.792634] Freeing unused kernel memory: 896K
[    2.797161] Run /init as init process
[    2.800817]   with arguments:
[    2.803785]     /init
[    2.806050]   with environment:
[    2.809183]     HOME=/
[    2.811535]     TERM=linux
[    2.945130] init: Console is alive
[    2.948653] init: - watchdog -
[    2.957648] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.965452] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    3.133240] rtl8365mb-mdio mdio-bus:1d: found an RTL8367S switch
[    3.306906] rtl8365mb-mdio mdio-bus:1d: missing child interrupt-controller node
[    3.314275] rtl8365mb-mdio mdio-bus:1d: no interrupt support
[    3.535652] rtl8365mb-mdio mdio-bus:1d: configuring for fixed/2500base-x link mode
[    3.550783] rtl8365mb-mdio mdio-bus:1d lan1 (uninitialized): PHY [mdio-bus:1d:user_mii:00] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    3.551006] rtl8365mb-mdio mdio-bus:1d: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    3.568149] rtl8365mb-mdio mdio-bus:1d lan2 (uninitialized): PHY [mdio-bus:1d:user_mii:01] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    3.588516] rtl8365mb-mdio mdio-bus:1d lan3 (uninitialized): PHY [mdio-bus:1d:user_mii:02] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    3.605758] rtl8365mb-mdio mdio-bus:1d lan4 (uninitialized): PHY [mdio-bus:1d:user_mii:03] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    3.623194] rtl8365mb-mdio mdio-bus:1d wan (uninitialized): PHY [mdio-bus:1d:user_mii:04] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    3.639532] mtk_soc_eth 1b100000.ethernet eth0: entered promiscuous mode
[    3.646268] DSA: tree 0 setup
[    3.651382] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.662541] init: - preinit -
[    3.760915] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    3.769705] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    3.785453] rtl8365mb-mdio mdio-bus:1d lan1: configuring for phy/gmii link mode
[    8.297490] procd: - early -
[    8.300438] procd: - watchdog -
[    8.827785] procd: - watchdog -
[    8.831280] procd: - ubus -
[    8.887724] procd: - init -
[    9.092973] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.103159] Loading modules backported from Linux version v6.18.39-0-gf89c29685
[    9.110477] Backport generated by backports.git 614e5ed
[    9.149357] mt7615e 0000:01:00.0: assign IRQ: got 126
[    9.154528] mt7615e 0000:01:00.0: enabling device (0000 -> 0002)
[    9.160623] mt7615e 0000:01:00.0: enabling bus mastering
[    9.166090] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x1a1430c0
[    9.193442] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.200245] ieee80211 phy0: copying sband (band 1) due to VHT EXT NSS BW flag
[    9.230629] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[    9.237898] mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[    9.237898]
[    9.262828] mt7615e 0000:01:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
[    9.272134] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[    9.272134]
[    9.298052] mt7615e 0000:01:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190415154149
[    9.310056] mt7622-wmac 18000000.wmac: N9 Firmware Version: _reserved_, Build Time: 20220630094834
[    9.331632] PPP generic driver version 2.4.2
[    9.343575] NET: Registered PF_PPPOX protocol family
[    9.364914] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.382198] urngd: v1.0.2 started.
[   12.362869] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[   12.376369] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   12.385466] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   12.395640] rtl8365mb-mdio mdio-bus:1d lan1: configuring for phy/gmii link mode
[   12.421075] br-lan: port 1(lan1) entered blocking state
[   12.426420] br-lan: port 1(lan1) entered disabled state
[   12.431693] rtl8365mb-mdio mdio-bus:1d lan1: entered allmulticast mode
[   12.438321] mtk_soc_eth 1b100000.ethernet eth0: entered allmulticast mode
[   12.451149] rtl8365mb-mdio mdio-bus:1d lan1: entered promiscuous mode
[   12.481110] rtl8365mb-mdio mdio-bus:1d lan2: configuring for phy/gmii link mode
[   12.508377] br-lan: port 2(lan2) entered blocking state
[   12.513668] br-lan: port 2(lan2) entered disabled state
[   12.518938] rtl8365mb-mdio mdio-bus:1d lan2: entered allmulticast mode
[   12.527701] rtl8365mb-mdio mdio-bus:1d lan2: entered promiscuous mode
[   12.543512] rtl8365mb-mdio mdio-bus:1d lan3: configuring for phy/gmii link mode
[   12.570961] br-lan: port 3(lan3) entered blocking state
[   12.576257] br-lan: port 3(lan3) entered disabled state
[   12.581526] rtl8365mb-mdio mdio-bus:1d lan3: entered allmulticast mode
[   12.590084] rtl8365mb-mdio mdio-bus:1d lan3: entered promiscuous mode
[   12.603945] rtl8365mb-mdio mdio-bus:1d lan4: configuring for phy/gmii link mode
[   12.628789] br-lan: port 4(lan4) entered blocking state
[   12.634078] br-lan: port 4(lan4) entered disabled state
[   12.639339] rtl8365mb-mdio mdio-bus:1d lan4: entered allmulticast mode
[   12.648171] rtl8365mb-mdio mdio-bus:1d lan4: entered promiscuous mode
[   12.663605] rtl8365mb-mdio mdio-bus:1d wan: configuring for phy/gmii link mode
[   80.151101] rtl8365mb-mdio mdio-bus:1d lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[   80.159376] br-lan: port 3(lan3) entered blocking state
[   80.164640] br-lan: port 3(lan3) entered forwarding state
[  134.387648] rtl8365mb-mdio mdio-bus:1d wan: Link is Up - 1Gbps/Full - flow control off

@namiltd
namiltd force-pushed the dsa-mediatek1 branch 3 times, most recently from c4b2a85 to 9373431 Compare August 29, 2026 05:53

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit checks

  • 93734318 "mediatek: remove RTL8367S_GSW driver and disable swconfig on mt7622" — still carries Signed-off-by: Mieczyslaw Nalewaj <[email protected]> twice, byte-identical; the duplicate line should be dropped. FormalityCheck / Git & Commits passes anyway because a valid S-o-b is present, so this will not be caught automatically.

Generated by Claude Code

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 new commits; no new issues found.


Generated by Claude Code

@jonasjelonek

Copy link
Copy Markdown
Member

Not an expert here, but keeping the link for this ELECOM device at 1G/SGMII is not possible?

@namiltd

namiltd commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor Author

@jonasjelonek DSA drivers only support a single CPU port. Older drivers used RGMII + SGMII, while newer drivers use HSGMII, which is 2.5 times faster. If you ever find someone who has this router and checks the HSGMII operation and finds problems, we can always switch to single SGMII.

@jonasjelonek

Copy link
Copy Markdown
Member

Single CPU port, that is clear. But using simply:

phy-mode = "sgmii";

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

for the CPU port of the ELECOM devices does not work/is not supported?

@namiltd

namiltd commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

It will also work, but we will lose performance compared to HSGMII.

@jonasjelonek

Copy link
Copy Markdown
Member

I'm fine with both ways, if there are no obvious users of this device anymore, no-one will ever complain, or if there are, someone will complain about either low performance or total breakage.

Migrate Buffalo WSR-2533DHP2, ELECOM WRC-2533GENT and TOTOLINK A8000RU
from swconfig to DSA. These devices use an external Realtek RTL8367S
switch handled by the rtl8365mb DSA driver.

Per-device changes:
 - Drop the proprietary mediatek,rtk-gsw node
 - Add realtek,rtl8365mb DSA switch with ports lan1-lan4, wan and CPU
 - Move CPU port to gmac0 at 2500base-x (HSGMII)
 - Remove gmac1 (was 5u@eth1 in swconfig; DSA uses single CPU port)
 - Drop unused rgmii_via_gmac2 pin group
 - Replace swconfig with kmod-dsa-rtl8365mb
 - Bump DEVICE_COMPAT_VERSION (config migration not possible)
 - Remove swconfig board setup from 02_network
 - Disable CONFIG_RTL8367S_GSW in mt7622 kernel config

CPU link / bandwidth notes:
 - Buffalo WSR-2533DHP2 and TOTOLINK A8000RU: already used 2500base-x
   on gmac0 before this change; aggregate bandwidth stays the same.
 - ELECOM WRC-2533GENT: gmac0 moves from SGMII (1G) to 2500base-x
   (HSGMII).  The swconfig setup previously used two 1G CPU links
   (gmac0 + gmac1) for 2 Gbps aggregate; DSA collapses this to a
   single 2.5 Gbps link.

MAC address assignment notes:
 - Buffalo WSR-2533DHP2: WAN uses base MAC + 1, gmac0/LAN uses base MAC
   (previously the WAN MAC existed on the implicit eth1/gmac1 interface)
 - ELECOM WRC-2533GENT: WAN inherits CPU MAC via DSA conduit
   (original gmac1 had no nvmem-cells assignment)
 - TOTOLINK A8000RU: WAN reuses macaddr_factory_24 (previously gmac1)

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
All mt7622 devices using the RTL8367S switch have been migrated to
the generic rtl8365mb DSA driver. Remove the now-unused RTL8367S_GSW
driver and disable swconfig in the mt7622 kernel config, since no
device in this target needs it anymore.

The driver and its Kconfig symbol are shared across the mediatek
target, so this also drops the tree-wide files/drivers/net/phy/rtk/
sources and the now-dead "# CONFIG_RTL8367S_GSW is not set" line
from the filogic, mt7623 and mt7629 kernel configs.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
@openwrt-bot
openwrt-bot merged commit 70c61a2 into openwrt:main Sep 3, 2026
5 checks passed
@jonasjelonek

Copy link
Copy Markdown
Member

Thanks! Rebased on top of main and merged!

@namiltd
namiltd deleted the dsa-mediatek1 branch September 3, 2026 17:10
Lienol pushed a commit to Lienol/openwrt that referenced this pull request Sep 4, 2026
Migrate Buffalo WSR-2533DHP2, ELECOM WRC-2533GENT and TOTOLINK A8000RU
from swconfig to DSA. These devices use an external Realtek RTL8367S
switch handled by the rtl8365mb DSA driver.

Per-device changes:
 - Drop the proprietary mediatek,rtk-gsw node
 - Add realtek,rtl8365mb DSA switch with ports lan1-lan4, wan and CPU
 - Move CPU port to gmac0 at 2500base-x (HSGMII)
 - Remove gmac1 (was 5u@eth1 in swconfig; DSA uses single CPU port)
 - Drop unused rgmii_via_gmac2 pin group
 - Replace swconfig with kmod-dsa-rtl8365mb
 - Bump DEVICE_COMPAT_VERSION (config migration not possible)
 - Remove swconfig board setup from 02_network
 - Disable CONFIG_RTL8367S_GSW in mt7622 kernel config

CPU link / bandwidth notes:
 - Buffalo WSR-2533DHP2 and TOTOLINK A8000RU: already used 2500base-x
   on gmac0 before this change; aggregate bandwidth stays the same.
 - ELECOM WRC-2533GENT: gmac0 moves from SGMII (1G) to 2500base-x
   (HSGMII).  The swconfig setup previously used two 1G CPU links
   (gmac0 + gmac1) for 2 Gbps aggregate; DSA collapses this to a
   single 2.5 Gbps link.

MAC address assignment notes:
 - Buffalo WSR-2533DHP2: WAN uses base MAC + 1, gmac0/LAN uses base MAC
   (previously the WAN MAC existed on the implicit eth1/gmac1 interface)
 - ELECOM WRC-2533GENT: WAN inherits CPU MAC via DSA conduit
   (original gmac1 had no nvmem-cells assignment)
 - TOTOLINK A8000RU: WAN reuses macaddr_factory_24 (previously gmac1)

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt/openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
Lienol pushed a commit to Lienol/openwrt that referenced this pull request Sep 4, 2026
All mt7622 devices using the RTL8367S switch have been migrated to
the generic rtl8365mb DSA driver. Remove the now-unused RTL8367S_GSW
driver and disable swconfig in the mt7622 kernel config, since no
device in this target needs it anymore.

The driver and its Kconfig symbol are shared across the mediatek
target, so this also drops the tree-wide files/drivers/net/phy/rtk/
sources and the now-dead "# CONFIG_RTL8367S_GSW is not set" line
from the filogic, mt7623 and mt7629 kernel configs.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt/openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
@dangowrt

dangowrt commented Sep 4, 2026

Copy link
Copy Markdown
Member

Works fine -- but makes MediaTek flow offloading no longer kick in. However, MT7622 manages to forward 1Gbit/s half-duplex which is anyway the RGMII "router walking on a stick" bottlekneck of that device.

ELECOM WRC-2533GENT bootlog after this change:

00: 0000 0000
BP: 0000 0041 [0000]
G0: 0190 0000
T0: 0000 0362 [000F]
Jump to BL

UNIVPLL_CON0 = 0xFE000000!!!
mt_pll_init: Set pll frequency for 25M crystal
[PMIC_WRAP]wrap_init pass,the return value=0.
[pmic_init] Preloader Start..................
[pmic_init] MT6380 CHIP Code, reg_val = 0, 1:E2  0:E3
[pmic_init] Done...................
Chip part number:7622A
MT7622 Version: 1.2.6, (iPA) 
SSC OFF
mt_pll_post_init: mt_get_cpu_freq = 1350000Khz
mt_pll_post_init: mt_get_mem_freq = 1600000Khz
mt_pll_post_init: mt_get_bus_freq = 1119920Khz
[PLFM] Init I2C: OK(0)

[BLDR] Build Time: 20171227-144310
==== Dump RGU Reg ========
RGU MODE:     4D
RGU LENGTH:   FFE0
RGU STA:      0
RGU INTERVAL: FFF
RGU SWSYSRST: 8000
==== Dump RGU Reg End ====
RGU: g_rgu_satus:0
 mtk_wdt_mode_config  mode value=10, tmp:22000010
PL P ON
WDT does not trigger reboot
WDT NONRST=0x20000000
WDT IRQ_EN=0x340003
RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
[EMI] MDL number = 2
[EMI] DRAMC calibration start

[EMI] DRAMC calibration end

[EMI]rank size auto detect
[EMI]rank0 size: 0x20000000
[MEM] complex R/W mem test pass
RAM_CONSOLE wdt status (0x0)=0x0
[SNF] [Cheng] ECC Control (1: Enable, 0: Disable) : 0

[SNF] Unlock all blocks ...

[SNF] Lock register(before). lock:0x7C 

[SNF] Lock register (after) new lock: 0

[BBT] BMT.v2 is found at 0x3FF
[SNF] Unlock all blocks ...

[SNF] Lock register(before). lock:0x0 

[SNF] Lock register (after) new lock: 0

[PLFM] Init Boot Device: OK(0)

[PART] blksz: 2048B
[PART] [0x0000000000000000-0x000000000007FFFF] "PRELOADER" (256 blocks) 
[PART] [0x0000000000080000-0x00000000000BFFFF] "tee1" (128 blocks) 
[PART] [0x00000000000C0000-0x000000000013FFFF] "lk" (256 blocks) 

Device APC domain init setup:

Domain Setup (0x0)
Domain Setup (0x0)
Device APC domain after setup:
Domain Setup (0x0)
Domain Setup (0x0)
Bad_Block_Table init, sizeof(Bad_Block_Table)= 8192 
[PART] Image with part header
[PART] name : LK
[PART] addr : FFFFFFFFh mode : -1
[PART] size : 360444
[PART] magic: 58881688h

[PART] load "lk" from 0x00000000000C0200 (dev) to 0x41E00000 (mem) [SUCCESS]
[PART] load speed: 10352KB/s, 360444 bytes, 34ms
load lk (ret=0)
[PART] Image with part header
[PART] name : atf
[PART] addr : FFFFFFFFh mode : -1
[PART] size : 62032
[PART] magic: 58881688h

[PART] load "tee1" from 0x0000000000080200 (dev) to 0x43000DC0 (mem) [SUCCESS]
[PART] load speed: 8653KB/s, 62032 bytes, 7ms
load tee1 (ret=0)
[BLDR] bldr load tee part ret=0x0, addr=0x43001000
[BLDR] boot part. not found
[BLDR] part_load_images ret=0x0
[BLDR] Others, jump to ATF

[BLDR] jump to 0x41E00000
[BLDR] <0x41E00000>=0xEA00000F
[BLDR] <0x41E00004>=0xE59FF014


U-Boot 2014.04-rc1 (Mar 22 2018 - 17:07:08)

DRAM:  496 MiB
NAND:  Recognize SNAND: ID [ef aa ], Device Name [Winbond 1Gb], Page Size [2048]B Spare Size [64]B Total Size [128]MB
[mtk_snand] probe successfully!
[BBT] BMT.v2 is found at 0x3ff
128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   mtk_eth
Uip activated
  *** U-Boot SPI NAND ***  Press UP/DOWN to move or Press 1~9,a~b to choose, ENTER to select     1. System Load Linux to SDRAM via TFTP.     2. System Load Linux Kernel then write to Flash via TFTP.     3. Boot system code via Flash.     4. System Load U-Boot then write to Flash via TFTP.     5. System Load U-Boot then write to Flash via Serial.     6. System Load ATF then write to Flash via TFTP.     7. System Load Preloader then write to Flash via TFTP.     8. System Load ROM header then write to Flash via TFTP.     9. System Load CTP then write to Flash via TFTP.     a. System Load CTP then Boot to CTP (via Flash).     b. System Load flashimage then write to Flash via TFTP.     U-Boot console  Hit any key to stop autoboot:  3 ��� 2 ��� 1 ��� 0 
NAND read: device 0 offset 0x200000, size 0x2000
 8192 bytes read: OK
[do_read_image_blks]This is a FIT image,img_size = 0x490c60
[do_read_image_blks]img_blks = 0x922
[do_read_image_blks]img_align_size = 0x491000

NAND read: device 0 offset 0x200000, size 0x491000
 4788224 bytes read: OK
bootm flag=0, states=70f
## Loading kernel from FIT Image at 4007ff28 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-6.18.44
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x40080010
     Data Size:    4751821 Bytes = 4.5 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x44000000
     Entry Point:  0x44000000
     Hash algo:    crc32
     Hash value:   b687d107
     Hash algo:    sha1
     Hash value:   df631ded4ec932f0fa9ba9b1e11e7282c8b3a5de
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 4007ff28 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt elecom_wrc-2533gent device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x40508324
     Data Size:    34076 Bytes = 33.3 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   669e2103
     Hash algo:    sha1
     Hash value:   798f461f4014bd5f1b39ae031dfb7cf085f2d9f2
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x40508324
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 5cf45000, end 5cf5051b ... OK

Starting kernel ...

[ATF][     5.619235]save kernel info
[ATF][     5.622266]Kernel_EL2
[ATF][     5.625022]Kernel is 64Bit
[ATF][     5.628210]pc=0x44000000, r0=0x5cf45000, r1=0x0
INFO:    BL3-1: Preparing for EL3 exit to normal world, Kernel
INFO:    BL3-1: Next image address = 0x44000000
INFO:    BL3-1: Next image spsr = 0x3c9
[ATF][     5.646479]el3_exit
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.18.44 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 14.4.0 r36047-0f948c5111) 14.4.0, GNU ld (GNU Binutils) 2.46.1) #0 SMP Fri Sep  4 12:44:29 2026
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: Elecom WRC-2533
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: legacy bootconsole [uart8250] enabled
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
[    0.000000]   node   0: [mem 0x0000000043030000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 20 pages/cpu s43544 r8192 d30184 u81920
[    0.000000] pcpu-alloc: s43544 r8192 d30184 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x11002000 swiotlb=512 console=ttyS0,115200n8
[    0.000000] printk: log buffer data + meta data: 131072 + 458752 = 589824 bytes
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] software IO TLB: area num 2.
[    0.000000] software IO TLB: mapped [mem 0x000000005f4c0000-0x000000005f5c0000] (1MB)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 131072
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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 10 jiffies.
[    0.000000] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.000000] arch_timer: cp15 timer running at 12.50MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 80ns, wraps every 4398046511080ns
[    0.008544] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[    0.019278] pid_max: default: 32768 minimum: 301
[    0.026402] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.033983] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.047814] rcu: Hierarchical SRCU implementation.
[    0.052783] rcu: 	Max phase no-delay instances is 1000.
[    0.058386] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.066977] smp: Bringing up secondary CPUs ...
[    0.072086] Detected VIPT I-cache on CPU1
[    0.072183] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.072258] smp: Brought up 1 node, 2 CPUs
[    0.087407] SMP: Total of 2 processors activated.
[    0.092274] CPU: All CPU(s) started at EL2
[    0.096517] CPU features: detected: 32-bit EL0 Support
[    0.101836] CPU features: detected: CRC32 instructions
[    0.107180] alternatives: applying system-wide alternatives
[    0.113083] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.121864] Memory: 495392K/524288K available (9920K kernel code, 930K rwdata, 2884K rodata, 960K init, 308K bss, 26952K reserved, 0K cma-reserved)
[    0.140095] posixtimers hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.147832] futex hash table entries: 512 (32768 bytes on 1 NUMA nodes, total 32 KiB, linear).
[    0.156786] 28960 pages in range for non-PLT usage
[    0.156790] 520480 pages in range for PLT usage
[    0.163295] pinctrl core: initialized pinctrl subsystem
[    0.175772] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.182225] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.189564] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.197604] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.206315] thermal_sys: Registered thermal governor 'fair_share'
[    0.206320] thermal_sys: Registered thermal governor 'bang_bang'
[    0.212629] thermal_sys: Registered thermal governor 'step_wise'
[    0.218854] thermal_sys: Registered thermal governor 'user_space'
[    0.225144] ASID allocator initialised with 65536 entries
[    0.237724] pstore: Using crash dump compression: deflate
[    0.243326] pstore: Registered ramoops as persistent store backend
[    0.249726] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.264583] /pcie@1a143000: Fixed dependency cycle(s) with /pcie@1a143000/interrupt-controller
[    0.286895] regulator GPIO handle specifies active low - ignored
[    0.293524] SCSI subsystem initialized
[    0.297573] libata version 3.00 loaded.
[    0.303038] clocksource: Switched to clocksource arch_sys_counter
[    0.311940] NET: Registered PF_INET protocol family
[    0.317125] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.326023] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.334696] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.342727] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.350780] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.358366] TCP: Hash tables configured (established 4096 bind 4096)
[    0.365164] MPTCP token hash table entries: 512 (order: 2, 12288 bytes, linear)
[    0.372835] UDP hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.379710] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.387215] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.393118] PCI: CLS 0 bytes, default 64
[    0.398213] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.409882] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.415935] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.428777] cryptd: max_cpu_qlen set to 1000
[    0.482453] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.491225] mt7622-pinctrl 10211000.pinctrl: invalid group "pwm_ch7_2" for function "pwm"
[    0.503728] mt-pmic-pwrap 10001000.pwrap: unexpected interrupt int=0x1
[    0.524244] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.534402] printk: legacy console [ttyS0] disabled
[    0.559985] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 118, base_baud = 1562500) is a ST16650V2
[    0.569584] printk: legacy console [ttyS0] enabled
[    0.569584] printk: legacy console [ttyS0] enabled
[    0.579184] printk: legacy bootconsole [uart8250] disabled
[    0.579184] printk: legacy bootconsole [uart8250] disabled
[    0.611302] 11004000.serial: ttyS1 at MMIO 0x11004000 (irq = 119, base_baud = 1562500) is a ST16650V2
[    0.621736] mtk_rng 1020f000.rng: registered RNG driver
[    0.623639] random: crng init done
[    0.633259] loop: module loaded
[    0.636946] mtk-ecc 1100e000.ecc: probed
[    0.643892] spi-nand spi2.0: Winbond SPI NAND was found.
[    0.649213] spi-nand spi2.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.657403] mtk-snand 1100d000.spi: ECC strength: 4 bits per 512 bytes
[    0.664224] 7 fixed-partitions partitions found on MTD device spi2.0
[    0.670576] Creating 7 MTD partitions on "spi2.0":
[    0.675430] 0x000000000000-0x000000080000 : "Preloader"
[    0.681550] 0x000000080000-0x0000000c0000 : "ATF"
[    0.686782] 0x0000000c0000-0x000000140000 : "uboot"
[    0.692408] 0x000000140000-0x0000001c0000 : "uboot-env"
[    0.698438] 0x0000001c0000-0x000000200000 : "factory"
[    0.704287] 0x000000200000-0x000002200000 : "firmware"
[    0.743667] 2 fit-fw partitions found on MTD device firmware
[    0.749327] 0x000000200000-0x0000006a0000 : "kernel"
[    0.754522] 0x0000006a0000-0x000002200000 : "rootfs"
[    0.759723] mtd: setting mtd7 (rootfs) as root device
[    0.764924] 1 squashfs-split partitions found on MTD device rootfs
[    0.771099] 0x000000be0000-0x000002200000 : "rootfs_data"
[    0.776771] 0x000002200000-0x000006200000 : "reserved"
[    0.855520] mtk_soc_eth 1b100000.ethernet: legacy DT: missing interrupt-names.
[    0.994297] mtk_soc_eth 1b100000.ethernet: generated random MAC address 20:08:02:00:00:00
[    1.005327] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffffc0818c0000, irq 126
[    1.015455] rtc_mt7622 10212800.rtc: registered as rtc0
[    1.020706] rtc_mt7622 10212800.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[    1.029682] i2c_dev: i2c /dev entries driver
[    1.036733] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.046674] NET: Registered PF_INET6 protocol family
[    1.052395] Segment Routing with IPv6
[    1.056113] In-situ OAM (IOAM) with IPv6
[    1.060077] NET: Registered PF_PACKET protocol family
[    1.065211] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.078356] 8021q: 802.1Q VLAN Support v1.8
[    1.104930] mtk-pcie 1a143000.pcie: host bridge /pcie@1a143000 ranges:
[    1.111479] mtk-pcie 1a143000.pcie: Parsing ranges property...
[    1.117355] mtk-pcie 1a143000.pcie:      MEM 0x0020000000..0x0027ffffff -> 0x0020000000
[    1.249884] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[    1.256129] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.261625] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[    1.268518] pci_bus 0000:00: scanning bus
[    1.272662] pci 0000:00:00.0: [14c3:3258] type 01 class 0x060400 PCIe Root Port
[    1.280075] pci 0000:00:00.0: BAR 0 [mem 0x00000000-0x1ffffffff 64bit pref]
[    1.287061] pci 0000:00:00.0: PCI bridge to [bus 00]
[    1.292041] pci 0000:00:00.0:   bridge window [mem 0x00000000-0x000fffff]
[    1.302025] pci_bus 0000:00: fixups for bus
[    1.306240] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    1.312946] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.320975] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    1.327904] pci_bus 0000:01: scanning bus
[    1.332166] pci 0000:01:00.0: [14c3:7615] type 00 class 0x000280 PCIe Endpoint
[    1.339863] pci 0000:01:00.0: BAR 0 [mem 0x00000000-0x000fffff 64bit]
[    1.347144] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0000:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.373112] pci 0000:01:00.0: ASPM: default states L0s L1
[    1.378555] pci_bus 0000:01: fixups for bus
[    1.382732] pci_bus 0000:01: bus scan returning with max=01
[    1.388315] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.394971] pci_bus 0000:00: bus scan returning with max=01
[    1.400551] pci 0000:00:00.0: BAR 0 [mem size 0x200000000 64bit pref]: can't assign; no space
[    1.409078] pci 0000:00:00.0: BAR 0 [mem size 0x200000000 64bit pref]: failed to assign
[    1.417085] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]: assigned
[    1.424569] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]: releasing
[    1.432136] pci 0000:00:00.0: BAR 0 [mem size 0x200000000 64bit pref]: can't assign; no space
[    1.440666] pci 0000:00:00.0: BAR 0 [mem size 0x200000000 64bit pref]: failed to assign
[    1.448672] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]: assigned
[    1.456158] pci 0000:01:00.0: BAR 0 [mem 0x20000000-0x200fffff 64bit]: assigned
[    1.463552] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.468548] pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]
[    1.475405] pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc
[    1.484449] pci_bus 0000:00: resource 4 [mem 0x20000000-0x27ffffff]
[    1.490712] pci_bus 0000:01: resource 1 [mem 0x20000000-0x200fffff]
[    1.497014] pci 0000:00:00.0: save config 0x00: 0x325814c3
[    1.502506] pci 0000:00:00.0: save config 0x04: 0x00100000
[    1.508005] pci 0000:00:00.0: save config 0x08: 0x06040000
[    1.513502] pci 0000:00:00.0: save config 0x0c: 0x00010000
[    1.518993] pci 0000:00:00.0: save config 0x10: 0x0000000c
[    1.524490] pci 0000:00:00.0: save config 0x14: 0x00000000
[    1.529981] pci 0000:00:00.0: save config 0x18: 0x40010100
[    1.535478] pci 0000:00:00.0: save config 0x1c: 0x04200000
[    1.540970] pci 0000:00:00.0: save config 0x20: 0x20002000
[    1.546468] pci 0000:00:00.0: save config 0x24: 0x00000000
[    1.551959] pci 0000:00:00.0: save config 0x28: 0x00000000
[    1.557460] pci 0000:00:00.0: save config 0x2c: 0x00000000
[    1.562951] pci 0000:00:00.0: save config 0x30: 0x00000000
[    1.568448] pci 0000:00:00.0: save config 0x34: 0x00000050
[    1.573945] pci 0000:00:00.0: save config 0x38: 0x00000000
[    1.579436] pci 0000:00:00.0: save config 0x3c: 0x00020100
[    1.585415] pcieport 0000:00:00.0: assign IRQ: got 132
[    1.590587] pcieport 0000:00:00.0: enabling device (0000 -> 0002)
[    1.596801] pcieport 0000:00:00.0: enabling bus mastering
[    1.602338] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x1a1430c0
[    1.610014] pcieport 0000:00:00.0: PME: Signaling with IRQ 132
[    1.616034] pcieport 0000:00:00.0: bwctrl: enabled with IRQ 132
[    1.621981] pcieport 0000:00:00.0: save config 0x00: 0x325814c3
[    1.627917] pcieport 0000:00:00.0: save config 0x04: 0x00100006
[    1.633848] pcieport 0000:00:00.0: save config 0x08: 0x06040000
[    1.639773] pcieport 0000:00:00.0: save config 0x0c: 0x00010000
[    1.645704] pcieport 0000:00:00.0: save config 0x10: 0x0000000c
[    1.651629] pcieport 0000:00:00.0: save config 0x14: 0x00000000
[    1.657562] pcieport 0000:00:00.0: save config 0x18: 0x40010100
[    1.663493] pcieport 0000:00:00.0: save config 0x1c: 0x04200000
[    1.669418] pcieport 0000:00:00.0: save config 0x20: 0x20002000
[    1.675353] pcieport 0000:00:00.0: save config 0x24: 0x00000000
[    1.681279] pcieport 0000:00:00.0: save config 0x28: 0x00000000
[    1.687211] pcieport 0000:00:00.0: save config 0x2c: 0x00000000
[    1.693142] pcieport 0000:00:00.0: save config 0x30: 0x00000000
[    1.699067] pcieport 0000:00:00.0: save config 0x34: 0x00000050
[    1.704996] pcieport 0000:00:00.0: save config 0x38: 0x00000000
[    1.710922] pcieport 0000:00:00.0: save config 0x3c: 0x00020184
[    1.717235] pci 0000:01:00.0: save config 0x00: 0x761514c3
[    1.722728] pci 0000:01:00.0: save config 0x04: 0x00100000
[    1.728226] pci 0000:01:00.0: save config 0x08: 0x00028000
[    1.733727] pci 0000:01:00.0: save config 0x0c: 0x00000000
[    1.739218] pci 0000:01:00.0: save config 0x10: 0x20000004
[    1.744717] pci 0000:01:00.0: save config 0x14: 0x00000000
[    1.750209] pci 0000:01:00.0: save config 0x18: 0x00000000
[    1.755705] pci 0000:01:00.0: save config 0x1c: 0x00000000
[    1.761197] pci 0000:01:00.0: save config 0x20: 0x00000000
[    1.766695] pci 0000:01:00.0: save config 0x24: 0x00000000
[    1.772187] pci 0000:01:00.0: save config 0x28: 0x00000000
[    1.777683] pci 0000:01:00.0: save config 0x2c: 0x14c37615
[    1.783180] pci 0000:01:00.0: save config 0x30: 0x00000000
[    1.788671] pci 0000:01:00.0: save config 0x34: 0x00000050
[    1.794170] pci 0000:01:00.0: save config 0x38: 0x00000000
[    1.799662] pci 0000:01:00.0: save config 0x3c: 0x00000100
[    1.806243] mtk_hsdma 1b007000.dma-controller: MediaTek HSDMA driver registered
[    1.813951] clk: Disabling unused clocks
[    1.818160] PM: genpd: Disabling unused power domains
[    1.823459] check access for rdinit=/init failed: -2, ignoring
[    1.829440] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[    1.839034] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[    1.848527] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[    1.857938] mtdblock: MTD device 'rootfs' is NAND, please consider using UBI block devices instead.
[    1.869840] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    1.877342] Freeing unused kernel memory: 960K
[    1.881830] Run /sbin/init as init process
[    1.885978]   with arguments:
[    1.888937]     /sbin/init
[    1.891635]   with environment:
[    1.894773]     HOME=/
[    1.897124]     TERM=linux
[    2.456568] init: Console is alive
[    2.460132] init: - watchdog -
[    3.308363] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.350936] usbcore: registered new interface driver usbfs
[    3.356530] usbcore: registered new interface driver hub
[    3.361873] usbcore: registered new device driver usb
[    3.367685] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    3.523538] rtl8365mb-mdio mdio-bus:1d: found an RTL8367S switch
[    3.737193] rtl8365mb-mdio mdio-bus:1d: missing child interrupt-controller node
[    3.744546] rtl8365mb-mdio mdio-bus:1d: no interrupt support
[    3.973972] rtl8365mb-mdio mdio-bus:1d: configuring for fixed/2500base-x link mode
[    3.989103] rtl8365mb-mdio mdio-bus:1d lan1 (uninitialized): PHY [mdio-bus:1d:user_mii:00] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    3.989326] rtl8365mb-mdio mdio-bus:1d: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    4.006490] rtl8365mb-mdio mdio-bus:1d lan2 (uninitialized): PHY [mdio-bus:1d:user_mii:01] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    4.026927] rtl8365mb-mdio mdio-bus:1d lan3 (uninitialized): PHY [mdio-bus:1d:user_mii:02] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    4.044157] rtl8365mb-mdio mdio-bus:1d lan4 (uninitialized): PHY [mdio-bus:1d:user_mii:03] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    4.061394] rtl8365mb-mdio mdio-bus:1d wan (uninitialized): PHY [mdio-bus:1d:user_mii:04] driver [RTL8365MB-VC Gigabit Ethernet] (irq=POLL)
[    4.077726] mtk_soc_eth 1b100000.ethernet eth0: entered promiscuous mode
[    4.084467] DSA: tree 0 setup
[    4.092696] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    4.097969] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 1
[    4.107024] xhci-mtk 1a0c0000.usb: hcc params 0x01403198 hci version 0x96 quirks 0x0000000000200010
[    4.116119] xhci-mtk 1a0c0000.usb: irq 134, io mem 0x1a0c0000
[    4.121969] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[    4.127212] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
[    4.134619] xhci-mtk 1a0c0000.usb: Host supports USB 3.0 SuperSpeed
[    4.141293] hub 1-0:1.0: USB hub found
[    4.145135] hub 1-0:1.0: 2 ports detected
[    4.149469] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.157877] hub 2-0:1.0: USB hub found
[    4.161640] hub 2-0:1.0: 1 port detected
[    4.170308] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.181438] init: - preinit -
[    4.662539] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[    4.671102] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    4.678934] rtl8365mb-mdio mdio-bus:1d lan1: configuring for phy/gmii link mode
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
[    8.890983] mount_root: no usable overlay filesystem found, using tmpfs overlay
[    8.898889] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    8.910178] urandom-seed: Seed file not found (/etc/urandom.seed)
- generating board file -
Cannot parse config file '/etc/fw_env.config': No such file or directory
Failed to find NVMEM device
[    9.927824] procd: - early -
[    9.930780] procd: - watchdog -
[   10.508259] procd: - watchdog -
[   10.512448] procd: - ubus -
[   10.669543] procd: - init -
Please press Enter to activate this console.
[   11.182852] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.245407] hid: raw HID events driver (C) Jiri Kosina
[   11.266452] Bluetooth: Core ver 2.22
[   11.270130] NET: Registered PF_BLUETOOTH protocol family
[   11.274654] urngd: v1.0.2 started.
[   11.275478] Bluetooth: HCI device and connection manager initialized
[   11.285190] Bluetooth: HCI socket layer initialized
[   11.290063] Bluetooth: L2CAP socket layer initialized
[   11.295138] Bluetooth: SCO socket layer initialized
[   11.301322] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   11.306685] Bluetooth: BNEP filters: protocol multicast
[   11.311911] Bluetooth: BNEP socket layer initialized
[   11.318827] Loading modules backported from Linux version v7.2-0-g8d3ae59288f1
[   11.326091] Backport generated by backports.git v5.15.58-1-198-g2580fa90cb79
[   11.334409] Bluetooth: HCI UART driver ver 2.3
[   11.338861] Bluetooth: HCI UART protocol H4 registered
[   11.344024] Bluetooth: HCI UART protocol BCSP registered
[   11.349328] Bluetooth: HCI UART protocol ATH3K registered
[   11.355993] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[   11.361930] Bluetooth: HIDP socket layer initialized
[   11.393072] Bluetooth: RFCOMM TTY layer initialized
[   11.397973] Bluetooth: RFCOMM socket layer initialized
[   11.403141] Bluetooth: RFCOMM ver 1.11
[   11.555178] mt7615e 0000:01:00.0: assign IRQ: got 132
[   11.560285] mt7615e 0000:01:00.0: enabling device (0000 -> 0002)
[   11.566403] mt7615e 0000:01:00.0: enabling bus mastering
[   11.571870] mtk-pcie 1a143000.pcie: msi#0 address_hi 0x0 address_lo 0x1a1430c0
[   11.599259] mt7615e 0000:01:00.0: registering led 'mt76-phy0'
[   11.643648] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.650461] ieee80211 phy0: copying sband (band 1) due to VHT EXT NSS BW flag
[   11.664000] mt7622-wmac 18000000.wmac: registering led 'mt76-phy1'
[   11.733547] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   11.735271] mt7615e 0000:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20180518100604a
[   11.735271] 
[   11.763966] mt7622-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20190801210006a
[   11.763966] 
[   11.791409] PPP generic driver version 2.4.2
[   11.799066] NET: Registered PF_PPPOX protocol family
[   11.812933] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.113320] mt7622-wmac 18000000.wmac: N9 Firmware Version: _reserved_, Build Time: 20220630094834
[   12.176742] mt7615e 0000:01:00.0: N9 Firmware Version: _reserved_, Build Time: 20200814163649
[   12.269180] mt7615e 0000:01:00.0: CR4 Firmware Version: _reserved_, Build Time: 20190415154149
[   18.678510] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[   18.695069] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/2500base-x link mode
[   18.704776] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
[   18.707214] rtl8365mb-mdio mdio-bus:1d lan1: configuring for phy/gmii link mode
[   18.734227] br-lan: port 1(lan1) entered blocking state
[   18.739477] br-lan: port 1(lan1) entered disabled state
[   18.744776] rtl8365mb-mdio mdio-bus:1d lan1: entered allmulticast mode
[   18.751311] mtk_soc_eth 1b100000.ethernet eth0: entered allmulticast mode
[   18.764013] rtl8365mb-mdio mdio-bus:1d lan1: entered promiscuous mode
[   18.788736] rtl8365mb-mdio mdio-bus:1d lan2: configuring for phy/gmii link mode
[   18.816772] br-lan: port 2(lan2) entered blocking state
[   18.822033] br-lan: port 2(lan2) entered disabled state
[   18.827373] rtl8365mb-mdio mdio-bus:1d lan2: entered allmulticast mode
[   18.835986] rtl8365mb-mdio mdio-bus:1d lan2: entered promiscuous mode
[   18.851009] rtl8365mb-mdio mdio-bus:1d lan3: configuring for phy/gmii link mode
[   18.879095] br-lan: port 3(lan3) entered blocking state
[   18.884375] br-lan: port 3(lan3) entered disabled state
[   18.889637] rtl8365mb-mdio mdio-bus:1d lan3: entered allmulticast mode
[   18.898274] rtl8365mb-mdio mdio-bus:1d lan3: entered promiscuous mode
[   18.912287] rtl8365mb-mdio mdio-bus:1d lan4: configuring for phy/gmii link mode
[   18.933083] br-lan: port 4(lan4) entered blocking state
[   18.938325] br-lan: port 4(lan4) entered disabled state
[   18.939564] jffs2: cannot read OOB for EB at 015e0000, requested 8 bytes, read 8 bytes, error -74
[   18.943609] rtl8365mb-mdio mdio-bus:1d lan4: entered allmulticast mode
[   18.950368] rtl8365mb-mdio mdio-bus:1d lan4: entered promiscuous mode
[   18.978330] rtl8365mb-mdio mdio-bus:1d wan: configuring for phy/gmii link mode
[   22.137950] rtl8365mb-mdio mdio-bus:1d wan: Link is Up - 1Gbps/Full - flow control rx/tx



BusyBox v1.38.0 (2026-05-13 02:19:59 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r36047-0f948c5111
 -----------------------------------------------------

 === WARNING! =====================================
 There is no root password defined on this device!
 Use the "passwd" command to set up a new password
 in order to prevent unauthorized SSH logins.
 --------------------------------------------------

root@OpenWrt:~# ping 9.9.9.9
PING 9.9.9.9 (9.9.9.9): 56 data bytes
64 bytes from 9.9.9.9: seq=0 ttl=55 time=4.208 ms
64 bytes from 9.9.9.9: seq=1 ttl=55 time=3.931 ms
64 bytes from 9.9.9.9: seq=2 ttl=55 time=3.671 ms
64 bytes from 9.9.9.9: seq=3 ttl=55 time=3.498 ms
64 bytes from 9.9.9.9: seq=4 ttl=55 time=3.895 ms
^C
--- 9.9.9.9 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 3.498/3.840/4.208 ms
root@OpenWrt:~# cat /sys/class/net/eth0/dsa/tagging
rtl8_4
root@OpenWrt:~# 

@namiltd

namiltd commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor Author

The CPU↔switch trunk on this board is 2.5Gbps HSGMII now, not 1G RGMII — confirmed by both the DSA commit message and the boot log (configuring for fixed/2500base-x link mode, Link is Up - 2.5Gbps/Full). Additionally, LAN-to-LAN switching is still hardware-offloaded inside the RTL8365MB switch chip itself, independent of MediaTek's PPE/HNAT and unaffected by the tagger/DSA change — only CPU-routed (WAN-bound) traffic loses hardware acceleration here.

@dangowrt

dangowrt commented Sep 4, 2026

Copy link
Copy Markdown
Member

Even better 🥳 Only now seeing the switch is connected on the SerDes interface of MT7622 rather than the RGMII, and part of this PR is to have a switch driver which can setup the CPU port to run with 2500Base-X (ie. RealTek HSGMII without in-band auto-negotiation), while previous it was using SGMII with the old swconfig driver.

cuechan pushed a commit to cuechan/openwrt that referenced this pull request Sep 19, 2026
Migrate Buffalo WSR-2533DHP2, ELECOM WRC-2533GENT and TOTOLINK A8000RU
from swconfig to DSA. These devices use an external Realtek RTL8367S
switch handled by the rtl8365mb DSA driver.

Per-device changes:
 - Drop the proprietary mediatek,rtk-gsw node
 - Add realtek,rtl8365mb DSA switch with ports lan1-lan4, wan and CPU
 - Move CPU port to gmac0 at 2500base-x (HSGMII)
 - Remove gmac1 (was 5u@eth1 in swconfig; DSA uses single CPU port)
 - Drop unused rgmii_via_gmac2 pin group
 - Replace swconfig with kmod-dsa-rtl8365mb
 - Bump DEVICE_COMPAT_VERSION (config migration not possible)
 - Remove swconfig board setup from 02_network
 - Disable CONFIG_RTL8367S_GSW in mt7622 kernel config

CPU link / bandwidth notes:
 - Buffalo WSR-2533DHP2 and TOTOLINK A8000RU: already used 2500base-x
   on gmac0 before this change; aggregate bandwidth stays the same.
 - ELECOM WRC-2533GENT: gmac0 moves from SGMII (1G) to 2500base-x
   (HSGMII).  The swconfig setup previously used two 1G CPU links
   (gmac0 + gmac1) for 2 Gbps aggregate; DSA collapses this to a
   single 2.5 Gbps link.

MAC address assignment notes:
 - Buffalo WSR-2533DHP2: WAN uses base MAC + 1, gmac0/LAN uses base MAC
   (previously the WAN MAC existed on the implicit eth1/gmac1 interface)
 - ELECOM WRC-2533GENT: WAN inherits CPU MAC via DSA conduit
   (original gmac1 had no nvmem-cells assignment)
 - TOTOLINK A8000RU: WAN reuses macaddr_factory_24 (previously gmac1)

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
cuechan pushed a commit to cuechan/openwrt that referenced this pull request Sep 19, 2026
All mt7622 devices using the RTL8367S switch have been migrated to
the generic rtl8365mb DSA driver. Remove the now-unused RTL8367S_GSW
driver and disable swconfig in the mt7622 kernel config, since no
device in this target needs it anymore.

The driver and its Kconfig symbol are shared across the mediatek
target, so this also drops the tree-wide files/drivers/net/phy/rtk/
sources and the now-dead "# CONFIG_RTL8367S_GSW is not set" line
from the filogic, mt7623 and mt7629 kernel configs.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
xize pushed a commit to xize/openwrt-xsdk that referenced this pull request Sep 20, 2026
Migrate Buffalo WSR-2533DHP2, ELECOM WRC-2533GENT and TOTOLINK A8000RU
from swconfig to DSA. These devices use an external Realtek RTL8367S
switch handled by the rtl8365mb DSA driver.

Per-device changes:
 - Drop the proprietary mediatek,rtk-gsw node
 - Add realtek,rtl8365mb DSA switch with ports lan1-lan4, wan and CPU
 - Move CPU port to gmac0 at 2500base-x (HSGMII)
 - Remove gmac1 (was 5u@eth1 in swconfig; DSA uses single CPU port)
 - Drop unused rgmii_via_gmac2 pin group
 - Replace swconfig with kmod-dsa-rtl8365mb
 - Bump DEVICE_COMPAT_VERSION (config migration not possible)
 - Remove swconfig board setup from 02_network
 - Disable CONFIG_RTL8367S_GSW in mt7622 kernel config

CPU link / bandwidth notes:
 - Buffalo WSR-2533DHP2 and TOTOLINK A8000RU: already used 2500base-x
   on gmac0 before this change; aggregate bandwidth stays the same.
 - ELECOM WRC-2533GENT: gmac0 moves from SGMII (1G) to 2500base-x
   (HSGMII).  The swconfig setup previously used two 1G CPU links
   (gmac0 + gmac1) for 2 Gbps aggregate; DSA collapses this to a
   single 2.5 Gbps link.

MAC address assignment notes:
 - Buffalo WSR-2533DHP2: WAN uses base MAC + 1, gmac0/LAN uses base MAC
   (previously the WAN MAC existed on the implicit eth1/gmac1 interface)
 - ELECOM WRC-2533GENT: WAN inherits CPU MAC via DSA conduit
   (original gmac1 had no nvmem-cells assignment)
 - TOTOLINK A8000RU: WAN reuses macaddr_factory_24 (previously gmac1)

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
xize pushed a commit to xize/openwrt-xsdk that referenced this pull request Sep 20, 2026
All mt7622 devices using the RTL8367S switch have been migrated to
the generic rtl8365mb DSA driver. Remove the now-unused RTL8367S_GSW
driver and disable swconfig in the mt7622 kernel config, since no
device in this target needs it anymore.

The driver and its Kconfig symbol are shared across the mediatek
target, so this also drops the tree-wide files/drivers/net/phy/rtk/
sources and the now-dead "# CONFIG_RTL8367S_GSW is not set" line
from the filogic, mt7623 and mt7629 kernel configs.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
Quarx2k pushed a commit to Quarx2k/OpenWRT-BE7000 that referenced this pull request Sep 22, 2026
Migrate Buffalo WSR-2533DHP2, ELECOM WRC-2533GENT and TOTOLINK A8000RU
from swconfig to DSA. These devices use an external Realtek RTL8367S
switch handled by the rtl8365mb DSA driver.

Per-device changes:
 - Drop the proprietary mediatek,rtk-gsw node
 - Add realtek,rtl8365mb DSA switch with ports lan1-lan4, wan and CPU
 - Move CPU port to gmac0 at 2500base-x (HSGMII)
 - Remove gmac1 (was 5u@eth1 in swconfig; DSA uses single CPU port)
 - Drop unused rgmii_via_gmac2 pin group
 - Replace swconfig with kmod-dsa-rtl8365mb
 - Bump DEVICE_COMPAT_VERSION (config migration not possible)
 - Remove swconfig board setup from 02_network
 - Disable CONFIG_RTL8367S_GSW in mt7622 kernel config

CPU link / bandwidth notes:
 - Buffalo WSR-2533DHP2 and TOTOLINK A8000RU: already used 2500base-x
   on gmac0 before this change; aggregate bandwidth stays the same.
 - ELECOM WRC-2533GENT: gmac0 moves from SGMII (1G) to 2500base-x
   (HSGMII).  The swconfig setup previously used two 1G CPU links
   (gmac0 + gmac1) for 2 Gbps aggregate; DSA collapses this to a
   single 2.5 Gbps link.

MAC address assignment notes:
 - Buffalo WSR-2533DHP2: WAN uses base MAC + 1, gmac0/LAN uses base MAC
   (previously the WAN MAC existed on the implicit eth1/gmac1 interface)
 - ELECOM WRC-2533GENT: WAN inherits CPU MAC via DSA conduit
   (original gmac1 had no nvmem-cells assignment)
 - TOTOLINK A8000RU: WAN reuses macaddr_factory_24 (previously gmac1)

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt/openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
Quarx2k pushed a commit to Quarx2k/OpenWRT-BE7000 that referenced this pull request Sep 22, 2026
All mt7622 devices using the RTL8367S switch have been migrated to
the generic rtl8365mb DSA driver. Remove the now-unused RTL8367S_GSW
driver and disable swconfig in the mt7622 kernel config, since no
device in this target needs it anymore.

The driver and its Kconfig symbol are shared across the mediatek
target, so this also drops the tree-wide files/drivers/net/phy/rtk/
sources and the now-dead "# CONFIG_RTL8367S_GSW is not set" line
from the filogic, mt7623 and mt7629 kernel configs.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt/openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Oct 10, 2026
Migrate Buffalo WSR-2533DHP2, ELECOM WRC-2533GENT and TOTOLINK A8000RU
from swconfig to DSA. These devices use an external Realtek RTL8367S
switch handled by the rtl8365mb DSA driver.

Per-device changes:
 - Drop the proprietary mediatek,rtk-gsw node
 - Add realtek,rtl8365mb DSA switch with ports lan1-lan4, wan and CPU
 - Move CPU port to gmac0 at 2500base-x (HSGMII)
 - Remove gmac1 (was 5u@eth1 in swconfig; DSA uses single CPU port)
 - Drop unused rgmii_via_gmac2 pin group
 - Replace swconfig with kmod-dsa-rtl8365mb
 - Bump DEVICE_COMPAT_VERSION (config migration not possible)
 - Remove swconfig board setup from 02_network
 - Disable CONFIG_RTL8367S_GSW in mt7622 kernel config

CPU link / bandwidth notes:
 - Buffalo WSR-2533DHP2 and TOTOLINK A8000RU: already used 2500base-x
   on gmac0 before this change; aggregate bandwidth stays the same.
 - ELECOM WRC-2533GENT: gmac0 moves from SGMII (1G) to 2500base-x
   (HSGMII).  The swconfig setup previously used two 1G CPU links
   (gmac0 + gmac1) for 2 Gbps aggregate; DSA collapses this to a
   single 2.5 Gbps link.

MAC address assignment notes:
 - Buffalo WSR-2533DHP2: WAN uses base MAC + 1, gmac0/LAN uses base MAC
   (previously the WAN MAC existed on the implicit eth1/gmac1 interface)
 - ELECOM WRC-2533GENT: WAN inherits CPU MAC via DSA conduit
   (original gmac1 had no nvmem-cells assignment)
 - TOTOLINK A8000RU: WAN reuses macaddr_factory_24 (previously gmac1)

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Oct 10, 2026
All mt7622 devices using the RTL8367S switch have been migrated to
the generic rtl8365mb DSA driver. Remove the now-unused RTL8367S_GSW
driver and disable swconfig in the mt7622 kernel config, since no
device in this target needs it anymore.

The driver and its Kconfig symbol are shared across the mediatek
target, so this also drops the tree-wide files/drivers/net/phy/rtk/
sources and the now-dead "# CONFIG_RTL8367S_GSW is not set" line
from the filogic, mt7623 and mt7629 kernel configs.

Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
Link: openwrt#24861
Signed-off-by: Jonas Jelonek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

drop package Removes an existing package Makefile from the tracking tree kernel pull request/issue with Linux kernel related changes target/mediatek pull request/issue for mediatek target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants