How is RTL8372 support on OpenWrt?

This is a new type of switch. Is it supported?

no Linux support, as it only has a 8051 CPU Core. But there is https://github.com/logicog/RTLPlayground

There's Support for RTL837x based 2.5Gb managed switches.

The device I am trying to port has this switch. I assume BE450 has this RT836x switch, this must work right?

TP-Link BE450 has a Mediatek switch with a Realtek PHY, according to

I already know that

good. currently there is no support

there is work in progress on a device where the chip is combined with a host https://github.com/openwrt/openwrt/pull/21625

the driver from the SDK appears to be available https://github.com/JiaY-shi/rtl83xx

so with enough time and work the driver could be rewritten and added. e.g. via https://forum.openwrt.org/t/reduce-number-of-drivers-for-rtl8367s

You could start by collecting data about your device => https://openwrt.org/docs/guide-developer/adding_new_device

Thanks for this lead.

I tried to trace down the exact TP-Link products that are using RTL8367 & RTL8372 switches, and hence going back to their GPL tarballs on TP-Link website.

After some digging, here are the results:

Let’s see if the GPL tarballs might have something interesting to show us.

Also GL.inet Flint3 aka BE9300 has the same chip

/dts-v1/;

/ {
	#address-cells = <0x02>;
	#size-cells = <0x02>;
	interrupt-parent = <0x01>;
	model = "GL.iNet BE9300, Inc. IPQ5332/AP-MI01.6";
	compatible = "qcom,ipq5332-ap-mi01.6", "qcom,ipq5332";

	};

		mdio@90000 {
			#address-cells = <0x01>;
			#size-cells = <0x01>;
			compatible = "qcom,qca-mdio", "qcom,ipq40xx-mdio";
			reg = <0x90000 0x64 0x9b000 0x800>;
			clocks = <0x06 0x27 0x06 0x90 0x06 0x91 0x06 0x92 0x06 0x93>;
			clock-names = "gcc_mdio_ahb_clk", "uniphy0_ahb_clk", "uniphy0_sys_clk", "uniphy1_ahb_clk", "uniphy1_sys_clk";
			status = "ok";
			pinctrl-0 = <0x08>;
			pinctrl-names = "default";
			phy-reset-gpio = <0x09 0x33 0x00 0x09 0x18 0x00>;
			mdio_clk_fixup;
			phandle = <0x55>;

			ethernet-phy@0 {
				compatible = "ethernet-phy-id001c.c849";
				realtek,aldps-enable;
				reg = <0x01>;
			};

			switch@29 {
				compatible = "realtek,rtl8372n";
				#address-cells = <0x01>;
				#size-cells = <0x00>;
				reg = <0x1d>;

				ports {

					port@3 {
						reg = <0x03>;
						speed = <0x2710>;
						label = "cpu";
					};

					port@7 {
						reg = <0x07>;
						label = "lan1";
					};

					port@6 {
						reg = <0x06>;
						label = "lan2";
					};

					port@5 {
						reg = <0x05>;
						label = "lan3";
					};

					port@4 {
						reg = <0x04>;
						label = "lan4";
					};
				};
			};
		};

i

That's beautiful. But does the switch work though?

With stock firmware yes.

But not DSA only with swconfig.
Which is weird, because swconfig reports 7 ports or so
But the RTL8722N, this is the correct name, has only 4 * 2.5G and 2 * 10G ports

