Support for RTL838x based managed switches

Thank you, this partially answers it, but I still wonder if there's a chance to make hardware offloading work, since one poster states: "Bandwidth tests without a bond are 950+ Mbit/s". Is the latter for switching without link aggregation only?

You have to distinguish between L2 features (switching) and L3 features (routing, firewalling and more), the former happen totally within the switch fabric, in hardware, at line speed - the later in the way underpowered CPU core. The attached SOC isn't much more than a companion core, only intended to bootstrap the switch fabric and display the webinterface.

--
In case of these realtek SOCs this is a bit too simplified, but still very valid to keep in the back of your mind
yes. rtl839x and rtl93xx can offer some further offloading features, but that's more something for the future, than anything to use right now).

1 Like

OK, that's bad news in administrative simplicity and power consumption, as well as having another point of failure, but it is still worth to consider even If I'll have to use a router in front of it.

Up to this point, I've not spent much time with those kind of problems. that's why I'm asking here.

So I'll try to sum up, please correct me if I still misunderstood something:

The SoC does any routing via CPU as of now with current OpenWRT (which in theory can be overcome in future). That would be sufficient for my current internet connection way below 50 MBit/s (which won't lead to have less devices or power consumption even then, because I'd still need an additional modem for PPPoE/VDSL2), but when I switch over to the optical fibre, the potential benefit would be "consumed" by the then underpowered routing device.

Compared to what?

The biggest power consumption question to begin with is still if you really need a 52port PoE switch for your needs?
20 smartphones and some laptop on wifi!? How are the 52 PoE ports supposed to solve that unless you are planning to use like 45 dumb PoE access points, which is ridiculous since you need more than 100m ethernet cable to cover the area with that many AP so then you need more PoE switches to distribute these AP.

Not to mention this 52-port switch will sound a lot with all its cooling fans.

2 Likes

According to its manufacturer, it's got 3 cooling fans. Only one of the current switches has more (4?), if I remember correctly.

Nowadays I'm alrerady running a dumb 16-port gigabit switch (with almost no ports free) along with a manageable 100MBit/s 26-port switch (24+2GBit/SFP). It's not only the uplinks for APs, those are real routers wich have their own LAN segment each, this is used for wall sockets. Additionally, it's a good idea to use ethernet instead of wifi for the mesh connections between routers, so you need 2 or 3 ports for one such router, or you must reconfigure it to use 3 VLANs on a trunk port on their WAN connector, which is error-prone in case of updates. It's power-wise definitely worse in its current state now.

It is possible to either configure the wifi routers with less cables/switch ports, or use the Gluon stock configuration; the first option, however, isn't really update-safe.

I just received a GS1900-10HP Rev. B1.

I managed to boot the gs1900-10hp kernel. And i collected some informations.

uboot and dmesg
U-Boot Version: 2.0.2.1 (May 21 2021 - 12:21:20)

CPU:   500MHz
DRAM:  128 MB
FLASH: 16 MB
Model: ZyXEL_GS1900_10HPv2
SN:    S222L20001352
MAC:   D8:EC:E5:A3:1E:16 - D8:EC:E5:A3:1E:20

Press SPACE to abort boot script:  0 
## Booting image from partition ... 0
   Version:   V2.70.1
   Created:   2022-01-11   9:41:36 UTC
   Size:      6004197 Bytes = 5.7 MB
   Verifying Checksum ... OK
   Uncompressing Image ... OK

Starting ...

Default IP Setting.......
Press any key to continue
Username: admin
Password: ****
GS1900# reboot
Restarting system.
Normal reboot [0x2625a000]


U-Boot Version: 2.0.2.1 (May 21 2021 - 12:21:20)

CPU:   500MHz
DRAM:  128 MB
FLASH: 16 MB
Model: ZyXEL_GS1900_10HPv2
SN:    S222L20001352
MAC:   D8:EC:E5:A3:1E:16 - D8:EC:E5:A3:1E:20

Press SPACE to abort boot script:  0 0
RTL838x# rtk network on
Using rtl8380#0 device
RTL838x# tftpboot 0x84f00000 192.168.1.111:kernel.bin
TFTP from server 192.168.1.111; our IP address is 192.168.1.1
Filename 'kernel.bin'.
Load address: 0x84f00000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ##############
done
Bytes transferred = 6872003 (68dbc3 hex)
RTL838x# bootm
   Version:   MIPS OpenWrt Linux-5.10.146
   Created:   2022-10-14  22:44:41 UTC
   Size:      6871939 Bytes = 6.6 MB
   Verifying Checksum ... OK
   Uncompressing Image ... OK

Starting ...

