Support for RTL838x based managed switches

RTL8372 is 8051 core? So i'd put it as never going to run openwrt =P

Contemplating to move my LAN to vlans to isolate my growing IoT zoo (IP based isolation looks a bit rough because I need two dumb APs to properly cover the entire floor and I presume the robovacuum needs roaming between APs). I want to avoid closed source networking gear so a decent OpenWRT switch would be very helpful as I am a bit short on switch ports on the router, I currently use a 4 port 2 SFP+ dumb switch together with it. Looking at it, the XGS1210-12 looks like it would do the job even if the number of ports are overkill. However, I am a bit confused on the state of support for the XGS1210-12:

  • The wiki says SFP+ remains unsupported
  • In this thread I read SFP now works
  • In the build directory, I find only an image for the 1250 (not too much love for that one: more expensive and actively cooled).

So what's the actual state? Can a XGS1210 be hooked up to my BPI R4 over a SFP+ DAC? Also, is there enough flash to at least have basic luci on it?

I assume support for the cheap Chinese 8 port 10G ones are is a bit further out, right (plus then I need power hungry transceivers)?

1 Like

I just realized that the current 23.05.5 image for i.e. D-Link DGS1210 still contains fw4. Is there a specific reason for that, or just a "leftover"?
I'm under the impression a firewall just makes no sense on these devices?

According to the release note for the commit:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=e63d289bbd2f394538ee08fb51ba9f2326b57275

Thanks for point to it!

I find it however strange that ip-bridge and ip-full is dropped, but not luci and or firewall4 :confused:

Maybe I should send a PR. I find bridge and a working ip far more importend on Switch, then to have a web-gui....

LuCI is selected by default in the release builds, which pulls in a firewall package. So that's why I retained fw4, as most new users will still like the option of having a GUI.

If you do open a new PR, maybe you could consider creating a new DEFAULT_PACKAGES.switch selection in include/target.mk for a wider discussion?

Switches on other targets use router as DEVICE_TYPE, which contains a lot more packages most wouldn't use on an ethernet switch. That said, none of the current targets selects -full packages.

2 Likes

Thanks for the explanation and the advice! It's a very good pointer.
I will have a look at it soon and try to write a patch.

I created the following file:

 /etc/hotplug.d/iface/000-lan20fibre:

[ ifup = "$ACTION" ] && [ "$DEVICE" = lan ] {
        ethtool -s lan20 port fibre
}

It's working fine, I am not sure if this is the correct way to do it. I just wish it would be automatic.

Not sure what the status is, but you might also want to look at the XGS1010-12 which is available for a bit cheaper but is very similar hardware. Some of the Chinese RTL9xxx switches don't need transceivers - I've just added a few interesting looking XikeStor ones to https://svanheule.net/switches/models - no OpenWrt support for those yet, but should be possible.

The 12 port 10G models with the console port on the front look promising. Always good to have easy access to the console whilst support is evolving.

I have an ALLNET ALL-SG8316M switch which boots up perfectly with some small additions to the ALL-SG8208M configuration.

If you guys are intrested, I can submit a patch with the changes.

1 Like

I'd even do so out of personal interest: It's just less hassle to upgrade and to install packages if the device is supported.

Looks like the 12 port ones have fans (complete no go given the LAN patch panel is in the middle of the apartmen). Also pretty much overkill for me.

XGS1210 seems to oscilate in price, currently its 30% higher than a few days ago :frowning: where it was only very marginally more than the 1010

There are apparently two versions of the Switch.
SFP- does not yet seem to work under OpenWrt.

Question in general:
Are there any experiences regarding power consumption between original firmware and OpenWrt.

I opened a PR for XikeStor SKS8300-8X:

5 Likes

Great news. But reading https://forums.servethehome.com/index.php?threads/weird-behavior-with-xikestor-10gb-sfp-switches.44041/ I have to wonder, how stable is it (especially with DAC) once reflashed?

I would definitely use a more serious PSU, most likely Ugreen GAN USB C adapter with 12V adapter... Doing the same with my R4 and a 2x10 4x2,5 Horaco both are rock solid that way.

I have no issues on my SKS8300-8X.

But,

  • I don't have DAC and not tested
  • I'm not using the power adapter included

However, I didn't hear any power issues from Japanese users.

2 Likes

Thanks, sounds like an option, I'll watch out for sales for sure...