Realtek RTL8125 2.5GbE

Does anyone know anything about the realtek 8125 drivers?

I'm on Linux OpenWrt 5.15.114,OpenWrt 23.05.0-rc1 r23069-e2701e0f33

There are drivers here: https://github.com/csrutil/OpenWrt-NIC-Drivers but I don't know how to build or install them. Right now the interfaces don't come up at all.

I see this in lspci:

06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05) Subsystem: Realtek Semiconductor Co., Ltd. Device 0123 Kernel driver in use: r8169

07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05) Subsystem: Realtek Semiconductor Co., Ltd. Device 0123 Kernel driver in use: r8169

09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05) Subsystem: Realtek Semiconductor Co., Ltd. Device 0123 Kernel driver in use: r8169

0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05) Subsystem: Realtek Semiconductor Co., Ltd. Device 0123 Kernel driver in use: r8169

But this in ethtool: ethtool eth3

netlink error: failed to retrieve link settings
netlink error:No such device
netlink error: failed to retrieve link settings
netlink error: No such device
Settings for eth3:
Supports Wake-on: pumbg
Wake-on: d
Link detected: no

GitHub - csrutil/OpenWrt-NIC-Drivers: realtek 8125b 2.5G & intel ig...
realtek 8125b 2.5G & intel igb ethernet drivers for stock OpenWrt firmwares - GitHub - csrutil/OpenWrt-NIC-Drivers: realtek 8125b 2.5G & intel igb ethernet drivers for stock OpenWrt firmwaresđź“·

I dont understand how to build or install this driver or how to 'replumb' the eth3-6 interfaces to come up.

According to this, it should be supported by the r8169 kernel module. Did you try to install kmod-r8169?

Absolutely, and it limits selectors at 1Gb, not 2.5

I have no idea why some Realtek 8125B NICs can't use r8169 module, on my NanoPi R6S with a normal Debian on it, I have to blacklist r8169 and install r8125 to make the 2.5G ports working.

How do I blacklist a kmod driver for one or more interfaces while using it for other interfaces?

@gmaples mate did you ever discover a solution to this? I've just upgraded from 22.03 to 23.05 and now all the ports on my R8125 pcie 4 port card are running at 1gbe. I've got the R8125 drivers installed but I can't fine the firmware anywhere.

Would love some help from someone as I've hit a wall.

You may want to check @anaelorlinski 's OpenWrt 23.05.0 builds for the NanoPi R5S as reference. It does include the RTL8125 driver: