Support for RTL838x based managed switches

Hi all,

I recently bought a XGS1250-12, got 23.05.5 installed but it seems not to do any switching, at least not via tagged ports (I did not try untagged). Accessing the router itself does seem to work (tagged and untagged).
kernel log:

[    0.000000] Linux version 5.15.167 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24106-10cc5fcd00) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Mon Sep 23 12:34:46 2024
[    0.000000] RTL838X model is 0
[    0.000000] RTL839X model is 0
[    0.000000] RTL93XX model is 93021001
[    0.000000] SoC Type: RTL9302B
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
[    0.000000] MIPS: machine is Zyxel XGS1250-12 Switch
[    0.000000] earlycon: ns16550a0 at MMIO 0x18002000 (options '115200n8')
[    0.000000] printk: bootconsole [ns16550a0] enabled
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using appended Device Tree.
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: earlycon
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=000100a0
[    0.000000] Readback ErrCtl register=000100a0
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 120756K/131072K available (6177K kernel code, 619K rwdata, 764K rodata, 1200K init, 218K bss, 10316K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] Failed to get CPU clock: -2
[    0.000000] CPU frequency from device tree: 800MHz
[    0.000000] clocksource: realtek_otto_timer: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 38225208801 ns
[    0.000001] sched_clock: 28 bits at 3125kHz, resolution 320ns, wraps every 42949672800ns
[    0.008987] Calibrating delay loop... 531.66 BogoMIPS (lpj=2658304)
[    0.065685] pid_max: default: 32768 minimum: 301
[    0.071712] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.079737] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.096014] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106800] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.114482] pinctrl core: initialized pinctrl subsystem
[    0.121709] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.142354] clocksource: Switched to clocksource realtek_otto_timer
[    0.150904] NET: Registered PF_INET protocol family
[    0.156541] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.165482] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.174797] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.183286] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.191651] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.199375] TCP: Hash tables configured (established 1024 bind 1024)
[    0.206496] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.213728] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.221805] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.232423] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.245788] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.252167] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.265382] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.275630] pinctrl-single 1b00cc00.pinmux: 32 pins, size 4
[    0.283311] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.293557] printk: console [ttyS0] disabled
[    0.298297] 18002000.uart: ttyS0 at MMIO 0x18002000 (irq = 30, base_baud = 10937500) is a 16550A
[    0.307972] printk: console [ttyS0] enabled
[    0.317310] printk: bootconsole [early0] disabled
[    0.327782] printk: bootconsole [ns16550a0] disabled
[    0.387771] brd: module loaded
[    0.396032] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    0.401867] 7 fixed-partitions partitions found on MTD device spi0.0
[    0.409106] OF: Bad cell count for /soc/spi@1200/flash@0/partitions
[    0.416176] OF: Bad cell count for /soc/spi@1200/flash@0/partitions
[    0.423508] Creating 7 MTD partitions on "spi0.0":
[    0.428865] 0x000000000000-0x0000000e0000 : "u-boot"
[    0.437342] 0x0000000e0000-0x0000000f0000 : "u-boot-env"
[    0.444622] 0x0000000f0000-0x000000100000 : "u-boot-env2"
[    0.453812] 0x000000100000-0x000000200000 : "jffs"
[    0.460432] 0x000000200000-0x000000300000 : "jffs2"
[    0.469019] 0x000000300000-0x000000fe0000 : "firmware"
[    0.476556] 2 uimage-fw partitions found on MTD device firmware
[    0.483226] Creating 2 MTD partitions on "firmware":
[    0.488759] 0x000000000000-0x000000320000 : "kernel"
[    0.497409] 0x000000320000-0x000000ce0000 : "rootfs"
[    0.504196] mtd: setting mtd7 (rootfs) as root device
[    0.510819] 1 squashfs-split partitions found on MTD device rootfs
[    0.517805] 0x0000005d0000-0x000000ce0000 : "rootfs_data"
[    0.526160] 0x000000fe0000-0x000001000000 : "log"
[    0.543312] Probing RTL838X eth device pdev: 82097a00, dev: 82097a10
[    0.569849] Found SoC ID: 9302: RTL9302B, family 9300
[    0.575604] Using MAC 0000000000010000
[    0.579815] set sds port 0 to 2
[    0.583383] set sds port 24 to 6
[    0.586977] set sds port 25 to 7
[    0.590558] set sds port 26 to 8
[    0.594176] set sds port 27 to 9
[    0.598469] c45_mask: 000e0000
[    0.762322] REALTEK RTL9300 SERDES mdio-bus:1b: Detected internal RTL9300 Serdes
[    0.770650] rtl9300_configure_serdes: Port 27, SerDes is 9
[    0.780768] rtl9300_configure_serdes CMU BAND is 16
[    0.786216] rtl9300_sds_rst 31
[    0.809588] rtl9300_configure_serdes PATCHING SerDes 9
[    0.816359] rtl9300_phy_enable_10g_1g 1gbit phy: 00001140
[    0.822396] rtl9300_phy_enable_10g_1g 1gbit phy enabled: 00001140
[    0.830176] rtl9300_phy_enable_10g_1g 10gbit phy: 00002040
[    0.836303] rtl9300_phy_enable_10g_1g 10gbit phy after: 00002040
[    0.844011] rtl9300_phy_enable_10g_1g set medium: 00000002
[    0.850111] rtl9300_phy_enable_10g_1g set medium after: 00000002
[    0.876778] rtl9300_configure_serdes: Configuring RTL9300 SERDES 9, mode 1a
[    0.886541] rtl9300_serdes_mac_link_config: registers before 00000000 00001403
[    0.896600] rtl9300_serdes_mac_link_config: registers after 00000000 00001403
[    0.924535] rtl9300_force_sds_mode: SDS: 9, mode 0
[    0.929862] rtl9300_force_sds_mode --------------------- serdes 9 forcing to 1f ...
[    0.941398] rtl9300_force_sds_mode: SDS: 9, mode 27
[    0.946860] rtl9300_force_sds_mode --------------------- serdes 9 forcing to 1a ...
[    5.666345] rtl9300_force_sds_mode --------------------- serdes 9 forced to 1a DONE
[    5.674906] start_1.1.1 initial value for sds 9
[    5.707931] end_1.1.1 --
[    5.710744] start_1.1.2 Load DFE init. value
[    5.716510] end_1.1.2
[    5.719029] start_1.1.3 disable LEQ training,enable DFE clock
[    5.731426] end_1.1.3 --
[    5.734269] start_1.1.4 offset cali setting
[    5.739917] end_1.1.4
[    5.742457] start_1.1.5 LEQ and DFE setting
[    5.754119] end_1.1.5
[    5.763646] start_1.2.1 ForegroundOffsetCal_Manual
[    5.770967] end_1.2.1
[    5.778982] start_1.2.3 Foreground Calibration
[    5.792464] rtl9300_do_rx_calibration_2_3: fgcal_gray: 31, fgcal_binary 31
[    5.801112] rtl9300_do_rx_calibration_2_3: end_1.2.3
[    5.806653] start_1.4.1
[    6.028288] end_1.4.1
[    6.031006] start_1.4.2
[    6.039536] vth_set_bin = 7
[    6.042257] vth_set_bin = 3
[    6.046380] Vth Maunal = 1
[    6.158316] Tap0 Sign : +
[    6.161328] tap0_coef_bin = 31
[    6.165258] tap0 manual = 1
[    6.171642] end_1.4.2
[    6.174766] start_1.5.2
[    6.251176] end_1.5.2
[    6.338985] i2c_dev: i2c /dev entries driver
[    6.346488] rtl9300_i2c_probe probing I2C adapter
[    6.351761] i2c-rtl9300 1b00036c.i2c-rtl9300: SCL speed 100000, mode is 0
[    6.359362] rtl9300_i2c_probe scl_num 0
[    6.363654] rtl9300_i2c_probe sda_num 1
[    6.371149] NET: Registered PF_INET6 protocol family
[    6.390255] Segment Routing with IPv6
[    6.394531] In-situ OAM (IOAM) with IPv6
[    6.399027] NET: Registered PF_PACKET protocol family
[    6.404784] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    6.419825] 8021q: 802.1Q VLAN Support v1.8
[    6.426004] sfp sfp-p12: Host maximum power 1.0W
[    6.546195] REALTEK RTL9300 SERDES rtl838x slave mii-0:1b: Detected internal RTL9300 Serdes
[    6.555571] REALTEK RTL9300 SERDES rtl838x slave mii-0:1b: No DT node.
[    6.562878] REALTEK RTL9300 SERDES: probe of rtl838x slave mii-0:1b failed with error -22
[    6.577399] REALTEK RTL9300 SERDES rtl838x slave mii-0:3f: Detected internal RTL9300 Serdes
[    6.586773] REALTEK RTL9300 SERDES rtl838x slave mii-0:3f: No DT node.
[    6.594078] REALTEK RTL9300 SERDES: probe of rtl838x slave mii-0:3f failed with error -22
[    6.604910] rtl93xx_setup called
[    6.608563] In rtl83xx_vlan_setup
[    6.612236] In rtl930x_vlan_profile_setup
[    6.616746] In rtl930x_vlan_profile_setup
[    6.621199] UNKNOWN_MC_PMASK: 000000001fffffff
[    6.626176] VLAN 0: L2 learn: 0; Unknown MC PMasks: L2 1fffffff, IPv4 1fffffff, IPv6: 1fffffff
[    6.626196]   Routing enabled: IPv4 UC y, IPv6 UC y, IPv4 MC y, IPv6 MC y
[    6.643356]   Bridge enabled: IPv4 MC n, IPv6 MC n,
[    6.648775] VLAN profile 0: raw 00033000 00000000 1fffffff 1fffffff 1fffffff
[    7.692358] rtl83xx_enable_phy_polling:          f0000ff
[    7.698288] rtl930x_pie_init
[    7.701697] rtl930x_led_init called
[    7.705716] rtl930x_led_init bb00cc00: 01052659
[    7.710756] rtl930x_led_init bb00cc04: aaaa5555
[    7.715818] rtl930x_led_init bb00cc08: 007faaaa
[    7.720859] rtl930x_led_init bb00cc0c: 00000000
[    7.725914] rtl930x_led_init bb00cc10: 00000000
[    7.730952] rtl930x_led_init bb00cc14: 0000ffff
[    7.736008] rtl930x_led_init bb00cc18: 0a200a01
[    7.741046] rtl930x_led_init bb00cc1c: 0a0b0a28
[    7.746102] rtl930x_led_init bb00cc20: 0a820a0b
[    7.751140] rtl930x_led_init bb00cc24: 0000ffff
[    7.756204] rtl930x_led_init bb00cc28: 0a200b80
[    7.761242] rtl930x_led_init bb00cc2c: 00000000
[    7.766302] rtl930x_led_init bb00cc30: 00950000
[    7.771336] rtl930x_led_init bb00cc34: 00000000
[    7.776391] rtl930x_led_init bb00cc38: 00950000
[    7.781430] rtl930x_led_init bb00cc3c: 0f0000ff
[    7.786486] rtl930x_led_init bb00cc40: 0f0000ff
[    7.791523] rtl930x_led_init bb00cc44: 0f0000ff
[    7.796578] rtl930x_led_init bb00cc48: 00000000
[    7.801618] rtl930x_led_init bb00cc4c: 00000000
[    7.806673] rtl930x_led_init bb00cc50: 00000000
[    7.811711] rtl930x_led_init bb00cc54: 00000000
[    7.816766] rtl930x_led_init bb00cc58: 00000000
[    7.821804] rtl930x_led_init bb00cc5c: 00000000
[    7.827221] rtl83xx-switch switch@1b000000: configuring for fixed/internal link mode
[    7.835913] rtl93xx_phylink_mac_config port 28, mode 1, phy-mode: internal, speed 10000, link 0
[    7.846103] rtl83xx-switch switch@1b000000 lan1 (uninitialized): PHY [mdio-bus:00] driver [REALTEK RTL8218D] (irq=POLL)
[    7.859916] rtl83xx-switch switch@1b000000 lan2 (uninitialized): PHY [mdio-bus:01] driver [REALTEK RTL8218D] (irq=POLL)
[    7.873728] rtl83xx-switch switch@1b000000 lan3 (uninitialized): PHY [mdio-bus:02] driver [REALTEK RTL8218D] (irq=POLL)
[    7.887540] rtl83xx-switch switch@1b000000 lan4 (uninitialized): PHY [mdio-bus:03] driver [REALTEK RTL8218D] (irq=POLL)
[    7.901352] rtl83xx-switch switch@1b000000 lan5 (uninitialized): PHY [mdio-bus:04] driver [REALTEK RTL8218D] (irq=POLL)
[    7.915165] rtl83xx-switch switch@1b000000 lan6 (uninitialized): PHY [mdio-bus:05] driver [REALTEK RTL8218D] (irq=POLL)
[    7.928977] rtl83xx-switch switch@1b000000 lan7 (uninitialized): PHY [mdio-bus:06] driver [REALTEK RTL8218D] (irq=POLL)
[    7.942792] rtl83xx-switch switch@1b000000 lan8 (uninitialized): PHY [mdio-bus:07] driver [REALTEK RTL8218D] (irq=POLL)
[    7.958144] Aquantia AQR113C mdio-bus:18: FW 5.6, Build 7, Provisioning 1
[    7.976233] rtl93xx_phylink_mac_config port 28, mode 1, phy-mode: internal, speed 10000, link 1
[    7.986016] rtl83xx-switch switch@1b000000: Link is Up - 10Gbps/Full - flow control off
[    8.000064] rtl83xx-switch switch@1b000000 lan9 (uninitialized): PHY [mdio-bus:18] driver [Aquantia AQR113C] (irq=POLL)
[    8.015409] Aquantia AQR113C mdio-bus:19: FW 5.6, Build 7, Provisioning 1
[    8.032707] rtl83xx-switch switch@1b000000 lan10 (uninitialized): PHY [mdio-bus:19] driver [Aquantia AQR113C] (irq=POLL)
[    8.048050] Aquantia AQR113C mdio-bus:1a: FW 5.6, Build 7, Provisioning 1
[    8.068966] rtl83xx-switch switch@1b000000 lan11 (uninitialized): PHY [mdio-bus:1a] driver [Aquantia AQR113C] (irq=POLL)
[    8.083608] DSA: tree 0 setup
[    8.086968] LINK state irq: 23
[    8.090382] In rtl83xx_setup_qos
[    8.094087] L3_IPUC_ROUTE_CTRL 00002000, IPMC_ROUTE 0000077e, IP6UC_ROUTE 00014400, IP6MC_ROUTE 0001db7e
[    8.104663] L3_IPUC_ROUTE_CTRL 00002001, IPMC_ROUTE 00000501, IP6UC_ROUTE 00014581, IP6MC_ROUTE 00012881
[    8.115235] L3_IP_ROUTE_CTRL 0000013f
[    8.119415] rtl930x_dbgfs_init called
[    8.124177] rtl83xx_fib_event_work_do: FIB4 default rule failed
[    8.130783] rtl83xx_fib_event_work_do: FIB4 default rule failed
[    8.139223] clk: Disabling unused clocks
[    8.150319] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    8.163340] Freeing unused kernel image (initmem) memory: 1200K
[    8.169944] This architecture does not have kernel memory protection.
[    8.177158] Run /sbin/init as init process
[    8.181712]   with arguments:
[    8.185026]     /sbin/init
[    8.188030]   with environment:
[    8.191507]     HOME=/
[    8.194159]     TERM=linux
[    8.640698] init: Console is alive
[    8.645111] init: - watchdog -
[    8.963346] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    9.003254] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    9.021935] init: - preinit -
[    9.964212] random: jshn: uninitialized urandom read (4 bytes read)
[   10.088587] random: jshn: uninitialized urandom read (4 bytes read)
[   10.715866] random: jshn: uninitialized urandom read (4 bytes read)
[   11.009911] random: jshn: uninitialized urandom read (4 bytes read)
[   11.560469] RESETTING 9300, CPU_PORT 28
[   11.765112] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode
[   11.774112] In rtl838x_mac_config, mode 1
[   11.779380] rtl83xx-switch switch@1b000000 lan1: configuring for phy/xgmii link mode
[   11.788083] rtl93xx_phylink_mac_config port 0, mode 0, phy-mode: xgmii, speed -1, link 0
[   11.797116] rtl93xx_phylink_mac_config SDS is 2
[   11.802592] 8021q: adding VLAN 0 to HW filter on device lan1
[   11.809187] rtl838x-eth 1b00a300.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   11.818519] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   11.825591] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   11.832984] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   11.858688] rtl83xx_fib_event_work_do: FIB4 failed
[   11.865763] rtl83xx_fib_event_work_do: FIB4 failed
[   11.871122] rtl83xx_fib_event_work_do: FIB4 failed
[   11.884009] random: procd: uninitialized urandom read (4 bytes read)
[   13.372410] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   14.177248] jffs2: notice: (651) jffs2_build_xattr_subsystem: complete building xattr subsystem, 63 of xdatum (34 unchecked, 29 orphan) and 83 of xref (10 dead, 25 orphan) found.
[   14.197780] mount_root: switching to jffs2 overlay
[   14.207338] overlayfs: upper fs does not support tmpfile.
[   14.223561] urandom-seed: Seeding with /etc/urandom.seed
[   14.336333] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[   14.342081] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[   14.358869] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[   14.376534] procd: - early -
[   14.380066] procd: - watchdog -
[   15.084453] procd: - watchdog -
[   15.089977] procd: - ubus -
[   15.155178] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.164015] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.172107] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.182528] procd: - init -
[   16.208023] random: jshn: uninitialized urandom read (4 bytes read)
[   16.241502] random: ubusd: uninitialized urandom read (4 bytes read)
[   16.534694] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.606135] GACT probability on
[   16.623717] Mirror/redirect action on
[   16.648575] u32 classifier
[   16.651604]     input device check on
[   16.655728]     Actions configured
[   16.841793] kmodloader: done loading kernel modules from /etc/modules.d/*
[   18.320006] urngd: v1.0.2 started.
[   20.217493] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   20.872751] random: crng init done
[   20.876552] random: 25 urandom warning(s) missed due to ratelimiting
[   26.573586] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   26.629156] in rtl838x_eth_stop
[   26.632800] rtl838x-eth 1b00a300.ethernet eth0: Link is Down
[   27.139125] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   27.146510] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   27.153854] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   27.161138] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   28.258894] Using MAC 0000f44d5c868207
[   28.269308] RESETTING 9300, CPU_PORT 28
[   28.473947] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode
[   28.482948] In rtl838x_mac_config, mode 1
[   28.487705] rtl838x-eth 1b00a300.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   28.497970] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   28.505091] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   28.512488] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   28.772497] rtl83xx-switch switch@1b000000 lan1: configuring for phy/xgmii link mode
[   28.781138] rtl93xx_phylink_mac_config port 0, mode 0, phy-mode: xgmii, speed -1, link 0
[   28.790201] rtl93xx_phylink_mac_config SDS is 2
[   28.796895] 8021q: adding VLAN 0 to HW filter on device lan1
[   28.850347] switch: port 1(lan1) entered blocking state
[   28.856252] switch: port 1(lan1) entered disabled state
[   28.862996] device lan1 entered promiscuous mode
[   28.868151] device eth0 entered promiscuous mode
[   28.990028] rtl930x_set_l3_egress_intf writing to index 0: 00000a01 10101492
[   29.002535] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   29.010905] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   29.087824] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   29.109400] Not offloading default route for now
[   29.437676] rtl83xx-switch switch@1b000000 lan2: configuring for phy/xgmii link mode
[   29.446369] rtl93xx_phylink_mac_config port 1, mode 0, phy-mode: xgmii, speed -1, link 0
[   29.455420] rtl93xx_phylink_mac_config SDS is -1
[   29.460920] 8021q: adding VLAN 0 to HW filter on device lan2
[   29.753115] switch: port 2(lan2) entered blocking state
[   29.758956] switch: port 2(lan2) entered disabled state
[   29.836833] device lan2 entered promiscuous mode
[   29.855661] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   29.863064] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   30.054769] rtl83xx-switch switch@1b000000 lan3: configuring for phy/xgmii link mode
[   30.063480] rtl93xx_phylink_mac_config port 2, mode 0, phy-mode: xgmii, speed -1, link 0
[   30.072532] rtl93xx_phylink_mac_config SDS is -1
[   30.078149] 8021q: adding VLAN 0 to HW filter on device lan3
[   30.271510] switch: port 3(lan3) entered blocking state
[   30.277414] switch: port 3(lan3) entered disabled state
[   30.284154] device lan3 entered promiscuous mode
[   30.496742] rtl83xx-switch switch@1b000000 lan4: configuring for phy/xgmii link mode
[   30.505439] rtl93xx_phylink_mac_config port 3, mode 0, phy-mode: xgmii, speed -1, link 0
[   30.514486] rtl93xx_phylink_mac_config SDS is -1
[   30.520085] 8021q: adding VLAN 0 to HW filter on device lan4
[   30.692930] switch: port 4(lan4) entered blocking state
[   30.698768] switch: port 4(lan4) entered disabled state
[   30.705587] device lan4 entered promiscuous mode
[   30.882508] rtl83xx-switch switch@1b000000 lan5: configuring for phy/xgmii link mode
[   30.891146] rtl93xx_phylink_mac_config port 4, mode 0, phy-mode: xgmii, speed -1, link 0
[   30.900223] rtl93xx_phylink_mac_config SDS is -1
[   30.906004] 8021q: adding VLAN 0 to HW filter on device lan5
[   31.054185] switch: port 5(lan5) entered blocking state
[   31.060026] switch: port 5(lan5) entered disabled state
[   31.066836] device lan5 entered promiscuous mode
[   31.188782] rtl83xx-switch switch@1b000000 lan6: configuring for phy/xgmii link mode
[   31.197482] rtl93xx_phylink_mac_config port 5, mode 0, phy-mode: xgmii, speed -1, link 0
[   31.206529] rtl93xx_phylink_mac_config SDS is -1
[   31.212024] 8021q: adding VLAN 0 to HW filter on device lan6
[   31.314144] switch: port 6(lan6) entered blocking state
[   31.319979] switch: port 6(lan6) entered disabled state
[   31.326799] device lan6 entered promiscuous mode
[   31.437814] rtl83xx-switch switch@1b000000 lan7: configuring for phy/xgmii link mode
[   31.446513] rtl93xx_phylink_mac_config port 6, mode 0, phy-mode: xgmii, speed -1, link 0
[   31.455575] rtl93xx_phylink_mac_config SDS is -1
[   31.461073] 8021q: adding VLAN 0 to HW filter on device lan7
[   31.584071] switch: port 7(lan7) entered blocking state
[   31.589912] switch: port 7(lan7) entered disabled state
[   31.596743] device lan7 entered promiscuous mode
[   31.697505] rtl83xx-switch switch@1b000000 lan8: configuring for phy/xgmii link mode
[   31.706203] rtl93xx_phylink_mac_config port 7, mode 0, phy-mode: xgmii, speed -1, link 0
[   31.715253] rtl93xx_phylink_mac_config SDS is -1
[   31.720746] 8021q: adding VLAN 0 to HW filter on device lan8
[   31.797718] switch: port 8(lan8) entered blocking state
[   31.803618] switch: port 8(lan8) entered disabled state
[   31.810376] device lan8 entered promiscuous mode
[   31.911040] rtl83xx-switch switch@1b000000 lan9: configuring for phy/usxgmii link mode
[   31.919945] rtl93xx_phylink_mac_config port 24, mode 0, phy-mode: usxgmii, speed -1, link 0
[   31.929283] rtl93xx_phylink_mac_config SDS is 6
[   32.019407] 8021q: adding VLAN 0 to HW filter on device lan9
[   32.057908] switch: port 9(lan9) entered blocking state
[   32.063807] switch: port 9(lan9) entered disabled state
[   32.070603] device lan9 entered promiscuous mode
[   32.163261] rtl83xx-switch switch@1b000000 lan10: configuring for phy/usxgmii link mode
[   32.172195] rtl93xx_phylink_mac_config port 25, mode 0, phy-mode: usxgmii, speed -1, link 0
[   32.181575] rtl93xx_phylink_mac_config SDS is 7
[   32.257113] 8021q: adding VLAN 0 to HW filter on device lan10
[   32.287401] switch: port 10(lan10) entered blocking state
[   32.293496] switch: port 10(lan10) entered disabled state
[   32.300503] device lan10 entered promiscuous mode
[   32.352188] rtl83xx-switch switch@1b000000 lan11: configuring for phy/usxgmii link mode
[   32.361178] rtl93xx_phylink_mac_config port 26, mode 0, phy-mode: usxgmii, speed -1, link 0
[   32.370520] rtl93xx_phylink_mac_config SDS is 8
[   32.413182] 8021q: adding VLAN 0 to HW filter on device lan11
[   32.427601] switch: port 11(lan11) entered blocking state
[   32.433709] switch: port 11(lan11) entered disabled state
[   32.440730] device lan11 entered promiscuous mode
[   32.472431] rtl83xx-switch switch@1b000000 lan12: configuring for fixed/10gbase-r link mode
[   32.481750] rtl93xx_phylink_mac_config port 27, mode 1, phy-mode: 10gbase-r, speed 10000, link 0
[   32.491575] rtl93xx_phylink_mac_config SDS is 9
[   32.497657] rtl9300_phy_enable_10g_1g 1gbit phy: 00001140
[   32.503704] rtl9300_phy_enable_10g_1g 1gbit phy enabled: 00001140
[   32.511474] rtl9300_phy_enable_10g_1g 10gbit phy: 00002040
[   32.517606] rtl9300_phy_enable_10g_1g 10gbit phy after: 00002040
[   32.525303] rtl9300_phy_enable_10g_1g set medium: 00000002
[   32.531402] rtl9300_phy_enable_10g_1g set medium after: 00000002
[   32.538106] rtl9300_sds_set 26
[   32.551494] start_1.1.1 initial value for sds 9
[   32.584571] end_1.1.1 --
[   32.587393] start_1.1.2 Load DFE init. value
[   32.593159] end_1.1.2
[   32.595687] start_1.1.3 disable LEQ training,enable DFE clock
[   32.608086] end_1.1.3 --
[   32.610906] start_1.1.4 offset cali setting
[   32.616582] end_1.1.4
[   32.619103] start_1.1.5 LEQ and DFE setting
[   32.630756] end_1.1.5
[   32.640293] start_1.2.1 ForegroundOffsetCal_Manual
[   32.647649] end_1.2.1
[   32.655657] start_1.2.3 Foreground Calibration
[   32.669136] rtl9300_do_rx_calibration_2_3: fgcal_gray: 31, fgcal_binary 31
[   32.677823] rtl9300_do_rx_calibration_2_3: end_1.2.3
[   32.683375] start_1.4.1
[   32.905045] end_1.4.1
[   32.907777] start_1.4.2
[   32.916311] vth_set_bin = 7
[   32.919027] vth_set_bin = 3
[   32.923152] Vth Maunal = 1
[   33.035110] Tap0 Sign : +
[   33.038125] tap0_coef_bin = 31
[   33.042026] tap0 manual = 1
[   33.048437] end_1.4.2
[   33.051544] start_1.5.2
[   33.127977] end_1.5.2
[   33.208740] 8021q: adding VLAN 0 to HW filter on device lan12
[   33.281312] rtl93xx_phylink_mac_config port 1, mode 0, phy-mode: xgmii, speed 1000, link 1
[   33.290604] rtl93xx_phylink_mac_config SDS is -1
[   33.295819] rtl83xx-switch switch@1b000000 lan2: Link is Up - 1Gbps/Full - flow control rx/tx
[   33.306420] switch: port 2(lan2) entered blocking state
[   33.312261] switch: port 2(lan2) entered listening state
[   33.360593] rtl93xx_phylink_mac_config port 1, mode 0, phy-mode: xgmii, speed 1000, link 1
[   33.369886] rtl93xx_phylink_mac_config SDS is -1
[   34.248662] switch: port 12(lan12) entered blocking state
[   34.254769] switch: port 12(lan12) entered disabled state
[   34.261815] device lan12 entered promiscuous mode
[   34.355766] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   41.452369] switch: port 2(lan2) entered learning state
[   49.772361] switch: port 2(lan2) entered forwarding state
[   49.778396] switch: topology change detected, propagating
[   49.784981] IPv6: ADDRCONF(NETDEV_CHANGE): switch: link becomes ready
[   49.794007] IPv6: ADDRCONF(NETDEV_CHANGE): switch.3: link becomes ready
[   49.801659] IPv6: ADDRCONF(NETDEV_CHANGE): switch.5: link becomes ready
[   49.809345] IPv6: ADDRCONF(NETDEV_CHANGE): switch.7: link becomes ready
[   49.817054] IPv6: ADDRCONF(NETDEV_CHANGE): switch.12: link becomes ready
[   50.915504] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   50.922932] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   51.612477] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   51.619819] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported

Maybe related to this:

[    6.404784] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.

Is this a known issue in 23.05.5? What version is confirmed to work?

Thank you,

Ramon

I was just wondering, if the Zyxel 1250-12 network has already been fixed in master? If so, what would be the easiest way to flash it? network is not working, so I guess I either would need to transfer the new image via serial (not sure if that
it's possible) or would I need to use the tftp way explained on the wiki?
I have console access and would prefer to be able to copy the new image over to /tmp to then sysupgrade.

If you have console access then you can interrupt U-Boot during boot (space or ESC, you are prompted on the CLI). You are now in the bootloader and can grab a new initramfs image and boot assuming the regular Realtek rtk commands are used here:

rtk network on
printenv
# setenv any variable to change like server IP etc
tftpboot 0x84f00000 <name-of-initramfs-on-tftp-server>
bootm

Given the large amount of movement in these targets in the last few weeks I suggest trying a snapshot build.

Not on the XGS1250-10. You can set the boot command to something bogus though in OpenWrt, then you'll be dropped to a shell with the next boot attempt.

You can find the patch that worked for me above.
But I don't think it got fixed in master yet.

So, i will try to contribute the fix (hopefully soon).

(PS: @ramon sorry for the late response, dont have much time here)

I have the same problem.
Network on this XGS1250-12 still does work on v22.03.7.

@yolf Looks like the 10Gb port fix is in snapshot builds as the PR (https://github.com/openwrt/openwrt/pull/16391) is merged.

Do all the ports fail or just 10Gbase-T ports?

Thank you!

I tried every official build of the 23.05 series. Every time the same problem: The XGS1250-12 then is not an ethernet switch anymore, just direct connections through every Base-T (1G and 10G) are possible. Since I have no equipment to test it with, I cannot say anything about the SFP+ port.

The v22.03 series behaves like described in the OpenWRT wiki.

The realtek drivers and some of the platform support is missing in mainline Linux. This means that a lot of work has to be done on this code every time OpenWrt moves forward to a new kernel, whether we want to or not. Just recently there was an impresssive effort moving realtek to Linux v6.6. The only, and very real, alternative was dropping the target.

I assume it's obvious, but just to be clear: New bugs are unavoidable when doing major changes like that to code that is, uhm, well, not exactly mainline quality. The only way to deal with that is to find and fix those bugs. For that, someone has to test the code on real hardware.

This does not work so well for rtl93xx. There are few supported devices and they are very expensive. So it's hard to get enough test coverage. Bugs affecting only rtl93xx can go undetected for a long time for this reason. In particular if the bugs depend on some specific use case, adding yet another dimension to the test matrix.

I'm afraid testing all revisions of stable OpenWrt branches isn't going to help much. Since you obviously are willing to put in a lot of testing efforts, may I suggest that you try out snapshots or even build your own image from the main git branch? That's where we need to see testing to be able to fix bugs.

I assume you are familiar enough with the xgs1250-12 to be able to test new (and possibly crashing) images without bricking the switch. If not, then please ignore the suggestion.

4 Likes

Try the snapshot builds, this way we can work to fix the problem before the 24.xx release.

I just tried the snapshot zyxel_xgs1250-12-squashfs-sysupgrade.bin (Thu Oct 10 01:38:02 2024).
It does boot, but I am not able to ping the device.
Port 1-8 at least do negotiate a physical connection (while the LEDs do not light up). The 10G Base-T ports won't do anything.

U-Boot Version V1.0.0.2 (Aug 11 2020 - 14:10:19)

Board: RTL9300 CPU:800MHz LX:175MHz DDR:600MHz
DRAM:  128 MB
SPI-F: MXIC/C22018/MMIO16-1/ModeC 1x16 MB (plr_flash_info @ 83f747e4)
Loading 65536B env. variables from offset 0xe0000
Net:   Net Initialization Skipped
No ethernet found.                                                                                                  0 
Enable network
RTCORE Driver Module Initialize
  IOAL init
  Hardware-profile probe  GPIO probe (unit 0): (found)
  GPIO Init

 (XGS1250_12)
  Hardware-profile init
  GPIO probe (unit 0): (found)
  GPIO Init rtl9300_gpio_init had already been initialized!

  SPI init (unit 0) 
  I2C probe (unit 0)
  I2C init (unit 0)
  NIC probe (unit 0)
  Loader RTNIC Driver Module Initialize
  IOAL init
RTK Driver Module Initialize
  MAC probe (unit 0)
    Chip 9302 (found)
  MAC init (unit 0)
  SMI protocol probe (unit 0)
  PHY probe (unit 0)
  Chip Construct (unit 0)
    Chip Construct
    Disable PHY Polling
    PHY Reset
PHY reset is not supported!
    MAC Construct
    Turn Off Serdes
    Serdes Construct
    PHY Construct
    Turn On Serdes
    Enable PHY Polling
    Misc
  PHY init (unit 0)
  Mgmt_dev init (unit 0) 
Please wait for PHY init-time ...

## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   MIPS OpenWrt Linux-6.6.54
   Created:      2024-10-09  19:21:57 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    3823654 Bytes = 3.6 MB
   Load Address: 80100000
   Entry Point:  80100000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 6.6.54 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r27717-c3251f5d52) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 Wed Oct  9 19:21:57 2024
[    0.000000] RTL838X model is 0
[    0.000000] RTL839X model is 0
[    0.000000] RTL93XX model is 93021001
[    0.000000] SoC Type: RTL9302B
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019555 (MIPS 34Kc)
[    0.000000] MIPS: machine is Zyxel XGS1250-12 Switch
[    0.000000] earlycon: ns16550a0 at MMIO 0x18002000 (options '115200n8')
[    0.000000] printk: bootconsole [ns16550a0] enabled
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using appended Device Tree.
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Kernel command line: earlycon
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=00021020
[    0.000000] Readback ErrCtl register=00021020
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 119276K/131072K available (6812K kernel code, 630K rwdata, 1584K rodata, 1204K init, 217K bss, 11796K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] Failed to get CPU clock: -2
[    0.000000] CPU frequency from device tree: 800MHz
[    0.000000] clocksource: realtek_otto_timer: mask: 0xfffffff max_cycles: 0xfffffff, max_idle_ns: 38225208801 ns
[    0.000002] sched_clock: 28 bits at 3125kHz, resolution 320ns, wraps every 42949672800ns
[    0.009036] Calibrating delay loop... 531.66 BogoMIPS (lpj=2658304)
[    0.065702] pid_max: default: 32768 minimum: 301
[    0.080806] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.088801] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.106844] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.121480] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.132281] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.142347] pinctrl core: initialized pinctrl subsystem
[    0.150286] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.157424] thermal_sys: Registered thermal governor 'step_wise'
[    0.172010] clocksource: Switched to clocksource realtek_otto_timer
[    0.196537] NET: Registered PF_INET protocol family
[    0.202175] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.211657] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.220967] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.229463] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.237870] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.245617] TCP: Hash tables configured (established 1024 bind 1024)
[    0.252760] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.259934] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.268547] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.280949] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.289844] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.296287] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.315384] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.325072] pinctrl-single 1b00cc00.pinmux: 32 pins, size 4
[    0.333092] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.346865] printk: console [ttyS0] disabled
[    0.352198] 18002000.uart: ttyS0 at MMIO 0x18002000 (irq = 30, base_baud = 10937500) is a 16550A
[    0.361840] printk: console [ttyS0] enabled
[    0.361840] printk: console [ttyS0] enabled
[    0.371185] printk: bootconsole [early0] disabled
[    0.371185] printk: bootconsole [early0] disabled
[    0.416151] printk: bootconsole [ns16550a0] disabled
[    0.416151] printk: bootconsole [ns16550a0] disabled
[    0.465222] brd: module loaded
[    0.472502] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    0.478416] 7 fixed-partitions partitions found on MTD device spi0.0
[    0.485596] OF: Bad cell count for /soc/spi@1200/flash@0/partitions
[    0.492634] OF: Bad cell count for /soc/spi@1200/flash@0/partitions
[    0.499922] Creating 7 MTD partitions on "spi0.0":
[    0.505327] 0x000000000000-0x0000000e0000 : "u-boot"
[    0.514042] 0x0000000e0000-0x0000000f0000 : "u-boot-env"
[    0.522444] 0x0000000f0000-0x000000100000 : "u-boot-env2"
[    0.530871] 0x000000100000-0x000000200000 : "jffs"
[    0.538625] 0x000000200000-0x000000300000 : "jffs2"
[    0.546461] 0x000000300000-0x000000fe0000 : "firmware"
[    0.554908] 2 uimage-fw partitions found on MTD device firmware
[    0.561521] Creating 2 MTD partitions on "firmware":
[    0.567104] 0x000000000000-0x0000003b0000 : "kernel"
[    0.575045] 0x0000003b0000-0x000000ce0000 : "rootfs"
[    0.582837] mtd: setting mtd7 (rootfs) as root device
[    0.588533] 1 squashfs-split partitions found on MTD device rootfs
[    0.595482] 0x000000630000-0x000000ce0000 : "rootfs_data"
[    0.603946] 0x000000fe0000-0x000001000000 : "log"
[    0.623972] Probing RTL838X eth device pdev: 818a9400, dev: 818a9410
[    0.650270] Found SoC ID: 9302: RTL9302B, family 9300
[    0.656071] Using MAC 000000e04c000000
[    0.660344] set sds port 0 to 2
[    0.663931] set sds port 24 to 6
[    0.667531] set sds port 25 to 7
[    0.671120] set sds port 26 to 8
[    0.674762] set sds port 27 to 9
[    0.679134] c45_mask: 000e0000
[    0.820290] thermal thermal_zone0: Failed to set trips: -34
[    0.855929] thermal thermal_zone1: Failed to set trips: -34
[    0.892293] thermal thermal_zone2: Failed to set trips: -34
[    0.910918] REALTEK RTL9300 SERDES mdio-bus:1b: Detected internal RTL9300 Serdes
[    0.928583] i2c_dev: i2c /dev entries driver
[    0.933581] rtl9300_i2c_probe probing I2C adapter
[    0.938856] i2c-rtl9300 1b00036c.i2c-rtl9300: SCL speed 100000, mode is 0
[    0.946454] rtl9300_i2c_probe scl_num 0
[    0.950720] rtl9300_i2c_probe sda_num 1
[    0.958862] NET: Registered PF_INET6 protocol family
[    0.978450] Segment Routing with IPv6
[    0.982756] In-situ OAM (IOAM) with IPv6
[    0.987329] NET: Registered PF_PACKET protocol family
[    0.993071] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.008157] 8021q: 802.1Q VLAN Support v1.8
[    1.035631] sfp sfp-p12: Host maximum power 1.0W
[    1.290841] REALTEK RTL9300 SERDES rtl838x slave mii-0:1b: Detected internal RTL9300 Serdes
[    1.312288] REALTEK RTL9300 SERDES rtl838x slave mii-0:3f: Detected internal RTL9300 Serdes
[    1.331746] rtl93xx_setup called
[    1.335458] In rtl83xx_vlan_setup
[    1.339152] In rtl930x_vlan_profile_setup
[    1.343633] In rtl930x_vlan_profile_setup
[    1.348099] UNKNOWN_MC_PMASK: 000000001fffffff
[    1.353068] VLAN 0: L2 learn: 0; Unknown MC PMasks: L2 1fffffff, IPv4 1fffffff, IPv6: 1fffffff
[    1.353089]   Routing enabled: IPv4 UC y, IPv6 UC y, IPv4 MC y, IPv6 MC y
[    1.370234]   Bridge enabled: IPv4 MC n, IPv6 MC n,
[    1.375683] VLAN profile 0: raw 00033000 00000000 1fffffff 1fffffff 1fffffff
[    2.412015] rtl83xx_enable_phy_polling:          f0000ff
[    2.417945] rtl930x_pie_init
[    2.421355] rtl930x_led_init called
[    2.425362] rtl930x_led_init led_set configuration invalid skipping over this set
[    2.433752] rtl930x_led_init bb00cc00: 01052659
[    2.438797] rtl930x_led_init bb00cc04: aaaa5555
[    2.443854] rtl930x_led_init bb00cc08: 007faaaa
[    2.448899] rtl930x_led_init bb00cc0c: 00000000
[    2.453956] rtl930x_led_init bb00cc10: 00000000
[    2.459002] rtl930x_led_init bb00cc14: 00000000
[    2.464058] rtl930x_led_init bb00cc18: 0a200a01
[    2.469104] rtl930x_led_init bb00cc1c: 0a0b0a28
[    2.474161] rtl930x_led_init bb00cc20: 0a820a0b
[    2.479206] rtl930x_led_init bb00cc24: 00000000
[    2.484264] rtl930x_led_init bb00cc28: 0a200b80
[    2.489308] rtl930x_led_init bb00cc2c: 00000000
[    2.494365] rtl930x_led_init bb00cc30: 00950000
[    2.499412] rtl930x_led_init bb00cc34: 00000000
[    2.504469] rtl930x_led_init bb00cc38: 00950000
[    2.509514] rtl930x_led_init bb00cc3c: 0f0000ff
[    2.514579] rtl930x_led_init bb00cc40: 0f0000ff
[    2.519625] rtl930x_led_init bb00cc44: 0f0000ff
[    2.524686] rtl930x_led_init bb00cc48: 00000000
[    2.529728] rtl930x_led_init bb00cc4c: 00000000
[    2.534786] rtl930x_led_init bb00cc50: 00000000
[    2.539830] rtl930x_led_init bb00cc54: 00000000
[    2.544888] rtl930x_led_init bb00cc58: 00000000
[    2.549932] rtl930x_led_init bb00cc5c: 00000000
[    2.555151] rtl83xx-switch switch@1b000000: configuring for fixed/internal link mode
[    2.563840] rtl93xx_phylink_mac_config port 28, mode 1, phy-mode: internal, speed -1, link 0
[    2.573925] rtl83xx-switch switch@1b000000 lan1 (uninitialized): PHY [mdio-bus:00] driver [REALTEK RTL8218D] (irq=POLL)
[    2.587718] rtl83xx-switch switch@1b000000 lan2 (uninitialized): PHY [mdio-bus:01] driver [REALTEK RTL8218D] (irq=POLL)
[    2.601586] rtl83xx-switch switch@1b000000 lan3 (uninitialized): PHY [mdio-bus:02] driver [REALTEK RTL8218D] (irq=POLL)
[    2.616072] rtl83xx-switch switch@1b000000 lan4 (uninitialized): PHY [mdio-bus:03] driver [REALTEK RTL8218D] (irq=POLL)
[    2.629995] rtl83xx-switch switch@1b000000 lan5 (uninitialized): PHY [mdio-bus:04] driver [REALTEK RTL8218D] (irq=POLL)
[    2.643803] rtl83xx-switch switch@1b000000 lan6 (uninitialized): PHY [mdio-bus:05] driver [REALTEK RTL8218D] (irq=POLL)
[    2.657600] rtl83xx-switch switch@1b000000 lan7 (uninitialized): PHY [mdio-bus:06] driver [REALTEK RTL8218D] (irq=POLL)
[    2.671384] rtl83xx-switch switch@1b000000 lan8 (uninitialized): PHY [mdio-bus:07] driver [REALTEK RTL8218D] (irq=POLL)
[    2.688034] rtl83xx-switch switch@1b000000: Link is Up - 10Gbps/Full - flow control off
[    2.719106] rtl83xx-switch switch@1b000000 lan9 (uninitialized): validation of usxgmii with support 00,00000000,00018000,000e706c and advertisement 00,00000000,00018000,000e706c failed: -EINVAL
[    2.758714] rtl83xx-switch switch@1b000000 lan9 (uninitialized): failed to connect to PHY: -EINVAL
[    2.768773] rtl83xx-switch switch@1b000000 lan9 (uninitialized): error -22 setting up PHY for tree 0, switch 0, port 24
[    2.799435] rtl83xx-switch switch@1b000000 lan10 (uninitialized): validation of usxgmii with support 00,00000000,00018000,000e706c and advertisement 00,00000000,00018000,000e706c failed: -EINVAL
[    2.838326] rtl83xx-switch switch@1b000000 lan10 (uninitialized): failed to connect to PHY: -EINVAL
[    2.848478] rtl83xx-switch switch@1b000000 lan10 (uninitialized): error -22 setting up PHY for tree 0, switch 0, port 25
[    2.879771] rtl83xx-switch switch@1b000000 lan11 (uninitialized): validation of usxgmii with support 00,00000000,00018000,000e706c and advertisement 00,00000000,00018000,000e706c failed: -EINVAL
[    2.918662] rtl83xx-switch switch@1b000000 lan11 (uninitialized): failed to connect to PHY: -EINVAL
[    2.928796] rtl83xx-switch switch@1b000000 lan11 (uninitialized): error -22 setting up PHY for tree 0, switch 0, port 26
[    2.942763] rtl838x-eth 1b00a300.ethernet eth0: entered promiscuous mode
[    2.950336] DSA: tree 0 setup
[    2.953792] LINK state irq: 23
[    2.957235] In rtl83xx_setup_qos
[    2.960883] L3_IPUC_ROUTE_CTRL 00002000, IPMC_ROUTE 0000077e, IP6UC_ROUTE 00014400, IP6MC_ROUTE 0001db7e
[    2.971477] L3_IPUC_ROUTE_CTRL 00002001, IPMC_ROUTE 00000501, IP6UC_ROUTE 00014581, IP6MC_ROUTE 00012881
[    2.982061] L3_IP_ROUTE_CTRL 0000013f
[    2.986261] rtl930x_dbgfs_init called
[    2.990848] rtl83xx_fib_event_work_do: FIB4 default rule failed
[    2.998485] rtl83xx_fib_event_work_do: FIB4 default rule failed
[    3.006160] clk: Disabling unused clocks
[    3.016559] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    3.029537] Freeing unused kernel image (initmem) memory: 1204K
[    3.036201] This architecture does not have kernel memory protection.
[    3.043405] Run /sbin/init as init process
[    3.047964]   with arguments:
[    3.051256]     /sbin/init
[    3.054288]   with environment:
[    3.057778]     HOME=/
[    3.060393]     TERM=linux
[    3.539219] init: Console is alive
[    3.543528] init: - watchdog -
[    3.892913] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.929273] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    3.941604] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.960385] init: - preinit -
[    7.562070] random: crng init done
Cannot parse config file '/etc/fw_env.config': No such file or directory
Failed to find NVMEM device
[    9.281161] RESETTING 9300, CPU_PORT 28
[    9.485805] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode
[    9.494808] In rtl838x_mac_config, mode 1
[    9.500068] rtl83xx-switch switch@1b000000 lan1: configuring for phy/xgmii link mode
[    9.508774] rtl93xx_phylink_mac_config port 0, mode 0, phy-mode: xgmii, speed -1, link 0
[    9.517810] rtl93xx_phylink_mac_config SDS is 2
[    9.523212] 8021q: adding VLAN 0 to HW filter on device lan1
[    9.529837] rtl838x-eth 1b00a300.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    9.551531] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[    9.558966] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[    9.576178] rtl83xx_fib_event_work_do: FIB4 failed
[    9.581538] rtl83xx_fib_event_work_do: FIB4 failed
[    9.586984] rtl83xx_fib_event_work_do: FIB4 failed
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
[   11.052071] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   11.840736] jffs2: notice: (774) jffs2_build_xattr_subsystem: complete building xattr subsystem, 23 of xdatum (5 unchecked, 15 orphan) and 27 of xref (6 dead, 11 orphan) found.
[   11.860075] mount_root: switching to jffs2 overlay
[   11.868692] overlayfs: upper fs does not support tmpfile.
[   11.883325] urandom-seed: Seeding with /etc/urandom.seed
[   11.970259] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[   11.976155] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[   11.981891] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[   12.011920] procd: - early -
[   12.015626] procd: - watchdog -
[   12.713137] procd: - watchdog -
[   12.717755] procd: - ubus -
[   12.878445] procd: - init -
Please press Enter to activate this console.
[   14.096870] kmodloader: loading kernel modules from /etc/modules.d/*
[   14.123392] gpio-fan gpio-fan: GPIO fan initialized
[   14.153766] GACT probability on
[   14.163340] Mirror/redirect action on
[   14.191768] u32 classifier
[   14.194856]     input device check on
[   14.198930]     Actions configured
[   14.403038] kmodloader: done loading kernel modules from /etc/modules.d/*
[   15.672416] urngd: v1.0.2 started.
[   18.134807] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   23.701072] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   23.754192] in rtl838x_eth_stop
[   23.757803] rtl838x-eth 1b00a300.ethernet eth0: Link is Down
[   24.315418] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   24.322799] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   24.330094] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   24.337459] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   24.542552] Using MAC 0000bccf4fe81a3d
[   24.546976] RESETTING 9300, CPU_PORT 28
[   24.751615] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode
[   24.760620] In rtl838x_mac_config, mode 1
[   24.768443] rtl838x-eth 1b00a300.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   24.779438] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   24.786878] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   24.913406] rtl83xx-switch switch@1b000000 lan1: configuring for phy/xgmii link mode
[   24.922112] rtl93xx_phylink_mac_config port 0, mode 0, phy-mode: xgmii, speed -1, link 0
[   24.931120] rtl93xx_phylink_mac_config SDS is 2
[   24.937317] 8021q: adding VLAN 0 to HW filter on device lan1
[   24.966227] switch: port 1(lan1) entered blocking state
[   24.972144] switch: port 1(lan1) entered disabled state
[   24.978008] rtl83xx-switch switch@1b000000 lan1: entered allmulticast mode
[   24.985744] rtl838x-eth 1b00a300.ethernet eth0: entered allmulticast mode
[   24.994211] rtl83xx-switch switch@1b000000 lan1: entered promiscuous mode
[   25.052516] rtl930x_set_l3_egress_intf writing to index 0: 00000201 10101492
[   25.072670] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   25.081092] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   25.220220] rtl83xx-switch switch@1b000000 lan2: configuring for phy/xgmii link mode
[   25.228915] rtl93xx_phylink_mac_config port 1, mode 0, phy-mode: xgmii, speed -1, link 0
[   25.237976] rtl93xx_phylink_mac_config SDS is -1
[   25.243463] 8021q: adding VLAN 0 to HW filter on device lan2
[   25.333557] switch: port 2(lan2) entered blocking state
[   25.339396] switch: port 2(lan2) entered disabled state
[   25.345323] rtl83xx-switch switch@1b000000 lan2: entered allmulticast mode
[   25.402878] rtl83xx-switch switch@1b000000 lan2: entered promiscuous mode
[   25.516320] rtl83xx-switch switch@1b000000 lan3: configuring for phy/xgmii link mode
[   25.525023] rtl93xx_phylink_mac_config port 2, mode 0, phy-mode: xgmii, speed -1, link 0
[   25.534101] rtl93xx_phylink_mac_config SDS is -1
[   25.539464] 8021q: adding VLAN 0 to HW filter on device lan3
[   25.622727] switch: port 3(lan3) entered blocking state
[   25.628568] switch: port 3(lan3) entered disabled state
[   25.634495] rtl83xx-switch switch@1b000000 lan3: entered allmulticast mode
[   25.670202] rtl83xx-switch switch@1b000000 lan3: entered promiscuous mode
[   25.760797] rtl83xx-switch switch@1b000000 lan4: configuring for phy/xgmii link mode
[   25.769513] rtl93xx_phylink_mac_config port 3, mode 0, phy-mode: xgmii, speed -1, link 0
[   25.778568] rtl93xx_phylink_mac_config SDS is -1
[   25.784048] 8021q: adding VLAN 0 to HW filter on device lan4
[   25.852859] switch: port 4(lan4) entered blocking state
[   25.858704] switch: port 4(lan4) entered disabled state
[   25.864643] rtl83xx-switch switch@1b000000 lan4: entered allmulticast mode
[   25.898119] rtl83xx-switch switch@1b000000 lan4: entered promiscuous mode
[   26.016606] rtl83xx-switch switch@1b000000 lan5: configuring for phy/xgmii link mode
[   26.025311] rtl93xx_phylink_mac_config port 4, mode 0, phy-mode: xgmii, speed -1, link 0
[   26.034369] rtl93xx_phylink_mac_config SDS is -1
[   26.039748] 8021q: adding VLAN 0 to HW filter on device lan5
[   26.112665] switch: port 5(lan5) entered blocking state
[   26.118543] switch: port 5(lan5) entered disabled state
[   26.124465] rtl83xx-switch switch@1b000000 lan5: entered allmulticast mode
[   26.172752] rtl83xx-switch switch@1b000000 lan5: entered promiscuous mode
[   26.266109] rtl83xx-switch switch@1b000000 lan6: configuring for phy/xgmii link mode
[   26.274811] rtl93xx_phylink_mac_config port 5, mode 0, phy-mode: xgmii, speed -1, link 0
[   26.283869] rtl93xx_phylink_mac_config SDS is -1
[   26.289402] 8021q: adding VLAN 0 to HW filter on device lan6
[   26.362785] switch: port 6(lan6) entered blocking state
[   26.368664] switch: port 6(lan6) entered disabled state
[   26.374589] rtl83xx-switch switch@1b000000 lan6: entered allmulticast mode
[   26.383187] rtl83xx-switch switch@1b000000 lan6: entered promiscuous mode
[   26.522233] rtl83xx-switch switch@1b000000 lan7: configuring for phy/xgmii link mode
[   26.530877] rtl93xx_phylink_mac_config port 6, mode 0, phy-mode: xgmii, speed -1, link 0
[   26.539945] rtl93xx_phylink_mac_config SDS is -1
[   26.545834] 8021q: adding VLAN 0 to HW filter on device lan7
[   26.575747] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   26.583154] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   26.611954] switch: port 7(lan7) entered blocking state
[   26.617867] switch: port 7(lan7) entered disabled state
[   26.623785] rtl83xx-switch switch@1b000000 lan7: entered allmulticast mode
[   26.632370] rtl83xx-switch switch@1b000000 lan7: entered promiscuous mode
[   26.760180] rtl83xx-switch switch@1b000000 lan8: configuring for phy/xgmii link mode
[   26.768878] rtl93xx_phylink_mac_config port 7, mode 0, phy-mode: xgmii, speed -1, link 0
[   26.777935] rtl93xx_phylink_mac_config SDS is -1
[   26.783431] 8021q: adding VLAN 0 to HW filter on device lan8
[   26.842800] switch: port 8(lan8) entered blocking state
[   26.848643] switch: port 8(lan8) entered disabled state
[   26.854579] rtl83xx-switch switch@1b000000 lan8: entered allmulticast mode
[   26.863209] rtl83xx-switch switch@1b000000 lan8: entered promiscuous mode
[   26.911893] rtl83xx-switch switch@1b000000 lan12: configuring for inband/1000base-x link mode
[   26.921467] rtl93xx_phylink_mac_config port 27, mode 2, phy-mode: 1000base-x, speed -1, link 0
[   26.931104] rtl93xx_phylink_mac_config SDS is 9
[   26.936180] rtl9300_sds_rst 31
[   27.066392] rtl9300_phy_enable_10g_1g 1gbit phy: 00001140
[   27.073450] rtl9300_phy_enable_10g_1g 1gbit phy enabled: 00001140
[   27.081227] rtl9300_phy_enable_10g_1g 10gbit phy: 00002040
[   27.088358] rtl9300_phy_enable_10g_1g 10gbit phy after: 00002040
[   27.096068] rtl9300_phy_enable_10g_1g set medium: 00000002
[   27.103209] rtl9300_phy_enable_10g_1g set medium after: 00000002
[   27.129879] rtl9300_serdes_setup: Configuring RTL9300 SERDES 9
[   27.138410] rtl9300_serdes_mac_link_config: registers before 00000000 00001403
[   27.150484] rtl9300_serdes_mac_link_config: registers after 00000000 00001403
[   27.158458] rtl9300_force_sds_mode: SDS: 9, mode 23
[   27.163918] rtl9300_force_sds_mode --------------------- serdes 9 forcing to 4 ...
[   27.428829] rtl9300_force_sds_mode --------------------- serdes 9 forced to 4 DONE
[   27.738819] rtl9300_sds_10g_idle WARNING: Waiting for RX idle timed out, SDS 9
[   27.746896] start_1.1.1 initial value for sds 9
[   27.808864] end_1.1.1 --
[   27.811693] start_1.1.2 Load DFE init. value
[   27.818465] end_1.1.2
[   27.820994] start_1.1.3 disable LEQ training,enable DFE clock
[   27.839388] end_1.1.3 --
[   27.842242] start_1.1.4 offset cali setting
[   27.848891] end_1.1.4
[   27.851407] start_1.1.5 LEQ and DFE setting
[   27.870079] end_1.1.5
[   27.881615] start_1.2.1 ForegroundOffsetCal_Manual
[   27.890968] end_1.2.1
[   27.901968] start_1.2.3 Foreground Calibration
[   27.920456] rtl9300_do_rx_calibration_2_3: fgcal_gray: 31, fgcal_binary 31
[   27.929136] rtl9300_do_rx_calibration_2_3: end_1.2.3
[   27.934682] start_1.4.1
[   28.158192] end_1.4.1
[   28.160918] start_1.4.2
[   28.173461] vth_set_bin = 7
[   28.176190] vth_set_bin = 3
[   28.180283] Vth Maunal = 0
[   28.299155] Tap0 Sign : +
[   28.302202] tap0_coef_bin = 31
[   28.306113] tap0 manual = 0
[   28.315511] end_1.4.2
[   28.416600] 8021q: adding VLAN 0 to HW filter on device lan12
[   28.579528] switch: port 9(lan12) entered blocking state
[   28.585523] switch: port 9(lan12) entered disabled state
[   28.591481] rtl83xx-switch switch@1b000000 lan12: entered allmulticast mode
[   28.600222] rtl83xx-switch switch@1b000000 lan12: entered promiscuous mode
[   28.615003] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported



BusyBox v1.36.1 (2024-10-09 19:21:57 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r27717-c3251f5d52
 -----------------------------------------------------
=== 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:~# [   88.901264] rtl83xx-switch switch@1b000000 lan1: Link is Up - 1Gbps/Full - flow control off
[   88.910674] switch: port 1(lan1) entered blocking state
[   88.916560] switch: port 1(lan1) entered forwarding state
[   90.652069] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   90.659419] rtl83xx_fib_event: FIB_RULE ADD/DEL for IPv6 not supported
[   98.258721] rtl83xx-switch switch@1b000000 lan1: Link is Down
[   98.265242] switch: port 1(lan1) entered disabled state
[  100.276576] rtl83xx-switch switch@1b000000 lan2: Link is Up - 1Gbps/Full - flow control off
[  100.285993] switch: port 2(lan2) entered blocking state
[  100.291825] switch: port 2(lan2) entered forwarding state
[  108.594270] rtl83xx-switch switch@1b000000 lan2: Link is Down
[  108.600777] switch: port 2(lan2) entered disabled state
[  116.981076] rtl83xx-switch switch@1b000000 lan5: Link is Up - 1Gbps/Full - flow control off
[  116.990493] switch: port 5(lan5) entered blocking state
[  116.996377] switch: port 5(lan5) entered forwarding state
[  125.299195] rtl83xx-switch switch@1b000000 lan5: Link is Down
[  125.305744] switch: port 5(lan5) entered disabled state
[  130.436356] rtl83xx-switch switch@1b000000 lan8: Link is Up - 1Gbps/Full - flow control off
[  130.445770] switch: port 8(lan8) entered blocking state
[  130.451605] switch: port 8(lan8) entered forwarding state
[  138.754775] rtl83xx-switch switch@1b000000 lan8: Link is Down
[  138.761258] switch: port 8(lan8) entered disabled state
1 Like

Confirms the result from my test recently after snapshot was moved to 6.6.

@all Let me know if there are any logs or other information you want me to grab from my 1250-12 and I am very happy to help and also help testing potential patches.

Is this a missing PHY_INTERFACE_MODE_USXGMII bit in rtl83xx_phylink_get_caps(), or is it more complicated than that @plappermaul ?

But what about the rest? Any idea why the other ports don't work, or where to start debugging?

I have no idea if I can add a lot to this discussion. Not much co-developers left to share ideas and to split open work. But maybe I can give a little background about the current issues:

  1. The UXGMII error above indeed comes from the missing capabilities. Copy this commit and adapt accordinglingy.

  2. not working ports: Inside the SoC there are multiple SerDes (Serializer/Deserializer) that provide fast interconnects. Attached to them are the ethernet transceivers (1-8 ports). Both of them must be configured (patched) so that the link goes up. If U-Boot does it for us we are lucky. If not we need something like that or that. An effort for the RTL8218D gigabit ports on Zyxel 12xx has already been made and stalled since 2022.

  3. Missing switching capability in RTL93xx: No one took time until now to fix this.

  4. Error "rtl93xx_phylink_mac_config port 4, mode 0, phy-mode: xgmii, speed -1, link 0": This bug comes from a missing refactor. See here to get an ide what must be done.

Being only a free contributor with close to no support from the project and nobody who at least actively tests/confirms my PRs I cannot save the world alone. If 6.6 with all its errors is the best status a single person can achieve nowadays then we must accept it. At least we have enough errors to discuss about (endlessly). Everone brings themselves ...

3 Likes

LGS310C rtl838x support was added October 2.

Snapshots for the rtl838x target stopped building October 2.

Coincidence?

Anyone have general UCI scripting know-how? I've got a couple of PoE switches and it seems that the board.json isn't processed correctly. In fact nothing changes in /etc/config/poe at all, and UCI shows the defaults until I manually setup the switch.
I validated that the board.json PoE data is processed correctly and /etc/board.d/02_network appears to be correct, so it's the next step that is failing somewhere. Seems that this function is supposed to write the UCI data but it's not doing anything from what I can see, perhaps a broken call somewhere?

ucidef_set_poe() {
	json_select_object poe
		json_add_string "budget" "$1"
		json_select_array ports
			for port in $2; do
				json_add_string "" "$port"
			done
		json_select ..
	json_select ..
}

Looks like the makefile was updated to include a couple of new scripts which might have failed. I'll try to build the new target and see what happens.

No need to spend time there. Should be fixed with https://github.com/openwrt/openwrt/pull/16667

2 Likes