[    0.000000] Linux version 5.10.146 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19803-9a599fee93) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Fri Oct 14 22:44:41 2022
[    0.000000] RTL838X model is 83806800
[    0.000000] SoC Type: RTL8380
[    0.000000] Kernel command line: console=ttyS0,115200 mem=64M quiet 
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019070 (MIPS 4KEc)
[    0.000000] MIPS: machine is ZyXEL GS1900-10HP Switch
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Using appended Device Tree.
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 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] On node 0 totalpages: 32768
[    0.000000]   Normal zone: 288 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    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: console=ttyS0,115200
[    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] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 112452K/131072K available (5867K kernel code, 625K rwdata, 720K rodata, 9868K init, 211K bss, 18620K 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] CPU frequency from device tree: 500MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041786 ns
[    0.000020] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns
[    0.008812] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[    0.075663] pid_max: default: 32768 minimum: 301
[    0.081150] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.089197] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.104150] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.118488] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.129403] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.137071] pinctrl core: initialized pinctrl subsystem
[    0.148578] NET: Registered protocol family 16
[    0.323729] clocksource: Switched to clocksource MIPS
[    0.332227] NET: Registered protocol family 2
[    0.337706] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.347522] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.357003] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.365570] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.373322] TCP: Hash tables configured (established 1024 bind 1024)
[    0.380970] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.388345] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.396771] NET: Registered protocol family 1
[    0.967047] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.982639] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.989190] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.004225] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.015829] pinctrl-single 1b001000.pinmux: 32 pins, size 4
[    1.022615] pinctrl-single 1b00a000.pinmux: 32 pins, size 4
[    1.029729] realtek_gpio_probe probing RTL GPIO
[    1.036023] Probing RTL8231 GPIOs
[    1.039633] rtl8231_init called, MDIO bus ID: 0
[    1.045004] gpio-464 (poe_enable): hogged as output/high
[    1.153411] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.167044] printk: console [ttyS0] disabled
[    1.171835] 18002000.uart: ttyS0 at MMIO 0x18002000 (irq = 31, base_baud = 12500000) is a 16550A
[    1.181662] printk: console [ttyS0] enabled
[    1.181662] printk: console [ttyS0] enabled
[    1.191007] printk: bootconsole [early0] disabled
[    1.191007] printk: bootconsole [early0] disabled
[    1.203087] 18002100.uart: ttyS1 at MMIO 0x18002100 (irq = 30, base_baud = 12500000) is a 16550A
[    1.969166] brd: module loaded
[    1.983528] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    1.989525] 7 fixed-partitions partitions found on MTD device spi0.0
[    1.996864] OF: Bad cell count for /soc/spi@1200/flash@0/partitions
[    2.004076] OF: Bad cell count for /soc/spi@1200/flash@0/partitions
[    2.011623] Creating 7 MTD partitions on "spi0.0":
[    2.017147] 0x000000000000-0x000000040000 : "u-boot"
[    2.030145] 0x000000040000-0x000000050000 : "u-boot-env"
[    2.039132] 0x000000050000-0x000000060000 : "u-boot-env2"
[    2.052942] 0x000000060000-0x000000160000 : "jffs"
[    2.061261] 0x000000160000-0x000000260000 : "jffs2"
[    2.074668] 0x000000260000-0x000000930000 : "firmware"
[    2.089749] 0x000000930000-0x000001000000 : "runtime2"
[    2.114288] Probing RTL838X eth device pdev: 82092e00, dev: 82092e10
[    2.171831] Found SoC ID: 8380: RTL8380, family 8380
[    2.177620] rtl8380_init_mac
[    2.180893] Using MAC 0000d8ece5a31e16
[    2.313020] Realtek RTL8218B (internal) mdio-bus:08: Detected internal RTL8218B
[    2.321325] Firmware loaded. Size 1184, magic: 83808380
[    5.127516] Realtek RTL8380 SERDES mdio-bus:18: Detected internal RTL8380 SERDES
[    5.135945] Firmware loaded. Size 1184, magic: 83808380
[    5.141829] SDS power down value: 3
[    5.169874] PLL control register: aaaaaaaf
[    5.174583] SDS power down value now: 3f
[    5.178974] Configuration of SERDES done
[    5.223104] i2c /dev entries driver
[    5.231767] NET: Registered protocol family 10
[    5.262189] Segment Routing with IPv6
[    5.266650] NET: Registered protocol family 17
[    5.271828] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    5.287183] 8021q: 802.1Q VLAN Support v1.8
[    5.293535] i2c-gpio i2c-gpio-0: Slow GPIO pins might wreak havoc into I2C/SMBus bus timing
[    5.303506] i2c-gpio i2c-gpio-0: using lines 475 (SDA) and 476 (SCL)
[    5.311420] i2c-gpio i2c-gpio-1: Slow GPIO pins might wreak havoc into I2C/SMBus bus timing
[    5.321429] i2c-gpio i2c-gpio-1: using lines 481 (SDA) and 482 (SCL)
[    5.330414] sfp sfp-p9: Host maximum power 1.0W
[    5.337463] sfp sfp-p10: Host maximum power 1.0W
[    5.696945] Realtek RTL8218B (internal) rtl838x slave mii-0:08: Detected internal RTL8218B
[    5.706314] Firmware loaded. Size 1184, magic: 83808380
[    8.504979] Realtek RTL8380 SERDES rtl838x slave mii-0:18: Detected internal RTL8380 SERDES
[    8.514475] Firmware loaded. Size 1184, magic: 83808380
[    8.520360] SDS power down value: 3
[    8.548440] PLL control register: f
[    8.552380] SDS power down value now: 3f
[    8.556845] Configuration of SERDES done
[    8.818403] rtl83xx_mdio_probe found port 8
[    8.823103] rtl83xx_mdio_probe port 8 has phandle
[    8.828484] rtl83xx_mdio_probe port -1 has SDS
[    8.833474] rtl83xx_mdio_probe found port 9
[    8.838251] rtl83xx_mdio_probe port 9 has phandle
[    8.843519] rtl83xx_mdio_probe port -1 has SDS
[    8.848587] rtl83xx_mdio_probe found port 10
[    8.853370] rtl83xx_mdio_probe port 10 has phandle
[    8.858821] rtl83xx_mdio_probe port -1 has SDS
[    8.863926] rtl83xx_mdio_probe found port 11
[    8.868718] rtl83xx_mdio_probe port 11 has phandle
[    8.874171] rtl83xx_mdio_probe port -1 has SDS
[    8.879162] rtl83xx_mdio_probe found port 12
[    8.884063] rtl83xx_mdio_probe port 12 has phandle
[    8.889428] rtl83xx_mdio_probe port -1 has SDS
[    8.894503] rtl83xx_mdio_probe found port 13
[    8.899289] rtl83xx_mdio_probe port 13 has phandle
[    8.904739] rtl83xx_mdio_probe port -1 has SDS
[    8.909725] rtl83xx_mdio_probe found port 14
[    8.914600] rtl83xx_mdio_probe port 14 has phandle
[    8.919964] rtl83xx_mdio_probe port -1 has SDS
[    8.925035] rtl83xx_mdio_probe found port 15
[    8.929825] rtl83xx_mdio_probe port 15 has phandle
[    8.935275] rtl83xx_mdio_probe port -1 has SDS
[    8.940261] rtl83xx_mdio_probe found port 28
[    8.945140] rtl83xx_mdio_probe found port 24
[    8.949934] rtl83xx-switch switch@1b000000: Port node 24 misses phy-handle
[    8.957713] rtl83xx_mdio_probe found port 26
[    8.962508] rtl83xx-switch switch@1b000000: Port node 26 misses phy-handle
[    9.006988] In rtl83xx_vlan_setup
[    9.010730] UNKNOWN_MC_PMASK: 000000001fffffff
[    9.015819] VLAN profile 0: L2 learning: 1, UNKN L2MC FLD PMSK 511, 		UNKN IPMC FLD PMSK 511, UNKN IPv6MC FLD PMSK: 511
[   10.033774] rtl83xx_enable_phy_polling:             ff00
[   11.074589] rtl83xx-switch switch@1b000000 lan1 (uninitialized): PHY [mdio-bus:08] driver [Realtek RTL8218B (internal)] (irq=POLL)
[   11.090359] rtl83xx-switch switch@1b000000 lan2 (uninitialized): PHY [mdio-bus:09] driver [Realtek RTL8218B (internal)] (irq=POLL)
[   11.106138] rtl83xx-switch switch@1b000000 lan3 (uninitialized): PHY [mdio-bus:0a] driver [Realtek RTL8218B (internal)] (irq=POLL)
[   11.121932] rtl83xx-switch switch@1b000000 lan4 (uninitialized): PHY [mdio-bus:0b] driver [Realtek RTL8218B (internal)] (irq=POLL)
[   11.137679] rtl83xx-switch switch@1b000000 lan5 (uninitialized): PHY [mdio-bus:0c] driver [Realtek RTL8218B (internal)] (irq=POLL)
[   11.153454] rtl83xx-switch switch@1b000000 lan6 (uninitialized): PHY [mdio-bus:0d] driver [Realtek RTL8218B (internal)] (irq=POLL)
[   11.169229] rtl83xx-switch switch@1b000000 lan7 (uninitialized): PHY [mdio-bus:0e] driver [Realtek RTL8218B (internal)] (irq=POLL)
[   11.185011] rtl83xx-switch switch@1b000000 lan8 (uninitialized): PHY [mdio-bus:0f] driver [Realtek RTL8218B (internal)] (irq=POLL)
[   11.204741] rtl83xx-switch switch@1b000000: configuring for fixed/internal link mode
[   11.214201] DSA: tree 0 setup
[   11.217622] LINK state irq: 20
[   11.221103] In rtl83xx_setup_qos
[   11.224834] Setting up RTL838X QoS
[   11.228652] RTL838X_PRI_SEL_TBL_CTRL(i): 00033112
[   11.233991] Current Intprio2queue setting: 00000000
[   11.239451] QM_PKT2CPU_INTPRI_MAP: 00fac688
[   11.244416] rtl838x_dbgfs_init called
[   11.389348] Freeing unused kernel memory: 9868K
[   11.394569] This architecture does not have kernel memory protection.
[   11.401797] Run /init as init process
[   11.405983]   with arguments:
[   11.409314]     /init
[   11.411845]   with environment:
[   11.415446]     HOME=/
[   11.418095]     TERM=linux
[   11.421397] rtl83xx-switch switch@1b000000: Link is Up - 1Gbps/Full - flow control off
[   11.431305] rtl83xx_fib_event_work_do: FIB4 default rule failed
[   13.001413] init: Console is alive
[   13.006380] init: - watchdog -
[   13.047821] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   13.070838] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   13.090045] init: - preinit -
[   13.564913] random: jshn: uninitialized urandom read (4 bytes read)
[   13.722174] random: jshn: uninitialized urandom read (4 bytes read)
[   14.712309] random: jshn: uninitialized urandom read (4 bytes read)
[   14.809548] random: jshn: uninitialized urandom read (4 bytes read)
[   15.037992] random: jshn: uninitialized urandom read (4 bytes read)
[   15.199678] RESETTING 8380, CPU_PORT 28
[   15.404821] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode
[   15.413894] In rtl838x_mac_config, mode 1
[   15.421508] rtl83xx-switch switch@1b000000 lan1: configuring for phy/internal link mode
[   15.430955] 8021q: adding VLAN 0 to HW filter on device lan1
[   15.437969] In rtl838x_mac_config, mode 1
[   15.442516] rtl838x-eth 1b00a300.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   15.479531] RTL8380 Link change: status: 1, ports 100
[   15.503992] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   15.511123] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   15.518800] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   15.550650] rtl83xx_fib_event_work_do: FIB4 failed
[   15.563890] rtl83xx_fib_event_work_do: FIB4 failed
[   15.569289] rtl83xx_fib_event_work_do: FIB4 failed
[   15.584610] 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
[   16.833848] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   18.494977] RTL8380 Link change: status: 1, ports 100
[   18.597013] rtl83xx-switch switch@1b000000 lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   18.606748] IPv6: ADDRCONF(NETDEV_CHANGE): lan1: link becomes ready
[   19.864658] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[   19.870440] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[   19.893872] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[   19.899657] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[   19.918308] rtl83xx-switch switch@1b000000 lan1: Link is Down
[   19.924869] RTL8380 Link change: status: 1, ports 100
[   19.953875] procd: - early -
[   19.957781] procd: - watchdog -
[   22.666267] procd: - watchdog -
[   22.671015] procd: - ubus -
[   22.694790] random: ubusd: uninitialized urandom read (4 bytes read)
[   22.726037] random: ubusd: uninitialized urandom read (4 bytes read)
[   22.734590] random: ubusd: uninitialized urandom read (4 bytes read)
[   22.749113] procd: - init -
Please press Enter to activate this console.
[   23.935526] random: jshn: uninitialized urandom read (4 bytes read)
[   23.997784] random: ubusd: uninitialized urandom read (4 bytes read)
[   24.107440] kmodloader: loading kernel modules from /etc/modules.d/*
[   24.138086] GACT probability on
[   24.155271] Mirror/redirect action on
[   24.207447] u32 classifier
[   24.210499]     input device check on
[   24.214733]     Actions configured
[   24.565218] kmodloader: done loading kernel modules from /etc/modules.d/*
[   24.673212] urngd: v1.0.2 started.
[   24.948067] random: crng init done
[   24.951893] random: 16 urandom warning(s) missed due to ratelimiting
[   65.078731] in rtl838x_eth_stop
[   65.082398] rtl838x-eth 1b00a300.ethernet eth0: Link is Down
[   65.607215] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   65.614842] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   65.622317] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   65.629964] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   66.717734] Using MAC 0000d8ece5a31e16
[   66.722273] RESETTING 8380, CPU_PORT 28
[   66.927414] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode
[   66.936451] In rtl838x_mac_config, mode 1
[   66.941454] In rtl838x_mac_config, mode 1
[   66.946117] rtl838x-eth 1b00a300.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   66.973997] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   66.981142] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   66.988868] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   67.231135] rtl83xx-switch switch@1b000000 lan1: configuring for phy/internal link mode
[   67.251597] 8021q: adding VLAN 0 to HW filter on device lan1
[   67.329465] switch: port 1(lan1) entered blocking state
[   67.335467] switch: port 1(lan1) entered disabled state
[   67.342296] device lan1 entered promiscuous mode
[   67.347647] device eth0 entered promiscuous mode
[   67.460230] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   67.506440] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   67.647500] rtl83xx-switch switch@1b000000 lan2: configuring for phy/internal link mode
[   67.657381] 8021q: adding VLAN 0 to HW filter on device lan2
[   67.785775] switch: port 2(lan2) entered blocking state
[   67.791647] switch: port 2(lan2) entered disabled state
[   67.798402] device lan2 entered promiscuous mode
[   67.984486] rtl83xx-switch switch@1b000000 lan3: configuring for phy/internal link mode
[   67.994110] 8021q: adding VLAN 0 to HW filter on device lan3
[   68.054882] switch: port 3(lan3) entered blocking state
[   68.060759] switch: port 3(lan3) entered disabled state
[   68.104163] device lan3 entered promiscuous mode
[   68.189303] rtl83xx-switch switch@1b000000 lan4: configuring for phy/internal link mode
[   68.198988] 8021q: adding VLAN 0 to HW filter on device lan4
[   68.280556] switch: port 4(lan4) entered blocking state
[   68.286555] switch: port 4(lan4) entered disabled state
[   68.327032] device lan4 entered promiscuous mode
[   68.354043] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   68.361595] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   68.444469] rtl83xx-switch switch@1b000000 lan5: configuring for phy/internal link mode
[   68.454111] 8021q: adding VLAN 0 to HW filter on device lan5
[   68.524893] switch: port 5(lan5) entered blocking state
[   68.530762] switch: port 5(lan5) entered disabled state
[   68.564080] device lan5 entered promiscuous mode
[   68.674711] rtl83xx-switch switch@1b000000 lan6: configuring for phy/internal link mode
[   68.684272] 8021q: adding VLAN 0 to HW filter on device lan6
[   68.744850] switch: port 6(lan6) entered blocking state
[   68.750719] switch: port 6(lan6) entered disabled state
[   68.795842] device lan6 entered promiscuous mode
[   68.886202] rtl83xx-switch switch@1b000000 lan7: configuring for phy/internal link mode
[   68.895785] 8021q: adding VLAN 0 to HW filter on device lan7
[   68.956643] switch: port 7(lan7) entered blocking state
[   68.962516] switch: port 7(lan7) entered disabled state
[   68.969254] device lan7 entered promiscuous mode
[   69.071831] rtl83xx-switch switch@1b000000 lan8: configuring for phy/internal link mode
[   69.081944] 8021q: adding VLAN 0 to HW filter on device lan8
[   69.164854] switch: port 8(lan8) entered blocking state
[   69.170725] switch: port 8(lan8) entered disabled state
[   69.177471] device lan8 entered promiscuous mode
[   69.288149] rtl83xx-switch switch@1b000000 lan9: configuring for inband/1000base-x link mode
[   69.297986] 8021q: adding VLAN 0 to HW filter on device lan9
[   69.344944] switch: port 9(lan9) entered blocking state
[   69.350809] switch: port 9(lan9) entered disabled state
[   69.357537] device lan9 entered promiscuous mode
[   69.452049] rtl83xx-switch switch@1b000000 lan10: configuring for inband/1000base-x link mode
[   69.462005] 8021q: adding VLAN 0 to HW filter on device lan10
[   69.525043] switch: port 10(lan10) entered blocking state
[   69.531104] switch: port 10(lan10) entered disabled state
[   69.538052] device lan10 entered promiscuous mode
[   69.617593] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   70.222982] RTL8380 Link change: status: 1, ports 100
[   70.517216] rtl83xx-switch switch@1b000000 lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   70.553984] switch: port 1(lan1) entered blocking state
[   70.559855] switch: port 1(lan1) entered forwarding state
[   70.594001] IPv6: ADDRCONF(NETDEV_CHANGE): switch: link becomes ready
[   70.626961] IPv6: ADDRCONF(NETDEV_CHANGE): switch.1: link becomes ready
[   71.793981] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[   71.801533] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported


BusyBox v1.35.0 (2022-10-14 22:44:41 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 22.03.2, r19803-9a599fee93
 -----------------------------------------------------
=== 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@(none):/# 
cpuinfo, meminfo, mtd etc.
oot@(none):/# cat /proc/cmdline
console=ttyS0,115200

root@OpenWrt:/# cat /proc/cpuinfo
system type		: RTL8380
machine			: ZyXEL GS1900-10HP Switch
processor		: 0
cpu model		: MIPS 4KEc V7.0
BogoMIPS		: 498.89
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 32
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 2, address/irw mask: [0x0fff, 0x0fff]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16
Options implemented	: tlb 4kex 4k_cache 32fpr prefetch mcheck ejtag llsc dc_aliases perf_cntr_intr_bit
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available

root@OpenWrt:/# cat /proc/meminfo
MemTotal:         122320 kB
MemFree:           91376 kB
MemAvailable:      67984 kB
Buffers:               0 kB
Cached:            11212 kB
SwapCached:            0 kB
Active:             4904 kB
Inactive:           7396 kB
Active(anon):       4904 kB
Inactive(anon):     7396 kB
Active(file):          0 kB
Inactive(file):        0 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          1100 kB
Mapped:             2944 kB
Shmem:             11212 kB
KReclaimable:       2368 kB
Slab:               8392 kB
SReclaimable:       2368 kB
SUnreclaim:         6024 kB
KernelStack:         440 kB
PageTables:          176 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       61160 kB
Committed_AS:      15068 kB
VmallocTotal:    1048372 kB
VmallocUsed:         636 kB
VmallocChunk:          0 kB
Percpu:               96 kB

root@OpenWrt:/# cat /proc/devices
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
 10 misc
 89 i2c
 90 mtd
128 ptm
136 pts
252 bsg
253 watchdog
254 gpiochip

Block devices:
  1 ramdisk
 31 mtdblock
259 blkext

root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "u-boot-env2"
mtd3: 00100000 00010000 "jffs"
mtd4: 00100000 00010000 "jffs2"
mtd5: 006d0000 00010000 "firmware"
mtd6: 006d0000 00010000 "runtime2"
root@OpenWrt:/# cat /sys/class/mtd/mtd
mtd0/    mtd1/    mtd2/    mtd3/    mtd4/    mtd5/    mtd6/
mtd0ro/  mtd1ro/  mtd2ro/  mtd3ro/  mtd4ro/  mtd5ro/  mtd6ro/

root@OpenWrt:/# cat /sys/class/mtd/mtd*/offset
0
262144
327680
393216
1441792
2490368
9633792

root@OpenWrt:/# ifconfig
eth0      Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:16  
          inet6 addr: fe80::daec:e5ff:fea3:1e16/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1504  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1932 (1.8 KiB)  TX bytes:3166 (3.0 KiB)
          Interrupt:24 Memory:4000000-1b00a3ff 

lan1      Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:16  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1680 (1.6 KiB)  TX bytes:1178 (1.1 KiB)

lan10     Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:1F  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan2      Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:17  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan3      Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:18  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan4      Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:19  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan5      Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:1A  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan6      Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:1B  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan7      Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:1C  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan8      Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:1D  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lan9      Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:1E  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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

switch    Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:16  
          inet6 addr: fe80::daec:e5ff:fea3:1e16/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1634 (1.5 KiB)  TX bytes:1728 (1.6 KiB)

switch.1  Link encap:Ethernet  HWaddr D8:EC:E5:A3:1E:16  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::daec:e5ff:fea3:1e16/64 Scope:Link
          inet6 addr: fd49:eaac:43ac::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1634 (1.5 KiB)  TX bytes:912 (912.0 B)

root@OpenWrt:/# ls /sys/class/net/
eth0      lan10     lan3      lan5      lan7      lan9      switch
lan1      lan2      lan4      lan6      lan8      lo        switch.1

root@OpenWrt:/# brctl show
bridge name	bridge id		STP enabled	interfaces
switch		7fff.d8ece5a31e16	no		lan8
							lan6
							lan4
							lan2
							lan9
							lan7
							lan10
							lan5
							lan3
							lan1

