Hello everyone, I'm splitting this topic out from my previous post, because the WiFi issues have mostly been solved.
On my ASUS RT-AC88U with OpenWRT 23.05.5, I can't manage either of the two internal switches (neither the BCM53012 that's directly connected to the CPU, nor the RTL8365MB that's cascaded from port 5). The Network -> Switch tab in LuCI doesn't exist, and the overview page only shows the "extsw" interface for ports 5-8 on the Realtek switch, not their individual status. Any ideas how to fix this?
What I'm mostly interested in would be to get the proper status for the ports that are hidden behind extsw (i.e. connected to the Realtek switch). You mentioned swconfig, where could I find some more details on that?
It may be necessary to create an OpenWrt package of rtl8365mb DSA driver that exists in Linux Kernel and apply it to the device. (or enabling the kernel symbols for rtl8365mb driver (CONFIG_NET_DSA_REALTEK, CONFIG_NET_DSA_REALTEK_SMI, CONFIG_NET_DSA_REALTEK_RTL8365MB) on bcm53xx)
OK, I completely missed that. I've installed the swconfig package now, but there's still no "Switch" entry in LuCI, and if I run swconfig list on the console, I get an empty result.
At least the BCM53012 should be supported out of the box, by the b53_common and b53_mdio kernel modules, no?
(And indeed, in dmesg, I get b53-srab-switch 18007000.ethernet-switch: found switch: BCM53012, rev 0. So it's detected, but not configurable...)
These are perfectly functional netdevs Luci/Network/Interfaces/Devices , you can add them to bridges and check boxes to tag or untag br-lan.123 on individual ports.
P.S. Could you suggest an existing kmod package I can use as a starting point? Haven't yet been able to pinpoint where those live in the source tree...