Support for RTL838x based managed switches

Can't see a buildbot error, it's as though the package is no longer being built. Missing from mips_24kc snapshots and 24.10 but still present for mips_4kec

Created an issue to track, will try and locate what changed in the build configs. Can't see anything, no fail log, just an absence of the package.

I did a local build, the package is created normally. What is buildbot doing differently?

If anyone with XGS1210-12 v1 and v2 can do some proper PCB photos from both sides, it might solve the "OEM 2.x non working on unmanaged" mystery. I would be surprised if those are not just strap resistors somewhere on the board.

I bet this makes OEM firmware think 1010 is 1250 v1.

Got it to build, 1 and 2.5 gbit works to test devices, production has to wait until I can take the wlan down for a moment.

Thanks a ton, here's to hoping it will make it into main soon :slight_smile:

Starting to think I need some airflow to cool my onti, after all. With 1 DAC and three copper SFPs (and none of them even 10gbit, right now) it climbs into clearly borderline territory (almost 70C in 26C ambient).

Can anyone recommend a quiet 120 or 140mm fan, preferably USB powered (the USB port on my R4 next to the switch goes unused :slight_smile: )? I'd either put it atop the switch horizontally or standing vertically next to it. Or did someone come up with a better idea, still?

You can get USB-powered fans, but well-made PC case fans are quieter for the same air movement. But then PC-case fans need an adaptor or two (USB to DC 5.5mm, DC 5.5mm to 3-pin fan) which is messy. No "good" solution overall. I went for a string of adapters, running the fan at 5V from USB too, but you could also put a splitter before the switch power and use 12V from that for a fan.
I tried an Arctic 80mm fan with a temperature probe too (Arctic F8 TC), thinking I was being clever. But the switch casing stayed above 55c which kept the fan going full-speed and loud. In the end I've got a 140mm fan running vertically across the front from one side to catch the SFPs which seems to work well without obstructing access.

1 Like

Fair point on the quaIity. I guess I should see if I have a 120mm fan somewhere (stopped building PCs a decade ago) and possibly just crimp USB 5v to it. There's a box of wago cable clamps, somewhere... Probably wouldn't hurt to jack up the switch a bit so that airflow can get below it, too.

1 Like

Yes, I also think so. I tried booting the XGS1250-12 vendor firmware v2 on my XGS1010-12, and it does not show the rtcore.ko error. (But there is a kernel panic later on. I guess the hardware is just too different.)

I found a bit cryptic GPIO drawings on https://svanheule.net/switches/zyxel_xgs1210_series#board_details

So I opened my 1010 and under a microscope, cross referencing RTL8301 pinout, I found those three resistors to be the GPIOs we want. They are on the back side of the board. Their setting is indeed 0 0 0 (all three set to GND)

So i moved GPIO 18 resistor (all are 1K) from ground to 3v3:

I already had 1210 bootloader / flash layout / env vars installed on my unit. I found it on this comment on Reddit.

With that said, 1.0 firmware was rejecting to update from GUI. So I went UART upgrade method, and...

Everything seems to work, 1G, 2.5G, SPF+ ports :slight_smile:

So thank you for this tip!

4 Likes

I recently bought two GS1900-24HPv2 switches that should be identical, unless there's some undiscovered variant. I've installed OpenWrt 24.10.0 on both of them. One of them has working POE control, and the other one doesn't. I can't figure out what the difference is.

On the working switch, I get normal output from ubus call poe info. It seems to respond normally to ubus call poe manage, although I haven't tested it with anything attached yet.

On the other switch, ubus call poe info gives me:

{
        "firmware": "v0.0",
        "budget": 170.000000,
        "consumption": 0.000000,
        "ports": {
                "lan1": {
                        "priority": 2,
                        "status": "unknown"
                }
        }
}

I've tried adding the other ports to the config, but they all show as "unknown". I do have devices attached to this switch, and all of the ports that I've tested are providing power just fine. In fact, they were providing power when I captured the output above, so "consumption": 0.000000 is also wrong.

A factory reset (sysupgrade -n) didn't help. I can't find anything relevant to POE in the logs on either device. When I run realtek-poe -d, the only output I ever get is:

realtek-poe: TX -> 20 01 ff ff ff ff ff ff ff ff ff 18

What else can I do to troubleshoot?

LLDP is still broadcast on all ports with the Onti and Xikestor RTL93xx devices - curious to see if others with Zyxel RTL93xx see the same behaviour?
LLDP frames aren't trapped to the CPU port, they are sent out all other ports and CPU port sees no LLDP.

Hi, do you know how to get PHY ID from a running openwrt system? Multigig ports on XGS1250-12 v2 are only recognized by generic driver:

[    2.476928] rtl83xx-switch switch@1b000000 lan9 (uninitialized): PHY [mdio-bus:18] driver [Generic Clause 45 PHY] (irq=POLL)
[    2.495412] rtl83xx-switch switch@1b000000 lan10 (uninitialized): PHY [mdio-bus:19] driver [Generic Clause 45 PHY] (irq=POLL)
[    2.513782] rtl83xx-switch switch@1b000000 lan11 (uninitialized): PHY [mdio-bus:1a] driver [Generic Clause 45 PHY] (irq=POLL)

and I would like to get more information about these and see if RTL826X code that's already in openwrt could be applied to them.

Were you testing my commit with the debugging statements?

I tried but I couldn't get past compiler errors.

1 Like

do we have some confirmation of working sfp+ gpon onu modules ?

So I got a USB powered 5V 140mm Noctua blowing across the switch from the side:

So that has a massive effect, unfortunately, Noctua's definition of quiet does not really align with mine. Next up, trying a 12V fan at 5V, less airflow with less noise would still be acceptable...

It even cools my R4 on the other side of the shelf:

1 Like

Yes. DACs or fiber are definitely the way to go for 10+ Gbps if you don't need PoE. :slight_smile:

2 Likes

what are You talking about ? i've asked about sfp+ gpon onu modules - You know what those are ? if not then ... https://www.youtube.com/watch?v=G3va7X4PZFo ring a bell ?

He was responding to another post as is clearly shown in the reference.

I do wonder though why one would want an goon module in a switch...

3 Likes

no , You can clearly see that it was responce to my nicname. Have You heard about vlans ? huh ? the point is for easy conversion from ftth fiber to internal network with own gear and reduction of devices in network :slight_smile: or maybe if the fiber termination from isp isn't in place when main router is ? I can tell You more about use cases...

Yes, but to your post from a week ago saying your are skipping rj45...

2 Likes