root@OpenWrt:/# cat /sys/kernel/debug/gpio
gpiochip1: GPIOs 451-487, parent: platform/rtl8231-gpio, rtl8231, can sleep:
 gpio-454 (                    |reset               ) in  hi ACTIVE LOW
 gpio-464 (                    |poe_enable          ) out hi 
 gpio-473 (                    |tx-fault            ) in  hi 
 gpio-474 (                    |tx-disable          ) in  hi 
 gpio-475 (                    |sda                 ) out hi 
 gpio-476 (                    |scl                 ) out hi 
 gpio-477 (                    |mod-def0            ) in  hi ACTIVE LOW
 gpio-478 (                    |los                 ) in  hi 
 gpio-479 (                    |tx-fault            ) in  hi 
 gpio-480 (                    |tx-disable          ) in  hi 
 gpio-481 (                    |sda                 ) out hi 
 gpio-482 (                    |scl                 ) out hi 
 gpio-483 (                    |mod-def0            ) in  hi ACTIVE LOW
 gpio-484 (                    |los                 ) in  hi 

gpiochip0: GPIOs 488-511, parent: platform/18003500.gpio-controller, 18003500.gpio-controller:
 gpio-488 (                    |green:sys           ) out hi 

Has anybody already flashed the Rev. A1 firmware successfully?

