OpenWRT on Raspberry Pi 5, will it identify my 2.5GbE daughter board?

This is my first post. I have a Raspberry Pi 5 with 16GB of memory. I purchased the following product for the second Ethernet port, but I haven't connected it yet. Before installing OpenWRT, how can I add this card to the installation file we created? What command should I write?

Thank you in advance.

https://firmware-selector.openwrt.org/?version=24.10.2&target=bcm27xx%2Fbcm2712&id=rpi-5 and click the tiny arrow.
which additional modules you need, we don't know.

Actually, what I want to ask is, when I install OpenWRT with the second Ethernet port plugged in, will OpenWRT automatically recognize the second port?

no, based on the screen shots in your link, it's a RTL8125?G (probably RTL8125BG), there are no kmod-rtl* packages in the default image.

based on Kmod-r8169 Driver bugs, it might be covered by kmod-r8169.

How can I add or how can I find the correct command of the second eth? What should I look?

add the kmod specified above to the list of packages in the firmware link I posted earlier, and click request build.

I have a dual 2.5gb hat card on my Raspberry Pi 5 and you must request a build with this module “” kmod-r8125 “”. Don’t use the snapshot build. I have this one. https://a.co/d/88KhPgo and this case. https://a.co/d/hjBcz6Q

It looks good. I still haven't found a case. However, I installed it with Raspberry OS and accessed the driver and hardware information.
Subsystem: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller
Kernel driver in use: r8169
Kernel modules: r8169
version: 6.12.34+rpt-rpi-2712
firmware-version: rtl8125b-2_0.0.2 07/13/20

the info you were given two weeks ago appears to be correct.

Yes, you are correct. Thanks again :slight_smile:

Snapshot builds for Raspberry Pi 5 now include the kmod-r8169 package by default since at least this commit:

1 Like

Forgive me if I am wrong but the r8169 driver does not allow the 2.5gb addon cards to run at 2.5g speeds and the 2.5gb hat cards like the one I posted and am currently running using kmod_r8125 that I added to the build was not recognized nor found under interfaces in my instance before I added the kmod_r8125 as a custom build.

Then your daughter board isn't using the same NIC chips as OPs ?

Do I need to change my driver?

That is incorrect, the right driver for all PCI/ PCIe based realtek ethernet cards is the r8169 kernel module, that includes rtl8125 based 2.5 GBit/s cards (and they do reach 2.5 GBit/s). There is no other mainline module covering these.

But at the same time, there isn't really 'a single' r8125 chipset, but quite a few slightly different revisions of this more general chipset, each needing their own driver support (in r8169). Given that 2.5 GBit/s are still the current generation (yes, I know about r8126/ 5 GBit/s and r8127/ 10 GBit/s) where new development happens, that does mean that we're still seeing new rtl8125 chipsets every few weeks, which usually require a kernel update to become supported.

Now in OpenWrt the situation is subtly different, as the kernel is rather fixed and isn't updated (to new upstream versions and not 'just' stable .point releases) as frequently as necessary to keep up with each new rtl8125 chipset generation, which can pose a problem if you have hardware that's newer than kernel v6.6 (or v6.12 respectively). To counter this, Realtek's vendor driver is supplied (e.g. as kmod-r8125) and updated independently of the kernel. Be aware that this is a vendor driver, which will never be accepted into the mainline kernel and which comes with 'a different set of bugs' (no one cares about) and does conflict with the genuine mainline r8169 kernel module. This is the easy cop out to provide newer hardware support rtl8125 despite using old kernels, not necessarily the right approach (and it has a rather high potential to bite you down the line).

Why would you ?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.