If you have the device, what are the outputs of these:
cat /sys/bus/mdio_bus/devices/*/phy_id 2>/dev/null
lsmod | grep rtl

Currently only dmesg
which I saved some time ago ...

root@GL-BE9300:~# dmesg 
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x51af8014]
[    0.000000] Linux version 5.4.213 (xinxing@gl-System-Product-Name) (gcc version 12.3.0 (OpenWrt GCC 12.3.0 r0-3601c2a49)) #0 SMP PREEMPT Thu May 29 11:26:25 2025
[    0.000000] Machine model: GL.iNet BE9300, Inc. IPQ5332/AP-MI01.6
[    0.000000] Reserved memory: created DMA memory pool at 0x000000007f700000, size 9 MiB
[    0.000000] OF: reserved mem: initialized node dma_pool1@1, compatible id shared-dma-pool
[    0.000000] On node 0 totalpages: 228096
[    0.000000]   DMA32 zone: 3564 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 228096 pages, LIFO batch:63
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 24 pages/cpu s60248 r8192 d29864 u98304
[    0.000000] pcpu-alloc: s60248 r8192 d29864 u98304 alloc=24*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] ARM_SMCCC_ARCH_WORKAROUND_1 missing from firmware
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 224532
[    0.000000] Kernel command line: console=ttyMSM0,115200n8 root=PARTUUID=d6171221-d0ed-b10c-dece-27905121e2f3 gpt rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 882516K/912384K available (7486K kernel code, 588K rwdata, 2080K rodata, 576K init, 417K bss, 29868K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv2m: range[mem 0x0b00c000-0x0b00cffc], SPI[640:671]
[    0.000000] GICv2m: range[mem 0x0b00d000-0x0b00dffc], SPI[672:703]
[    0.000000] GICv2m: range[mem 0x0b00e000-0x0b00effc], SPI[704:735]
[    0.000000] arch_timer: cp15 and mmio timer(s) running at 24.00MHz (virt/virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000351] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000365] pid_max: default: 32768 minimum: 301
[    0.000510] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.000525] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.001980] ASID allocator initialised with 65536 entries
[    0.002079] rcu: Hierarchical SRCU implementation.
[    0.003913] mem dump base table DT node does not exist
[    0.004150] smp: Bringing up secondary CPUs ...
[    0.005316] Detected VIPT I-cache on CPU1
[    0.005375] CPU1: Booted secondary processor 0x0000000001 [0x51af8014]
[    0.006716] Detected VIPT I-cache on CPU2
[    0.006772] CPU2: Booted secondary processor 0x0000000002 [0x51af8014]
[    0.008100] Detected VIPT I-cache on CPU3
[    0.008155] CPU3: Booted secondary processor 0x0000000003 [0x51af8014]
[    0.008285] smp: Brought up 1 node, 4 CPUs
[    0.008309] SMP: Total of 4 processors activated.
[    0.008316] CPU features: detected: 32-bit EL0 Support
[    0.008323] CPU features: detected: CRC32 instructions
[    0.008369] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.008377] CPU: All CPU(s) started at EL1
[    0.008695] alternatives: patching kernel code
[    0.019802] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.019825] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.019990] pinctrl core: initialized pinctrl subsystem
[    0.020848] NET: Registered protocol family 16
[    0.021234] DMA: preallocated 256 KiB pool for atomic allocations
[    0.021683] cpuidle: using governor ladder
[    0.021710] cpuidle: using governor menu
[    0.021863] NET: Registered protocol family 42
[    0.022020] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.027543] gpiochip_find_base: found new base at 459
[    0.027568] gpio gpiochip0: (1000000.pinctrl): created GPIO range 0->52 ==> 1000000.pinctrl PIN 0->52
[    0.027700] gpio gpiochip0: (1000000.pinctrl): added GPIO chardev (254:0)
[    0.027769] gpiochip_setup_dev: registered GPIOs 459 to 511 on device: gpiochip0 (1000000.pinctrl)
[    0.037156] gcc-ipq5332 1800000.gcc: Registered GCC clocks
[    0.043283] qcom,nsscc-ipq5332 39b00000.nsscc: Registered NSS CC clocks
[    0.061053] msm_sps_probe: sps:sps is ready
[    1.842097] cryptd: max_cpu_qlen set to 1000
[    1.854353] pps_core: LinuxPPS API ver. 1 registered
[    1.854366] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.854385] PTP clock support registered
[    1.856114] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    1.857008] clocksource: Switched to clocksource arch_sys_counter
[    1.857790] thermal_sys: Registered thermal governor 'step_wise'
[    1.857793] thermal_sys: Registered thermal governor 'user_space'
[    1.858872] NET: Registered protocol family 2
[    1.859032] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.859902] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.859937] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.860023] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.860168] TCP: Hash tables configured (established 8192 bind 8192)
[    1.860263] mptcp init
[    1.860335] MPTCP token hash table entries: 1024 (order: 2, 24576 bytes, linear)
[    1.860401] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.860438] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.860619] NET: Registered protocol family 1
[    1.860649] PCI: CLS 0 bytes, default 64
[    1.861746] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    1.878006] Initialise system trusted keyrings
[    1.878192] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    1.883799] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.883808] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.904265] Key type asymmetric registered
[    1.904274] Asymmetric key parser 'x509' registered
[    1.907794] of_get_named_gpiod_flags: parsed 'gpios' property of node '/soc/gpio-export/usb_power[0]' - status (0)
[    1.907939] gpio-export soc:gpio-export: 1 gpio(s) exported
[    1.909867] bam-dma-engine 7884000.dma: qcom,controlled-remotely unspecified
[    1.910697] bam-dma-engine 7984000.dma: qcom,controlled-remotely unspecified
[    1.911965] CPU: IPQ5322, SoC Version: 1.1
[    1.911973] OEM_ID: 0, PROD_ID: 0
[    1.914651] TZ Log : Will warn on Access Violation, as paniconaccessviolation is not set
[    1.915458] Minidump: rsvd region is not specified 
[    1.916250] lm license-manager: License Manager registered. License feature is disabled and Endpoint Bounded
[    1.916602] Context is not provided, skipping key init
[    1.916884] msm_serial 78af000.serial: msm_serial: detected port #0
[    1.916924] msm_serial 78af000.serial: uartclk = 1843199
[    1.916979] 78af000.serial: ttyMSM0 at MMIO 0x78af000 (irq = 42, base_baud = 115199) is a MSM
[    1.917034] msm_serial: console setup on port #0
[    2.558636] printk: console [ttyMSM0] enabled
[    2.563554] msm_serial: driver initialized
[    2.567906] random: crng init done
[    2.578990] brd: module loaded
[    2.582563] loop: module loaded
[    2.584565] mdio_bus fixed-0: GPIO lookup for consumer reset
[    2.584575] mdio_bus fixed-0: using lookup tables for GPIO lookup
[    2.584583] mdio_bus fixed-0: No GPIO consumer reset found
[    2.637018] qca-mdio 90000.mdio: CMN clock reset done
[    2.857274] of_get_named_gpiod_flags: parsed 'phy-reset-gpio' property of node '/soc/mdio@90000[0]' - status (0)
[    2.857283] qca-mdio 90000.mdio: Reset PHY by GPIO 510
[    3.077371] of_get_named_gpiod_flags: parsed 'phy-reset-gpio' property of node '/soc/mdio@90000[1]' - status (0)
[    3.077379] qca-mdio 90000.mdio: Reset PHY by GPIO 483
[    3.442456] mdio_bus 90000.mdio: GPIO lookup for consumer reset
[    3.442464] mdio_bus 90000.mdio: using device tree for GPIO lookup
[    3.442483] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/soc/mdio@90000[0]'
[    3.442500] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/soc/mdio@90000[0]'
[    3.442510] mdio_bus 90000.mdio: using lookup tables for GPIO lookup
[    3.442517] mdio_bus 90000.mdio: No GPIO consumer reset found
[    3.442793] mdio_bus 90000.mdio:01: GPIO lookup for consumer reset
[    3.442800] mdio_bus 90000.mdio:01: using device tree for GPIO lookup
[    3.442818] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/soc/mdio@90000/ethernet-phy@0[0]'
[    3.442835] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/soc/mdio@90000/ethernet-phy@0[0]'
[    3.442843] mdio_bus 90000.mdio:01: using lookup tables for GPIO lookup
[    3.442851] mdio_bus 90000.mdio:01: No GPIO consumer reset found
[    3.443075] RTL8221B-VB-CG 2.5Gbps PHY 90000.mdio:01: probed
[    3.443290] qca-mdio 90000.mdio: qca-mdio driver was registered
[    3.448036] i2c /dev entries driver
[    3.454116] qcom-tsens 4a9000.thermal-sensor: tsens device is not enabled
[    3.457832] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[    3.463848] device-mapper: req-crypt: dm-req-crypt successfully initalized.
[    3.463848] 
[    3.473277] qti_scm_restart_reason qti,scm_restart_reason: reset_reason : Power on Reset [0x20]
[    3.483644] sdhci: Secure Digital Host Controller Interface driver
[    3.489213] sdhci: Copyright(c) Pierre Ossman
[    3.495437] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.500089] sdhci_msm 7804000.sdhci: GPIO lookup for consumer wp
[    3.500096] sdhci_msm 7804000.sdhci: using device tree for GPIO lookup
[    3.500117] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/soc/sdhci@7804000[0]'
[    3.500134] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/soc/sdhci@7804000[0]'
[    3.500144] sdhci_msm 7804000.sdhci: using lookup tables for GPIO lookup
[    3.500152] sdhci_msm 7804000.sdhci: No GPIO consumer wp found
[    3.500209] sdhci_msm 7804000.sdhci: sdhci_msm_get_ice_device_vops: ICE device is not enabled
[    3.537050] mmc0: SDHCI controller on 7804000.sdhci [7804000.sdhci] using ADMA 64-bit
[    3.539999] 
[    3.539999] Version Rollback Feature Disabled
[    3.547606] remoteproc remoteproc0: d100000.remoteproc is available
[    3.550460] remoteproc remoteproc1: d100000.remoteproc:remoteproc_pd1 is available
[    3.556254] coresight-tmc 4047000.etf: invalid cti data
[    3.565671] coresight coresight-etm0: CPU0: ETM v4.0 initialized
[    3.568554] coresight-etm4x 509c000.etm: CPU0: (null) initialized
[    3.575147] coresight coresight-etm1: CPU1: ETM v4.0 initialized
[    3.580786] coresight-etm4x 509d000.etm: CPU1: (null) initialized
[    3.587233] coresight coresight-etm2: CPU2: ETM v4.0 initialized
[    3.592839] coresight-etm4x 509e000.etm: CPU2: (null) initialized
[    3.599465] coresight coresight-etm3: CPU3: ETM v4.0 initialized
[    3.605001] coresight-etm4x 509f000.etm: CPU3: (null) initialized
[    3.611247] coresight-stm 4002000.stm: coresight-stm : stm_register_device failed, probing deferred
[    3.617068] OF: graph: no port node found in /soc/cti@5098000
[    3.625993] OF: graph: no port node found in /soc/cti@5099000
[    3.631892] OF: graph: no port node found in /soc/cti@509a000
[    3.637626] OF: graph: no port node found in /soc/cti@509b000
[    3.643648] OF: graph: no port node found in /soc/csr@4001000
[    3.649018] coresight-csr 4001000.csr: CSR initialized: coresight-csr
[    3.655759] NET: Registered protocol family 10
[    3.662010] Segment Routing with IPv6
[    3.665436] NET: Registered protocol family 17
[    3.669204] Bridge firewalling registered
[    3.673539] 8021q: 802.1Q VLAN Support v1.8
[    3.677843] Loading compiled-in X.509 certificates
[    3.681576] Key type ._fscrypt registered
[    3.686385] Key type .fscrypt registered
[    3.703852] mmc0: new HS200 MMC card at address 0001
[    3.704529] mmcblk0: mmc0:0001 008GB1 7.28 GiB 
[    3.707899] qcom-pcie 18000000.pcie: GPIO lookup for consumer perst
[    3.707907] qcom-pcie 18000000.pcie: using device tree for GPIO lookup
[    3.707933] of_get_named_gpiod_flags: can't parse 'perst-gpios' property of node '/soc/pcie@18000000[0]'
[    3.707970] of_get_named_gpiod_flags: parsed 'perst-gpio' property of node '/soc/pcie@18000000[0]' - status (0)
[    3.708221] mmcblk0boot0: mmc0:0001 008GB1 partition 1 4.00 MiB
[    3.708263] qcom-pcie 18000000.pcie: IRQ mdm2ap_e911 not found
[    3.712373] mmcblk0boot1: mmc0:0001 008GB1 partition 2 4.00 MiB
[    3.718159] qcom-pcie 18000000.pcie: host bridge /soc/pcie@18000000 ranges:
[    3.724032] mmcblk0rpmb: mmc0:0001 008GB1 partition 3 4.00 MiB, chardev (238:0)
[    3.729811] qcom-pcie 18000000.pcie:    IO 0x18200000..0x182fffff -> 0x18200000
[    3.744074] qcom-pcie 18000000.pcie:   MEM 0x18300000..0x1fffffff -> 0x18300000
[    3.751337] Alternate GPT is invalid, using primary GPT.
[    3.758628] GPT: device [179:13] (rootfs) set to be root filesystem
[    3.764124]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13
[    3.988561] qcom-pcie 18000000.pcie: Link up
[    3.988723] qcom-pcie 18000000.pcie: PCI host bridge to bus 0001:00
[    3.991891] pci_bus 0001:00: root bus resource [bus 00-ff]
[    3.997902] pci_bus 0001:00: root bus resource [io  0x0000-0xfffff] (bus address [0x18200000-0x182fffff])
[    4.003437] pci_bus 0001:00: root bus resource [mem 0x18300000-0x1fffffff]
[    4.013109] pci 0001:00:00.0: [17cb:1005] type 01 class 0x060400
[    4.019873] pci 0001:00:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
[    4.026007] pci 0001:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    4.032058] pci 0001:00:00.0: PME# supported from D0 D3hot D3cold
[    4.042603] pci 0001:01:00.0: [17cb:1109] type 00 class 0x028000
[    4.044636] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    4.050770] pci 0001:01:00.0: Max Payload Size set to 256 (was 128, max 256)
[    4.057628] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
[    4.068501] pci 0001:00:00.0: BAR 8: assigned [mem 0x18400000-0x185fffff]
[    4.070367] pci 0001:00:00.0: BAR 9: assigned [mem 0x18600000-0x187fffff 64bit pref]
[    4.077154] pci 0001:00:00.0: BAR 1: assigned [mem 0x18300000-0x1830ffff]
[    4.084948] pci 0001:00:00.0: BAR 0: assigned [mem 0x18310000-0x18310fff]
[    4.091643] pci 0001:00:00.0: BAR 7: assigned [io  0x1000-0x1fff]
[    4.098418] pci 0001:01:00.0: BAR 0: assigned [mem 0x18400000-0x185fffff 64bit]
[    4.104521] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    4.111605] pci 0001:00:00.0:   bridge window [io  0x1000-0x1fff]
[    4.116803] pci 0001:00:00.0:   bridge window [mem 0x18400000-0x185fffff]
[    4.123065] pci 0001:00:00.0:   bridge window [mem 0x18600000-0x187fffff 64bit pref]
[    4.129912] [qcom_pcie_probe ] PCIe: RC enabled during bootup
[    4.137848] qcom-pcie 18000000.pcie: Received Link up event for RC 0
[    4.146236] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 799999 KHz
[    4.149867] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 1100000 KHz
[    4.156951] coresight-tmc 4048000.tmc: invalid cti data
[    4.165491] sps_register_bam_device: sps:BAM 0x0000000004064000 is registered
[    4.170914] coresight coresight-stm: STM32 initialized
[    4.177942] hctosys: unable to open rtc device (rtc0)
[    4.185992] VFS: Mounted root (squashfs filesystem) readonly on device 179:13.
[    4.188111] Freeing unused kernel memory: 576K
[    4.217064] Run /sbin/init as init process
[    4.352715] init: Console is alive
[    4.352944] init: - watchdog -
[    5.637189] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.669677] install gl_hw_info
[    5.675868] usbcore: registered new interface driver usbfs
[    5.675910] usbcore: registered new interface driver hub
[    5.680339] usbcore: registered new device driver usb
[    5.688412] Button Hotplug driver version 0.4.1
[    5.691197] exfat: module is from the staging directory, the quality is unknown, you have been warned.
[    5.695701] exFAT: Version 1.3.0
[    5.712264] gl-repeater: (C) 2024 jianhui zhao <jianhui.zhao@gl-inet.com>
[    5.713121] gl-tertf: (C) 2021 jianhui zhao <jianhui.zhao@gl-inet.com>
[    5.719150] of_get_named_gpiod_flags: parsed 'gpios' property of node '/soc/gpio_keys/reset[0]' - status (0)
[    5.719170] gpio-476 (reset): gpiod_set_debounce: missing set() or set_config() operations
[    5.720751] gl-kmwan: (C) 2023 chongjun luo <luochognjun@gl-inet.com>
[    5.727223] SCSI subsystem initialized
[    5.735761] libata version 3.00 loaded.
[    5.742957] of_get_named_gpiod_flags: parsed 'gpios' property of node '/soc/leds/led@32[0]' - status (0)
[    5.742975] no flags found for gpios
[    5.743054] of_get_named_gpiod_flags: parsed 'gpios' property of node '/soc/leds/led@33[0]' - status (0)
[    5.743061] no flags found for gpios
[    5.744809] block2mtd: mtd0: [log] erase_size = 64KiB [65536]
[    5.751051] usbcore: registered new interface driver usb-storage
[    5.752113] usbcore: registered new interface driver uas
[    5.756336] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.765870] init: - preinit -
[    7.411578] mount_root: loading kmods from internal overlay
[    7.435975] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    7.439516] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[    7.562352] block: attempting to load /etc/config/fstab
[    7.563430] block: unable to load configuration (fstab: Entry not found)
[    7.566403] block: no usable configuration
[    7.707816] F2FS-fs (loop0): Mounted with checkpoint version = 8f5e554
[    7.708569] mount_root: loading kmods from internal overlay
[    7.732940] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    7.733315] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    7.801339] block: attempting to load /etc/config/fstab
[    7.801417] block: unable to load configuration (fstab: Entry not found)
[    7.805389] block: no usable configuration
[    7.813883] mount_root: switching to f2fs overlay
[    7.818129] overlayfs: "xino" feature enabled using 32 upper inode bits.
[    7.823288] urandom-seed: Seeding with /etc/urandom.seed
[    7.928617] procd: - early -
[    7.928690] procd: - watchdog -
[    8.469426] procd: - watchdog -
[    8.492778] procd: - ubus -
[    8.547882] procd: - init -
[    8.674793] cnss[2]: INFO: Platform driver probed successfully. plat 0x000000009cb14cd6 tgt 0xfff9
[    8.675329] remoteproc remoteproc2: QCN9224_PCI1 is available
[    8.683187] cnss[38]: INFO: Platform driver probed successfully. plat 0x000000006043d705 tgt 0x1109
[    8.690651] cnss[38]: INFO: PCI device 000000000914c23e probed successfully
[    8.698016] cnss: INFO: cnss_plat_ipc_qmi_svc_init: CNSS Platform IPC QMI Service is started
[    8.919443] mtdoops: ready 0, 1 (no erase)
[    8.919448] mtdoops: Attached to MTD device 0
[    9.048843] urngd: v1.0.2 started.
[    9.091832] S01license-pfm (998): drop_caches: 3
[    9.268860] cnss: INFO: cnss_plat_ipc_qmi_reg_client_req_handler: QMI Client Connected. QMI Socket Node: 1 Port: 16393 ID: 1
[    9.268888] cnss: INFO: CNSS Daemon connected
[    9.289486] cnss: INFO: cnss_plat_ipc_qmi_init_setup_req_handler: MAC: 0 HW_TRC: 0 CAL: 2
[   10.742207] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[   10.882951] of_get_named_gpiod_flags: parsed 'phy-reset-gpio' property of node '/soc/mdio@90000[0]' - status (0)
[   10.882984] of_get_named_gpiod_flags: parsed 'phy-reset-gpio' property of node '/soc/mdio@90000[0]' - status (0)
[   10.882999] of_get_named_gpiod_flags: can't parse 'intr-gpio' property of node '/soc/ess-instance/ess-switch@3a000000[0]'
[   10.883007] of_get_named_gpiod_flags: can't parse 'link-intr-gpio' property of node '/soc/ess-instance/ess-switch@3a000000[0]'
[   10.883011] ssdk_dt_parse_interrupt[908]:INFO:intr-gpio does not exist
[   10.886199] ssdk_phy_driver_init[340]:INFO:dev_id = 0, phy_adress = 1, phy_id = 0x1cc849 phytype doesn't match
[   10.904081] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.932886] NET: Registered protocol family 38
[   10.941045] nat46: module (version 4c5beee236841724219598fabb1edc93d4f08ce5) loaded.
[   10.942808] PPP generic driver version 2.4.2
[   10.948754] NET: Registered protocol family 24
[   11.989087] regi_init[2517]:INFO:Initializing MPPE Done!!
[   11.989193] regi_init[2574]:INFO:qca-ssdk module init succeeded!
[   12.003569] PPE-RULE module loaded successfully
[   12.046235] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   12.050201] dp1: ppe offload disabled: 0 for macid 2
[   12.053031] dp1: Switch attached to macid 2 status: 0
[   12.058114] nss-dp 3a504000.dp1 (unnamed net_device) (uninitialized): netif_napi_add() called with weight 256
[   12.158182] dp2: ppe offload disabled: 1 for macid 1
[   12.158203] dp2: Switch attached to macid 1 status: 1
[   12.163146] **********************************************************
[   12.167210] * NSS Data Plane driver
[   12.173569] **********************************************************
[   12.208967] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   12.220815] platform regulatory.0: Direct firmware load for regulatory.db.p7s failed with error -2
[   12.220842] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db.p7s
[   12.232308] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[   12.239560] NET: Registered protocol family 15
[   12.243592] Initializing XFRM netlink socket
[   12.246968] mpls_gso: MPLS GSO support
[   12.249461] loading qca-wifi
[   12.259558] OpenVPN data channel offload (ovpn-dco) 2.0.0 -- (C) 2020- OpenVPN, Inc.
[   12.261551] tun: Universal TUN/TAP device driver, 1.6
[   12.289339] l2tp_core: L2TP core driver, V2.0
[   12.290555] l2tp_netlink: L2TP netlink interface
[   12.294177] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[   12.299224] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[   12.304326] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[   12.310043] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[   12.316968] gre: GRE over IPv4 demultiplexor driver
[   12.322486] ip_gre: GRE over IPv4 tunneling driver
[   12.328573] ip6_gre: GRE over IPv6 tunneling driver
[   12.366202] PPTP driver version 0.8.5
[   12.380121] openvswitch: Open vSwitch switching datapath
[   12.401589] diag: failed to find diag_dload imem node
[   12.411350] QCA multicast snooping installed successfully
[   12.426319] ffffff8015274400: EIP inline_support: no
[   12.426459] ffffff8036340040: DMA ring(0) configured and Rx mapped to cpu(0)
[   12.430717] ffffff8036341ac0: DMA ring(1) configured and Rx mapped to cpu(1)
[   12.437652] ffffff8036343540: DMA ring(2) configured and Rx mapped to cpu(2)
[   12.444657] ffffff8036344fc0: DMA ring(3) configured and Rx mapped to cpu(3)
[   12.454250] nss_macsec init success
[   12.463324] nss_ppe_lag_register_event[436]:ffffff8039ae3000: Bond interface (bond0) is created=0
[   12.463355] nss_ppe_lag_init[632]:LAG Manager Installed
[   12.482745] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[   12.496764] GACT probability on
[   12.497919] Mirror/redirect action on
[   12.503750] u32 classifier
[   12.503781]     input device check on
[   12.505352]     Actions configured
[   12.517916] Simple TC action Loaded
[   12.532995] fuse: init (API version 7.31)
[   12.535355] dwc3-qcom 8af8800.usb3: GPIO lookup for consumer device-power
[   12.535363] dwc3-qcom 8af8800.usb3: using device tree for GPIO lookup
[   12.535381] of_get_named_gpiod_flags: can't parse 'device-power-gpios' property of node '/soc/usb3@8A00000[0]'
[   12.535391] of_get_named_gpiod_flags: can't parse 'device-power-gpio' property of node '/soc/usb3@8A00000[0]'
[   12.535396] dwc3-qcom 8af8800.usb3: using lookup tables for GPIO lookup
[   12.535401] dwc3-qcom 8af8800.usb3: No GPIO consumer device-power found
[   12.545734] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[   12.545767] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[   12.550414] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe65 hci version 0x110 quirks 0x0000000000010010
[   12.557929] xhci-hcd xhci-hcd.0.auto: irq 113, io mem 0x08a00000
[   12.567640] hub 1-0:1.0: USB hub found
[   12.573346] hub 1-0:1.0: 1 port detected
[   12.577234] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[   12.580938] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[   12.586238] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[   12.593929] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   12.594131] usbcore: registered new interface driver cdc_acm
[   12.600926] hub 2-0:1.0: USB hub found
[   12.608644] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   12.617935] hub 2-0:1.0: 1 port detected
[   12.618410] usbcore: registered new interface driver cdc_wdm
[   12.637352] usbcore: registered new interface driver ipheth
[   12.678248] nf_conntrack_rtsp v0.7 loading
[   12.692249] nf_nat_rtsp v0.7 loading
[   12.733518] PPP MPPE Compression module registered
[   12.737362] rtl8372-mdio 90000.mdio:1d: found an RTL8372N switch
[   12.784535] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[   15.965297] wlan: [3703:I:ANY] qdf_ini_parse: INI values read: 104
[   15.965322] wlan: [3703:I:ANY] qdf_ini_parse: INI file parse successful
[   15.976441] wlan: [3703:I:ANY] qdf_ini_parse: INI values read: 67
[   15.976870] wlan: [3703:I:ANY] qdf_ini_parse: INI file parse successful
[   15.983151] wlan: [3703:I:SAWF] wlan_sawf_init: SAWF: SAWF ctx is initialized
[   15.990060] 2113, RL6818C_pwr_on_patch_phy_v009 , patch 0xf0 finished!
[   16.004164] wlan: [4202:I:ANY] register_telemetry_agent_ops: Registered Telemetry Agent ops: 00000000adf62b6f
[   16.006055] SAWF Telemetry: SAWF ctx is initialized
[

Besides this is SoC is a IPQ5532, which is arm64
the userspace is armv7.
The device has 1Gbyte RAM

Currenlty my issues to work on this
IPQ5332 is not supported in OpenWRT, which I think should go into qualcommax target.
qualcommax has several (really) big changes between 6.12 and 6.18
RTL8372N, for which I have two respositories

I done some work, couple of months ago, to make a bootable initramfs.
Which (of course) failed to boot. to the (I think) completly other RAM layout,
So I zapped my brain in this area, to restart sometime.

I've tried to emulate what you did but to no avail. Couldn't get the 2.5G ports up. I will have to wait. swconfig is too old and annoying.

Which SoC ?

MT7988D Mediatek

qualcommbe.

Thanks for the hint