Here is an image of the mainboard.

And the tech-support info

The silkscreen on the picture is unreadable though, no way to tell which chips are sitting on that board. An extra light source might help.

Are you still seeing Broadcom PSEs?

Biggest problem with the pictures of the switches is the size and format of the PCB. A camera picture can either show the whole board with unreadable text (especially on the IC) or about a quarter of the board with actual readable text.

Here is a pictures with slightly better quality.

https://img.adminforge.de/QYHkXDOk/NiQULEu4.jpg

The Broadcom PSE might be hidden under the small heat sink on the left side.

Looks very similar to the supported GS1900-10HP. You can compare with images I uploaded at the wikidevi link. Looks like they saved build costs by going with a cheaper heat sink and input power (i.e. barrel plug vs DIN). Also see another image of a supported device at https://svanheule.net/switches/_detail/wiki/dsc01040_s.jpg?id=gs1900-10hp.

1 Like

The PoE MCU is replaced by a Nuvoton NUC029ZAN. If it's similar to the GS1900-24EP, they might have used an RTL8238 as PSE controller.

1 Like

That could very well be an indicator as all the documented Broadcom PSE based ZyXEL devices are using a STMicro STM32F100C8 MCU.

Yepp, I had a look at this list before posting my suspicion: https://svanheule.net/switches/software/poe_management

