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?
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?
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
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.
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).