Help: kmod-r8125 for 21.02.1 x86 but kernel 5.4.154

Hi there!

I have now a lot of custom things in my x86 “router” so I don’t want to upgrade it to a newer version and start everything from the zero (custom scripts, rclone mounts, docker, samba, printer share, etc, etc) but I’m using now a realtek usb3 ethernet adapter for WAN what is not so reliable so I ordered a “M.2 A+E 2.5G Ethernet Adapter 2.5G/1G/100M Multi-Gigabit M.2 Network Card 8125B COM” adapter (the router machine is a HP Prodesk 600 G2 DM so it is fit there).
But there is no kmod-r8125 package and what I’m found for example in the ImmortalWRT downloads there is with newer kernel only. So it is not going up onto my machine.

So my specs is:
root@OpenWrt:~# uname -a
Linux OpenWrt 5.4.154 #0 SMP Sun Oct 24 09:01:35 2021 x86_64 GNU/Linux
root@OpenWrt:~# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='21.02.1'
DISTRIB_REVISION='r16325-88151b8303'
DISTRIB_TARGET='x86/64'
DISTRIB_ARCH='x86_64'
DISTRIB_DESCRIPTION='OpenWrt 21.02.1 r16325-88151b8303'
DISTRIB_TAINTS=''

Can somebody help me to get that driver for that OpenWrt version?

Thank you and happy new year to all!

Thanks. But as I wrote I’m found it in custom builds (this is why I made that topic in the community builds area) like immortalwrt for older releases:

kmod-r8125_5.4.188+9.008.00-x86-1_x86_64.ipk 63.5 KB Thu Apr 21 20:33:51 2022
kmod-r8168_5.4.188+8.049.02-x86-_x86_64.ipk 147.8 KB Thu Apr 21 20:34:21 2022
kmod-r8169_5.4.188-1_x86_64.ipk 30.7 KB Thu Apr 21 20:51:33 2022

But they fore 5.4.188 kernel not for 5.4.154.

Maybe somebody can compile for me?

Then that "somebody" would need to intentionally travel backwards to 5.4.154 in their build system correcting all the kernel patches backward etc.
Much more likely that you end up doing it by yourself.

Note that you need the kmod module built with exactly same kernel config symbols are your currently running build. the other "somebody" will likely not have that.

If that 5.4.154 is a previous official release that you are using, with unmodified kernel options, you should be able to download the SDK for that release and build the module. Download the SDK from https://downloads.openwrt.org/releases/21.02.1/targets/x86/64/openwrt-sdk-21.02.1-x86-64_gcc-8.4.0_musl.Linux-x86_64.tar.xz
and then get the correct package Makefile and build it...

yes it is an official release. Thank you!
Then I wil try to compile myself :slight_smile:

And happy new year to everyone!

Thanks, I made it:
root@OpenWrt:~# opkg install /tmp/kmod-r8125_5.4.154+9.016.01-1_x86_64.ipk
Installing kmod-r8125 (5.4.154+9.016.01-1) to root...
Configuring kmod-r8125.
root@OpenWrt:~# opkg list-installed | grep r8125
kmod-r8125 - 5.4.154+9.016.01-1

Admin or Mod: you can close the topic, it is solved.

1 Like