I can only see one RTL8231 on the new model. Guess that's related to the reduced number of LEDs? According to specs, the new one only has green LEDs, while most of the LEDS on the older one were green/amber.

[ 13.380000] init: - watchdog -
[ 13.430000] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 13.450000] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 13.470000] init: - preinit -
[ 13.960000] random: jshn: uninitialized urandom read (4 bytes read)
[ 14.120000] random: jshn: uninitialized urandom read (4 bytes read)
mtd_get_mac_ascii: partition u-boot-env2 not found!
mtd_get_mac_ascii: partition u-boot-env2 not found!
[ 15.220000] random: jshn: uninitialized urandom read (4 bytes read)
[ 15.320000] random: jshn: uninitialized urandom read (4 bytes read)
[ 15.480000] random: jshn: uninitialized urandom read (4 bytes read)
sh: out of range
sh: out of range
sh: out of range
sh: out of range
sh: out of range
sh: out of range
sh: out of range
sh: out of range
sh: out of range
sh: out of range
[ 16.220000] RESETTING 8380, CPU_PORT 28
[ 16.220000] rtl838x-eth 1b00a300.ethernet eth0: configuring for fixed/internal link mode
[ 16.220000] In rtl838x_mac_config, mode 1
[ 16.440000] rtl83xx-switch switch@1b000000 lan1: configuring for phy/internal link mode
[ 16.450000] In rtl838x_mac_config, mode 1
[ 16.450000] rtl838x-eth 1b00a300.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 16.460000] 8021q: adding VLAN 0 to HW filter on device lan1
[ 16.470000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 16.470000] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[ 16.480000] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[ 16.530000] rtl83xx_fib_event_work_do: FIB4 failed
[ 16.550000] rtl83xx_fib_event_work_do: FIB4 failed
[ 16.550000] rtl83xx_fib_event_work_do: FIB4 failed
[ 16.570000] rtl83xx_fib_event_work_do: FIB4 failed
[ 16.570000] random: procd: uninitialized urandom read (4 bytes read)
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
[ 17.830000] rtl83xx_fib_event: FIB_RULE ADD/DELL for IPv6 not supported
[ 18.900000] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[ 18.920000] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[ 18.920000] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[ 18.940000] rtl83xx_fib4_del: no such gateway: 0.0.0.0
[ 18.980000] procd: - early -
[ 18.980000] procd: - watchdog -
[ 21.620000] procd: - watchdog -

Do you have these sh: out of range lines in your boot logs?

root@OpenWrt:/# [  480.840000] sfp sfp-p9: module IC INTRACOM      523882           rev E    sn I523882190796    dc 191101
[  480.850000] sfp sfp-p9: Unknown/unsupported extended compliance code: 0x01
[  481.080000] rtl83xx-switch switch@1b000000 lan9: PHY [i2c:sfp-p9:16] driver [Marvell 88E1111] (irq=POLL)
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# ethtool -m lan9
        Identifier                                : 0x03 (SFP)
        Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
        Connector                                 : 0x00 (unknown or unspecified)
        Transceiver codes                         : 0x00 0x00 0x00 0x08 0x00 0x00 0x00 0x00 0x01
        Transceiver type                          : Ethernet: 1000BASE-T
        Transceiver type                          : Extended: 100G AOC or 25GAUI C2M AOC with worst BER of 5x10^(-5)
        Encoding                                  : 0x01 (8B/10B)
        BR, Nominal                               : 1300MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 0km
        Length (SMF)                              : 0m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 100m
        Length (OM3)                              : 0m
        Laser wavelength                          : 0nm
        Vendor name                               : IC INTRACOM
        Vendor OUI                                : 00:00:00
        Vendor PN                                 : 523882
        Vendor rev                                : E
        Option values                             : 0x00 0x1a
        Option                                    : RX_LOS implemented
        Option                                    : TX_FAULT implemented
        Option                                    : TX_DISABLE implemented
        BR margin, max                            : 0%
        BR margin, min                            : 0%
        Vendor SN                                 : I523882190796
        Date code                                 : 191101
root@OpenWrt:/#

If I mount a RJ45 module in the SFP I always get this: sfp sfp-p9: Unknown/unsupported extended compliance code: 0x01.

root@OpenWrt:/# [  935.190000] sfp sfp-p9: module removed
[  939.050000] sfp sfp-p10: module removed
[  999.600000] sfp sfp-p9: module TP-Link          TL-SM311LM(UN)   rev 3.0  sn 40204203463460   dc 220424
[  999.610000] rtl83xx-switch switch@1b000000 lan9: switched to inband/1000base-x link mode
root@OpenWrt:/#
root@OpenWrt:/# ethtool -m lan9
        Identifier                                : 0x03 (SFP)
        Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
        Connector                                 : 0x07 (LC)
        Transceiver codes                         : 0x00 0x10 0x00 0x01 0x40 0x40 0x00 0x01 0x00
        Transceiver type                          : SONET: SONET reach specifier bit 1
        Transceiver type                          : Ethernet: 1000BASE-SX
        Transceiver type                          : FC: short distance (S)
        Transceiver type                          : FC: Shortwave laser w/o OFC (SN)
        Transceiver type                          : FC: 100 MBytes/sec
        Encoding                                  : 0x01 (8B/10B)
        BR, Nominal                               : 1300MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 0km
        Length (SMF)                              : 0m
        Length (50um)                             : 550m
        Length (62.5um)                           : 550m
        Length (Copper)                           : 0m
        Length (OM3)                              : 0m
        Laser wavelength                          : 850nm
        Vendor name                               : TP-Link
        Vendor OUI                                : 00:00:00
        Vendor PN                                 : TL-SM311LM(UN)
        Vendor rev                                : 3.0
        Option values                             : 0x00 0x00
        BR margin, max                            : 0%
        BR margin, min                            : 0%
        Vendor SN                                 : 40204203463460
        Date code                                 : 220424
root@OpenWrt:/#

But if I mount a optical module the 0x01 message doesn´t come.

Do anyone know what that message means?

Yes.

ref:

2 Likes

That message seems to be printed by sfp-bus.c, because switch-case doesn't have a case for SFF8024_ECC_100G_25GAUI_C2M_AOC (0x01) and fell to default:.

Your RJ45 module should have value 0x1 at 0x24 ("Extended Specification Compliance Codes" field) in eeprom.
details: SFF-8472 (Table 5-3) and SFF-8024 (Table 4-4)

@plappermaul just rebased ontop of your patches, but having some troubles that I'm still trying to figure out. The timer just halts with not much useful information:

[    0.000000] rtl83xx-clk: initialized, SW 2450 MHz, CPU 800 MHz, MEM 600 MHz (16 Bit DDR3), LXB 175 MHz
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns

As it was working before, I must have messed up with my config somehow ...