Unable to install R8125 Realtek Ethernet Driver

Trying to install the Realtek Ethernet Driver but getting the below error.

./autorun.sh: line 30: make: command not found

This should give you a hint. Did you installed the base-devel group?

pamac install base-devel

It will also install compiler and programs need to build software. And don’t forget the kernel headers for your running kernel.

Getting the below error now

Check old driver and unload it.
Build the module and install
/home/vikrantshukla/Downloads/r8125-master/src/r8125_n.c: In function ‘rtl8125_proc_init’:
/home/vikrantshukla/Downloads/r8125-master/src/r8125_n.c:1445:47: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
1445 | &rtl8125_proc_fops, f->show)) {
| ^~~~~~~~~~~~~~~~~~
| |
| const struct file_operations *
In file included from /home/vikrantshukla/Downloads/r8125-master/src/r8125_n.c:87:
./include/linux/proc_fs.h:76:13: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
76 | const struct proc_ops *,
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/vikrantshukla/Downloads/r8125-master/src/r8125_n.c: At top level:
/home/vikrantshukla/Downloads/r8125-master/src/r8125_n.c:10214:31: error: initialization of ‘void (*)(struct net_device , unsigned int)’ from incompatible pointer type ‘void ()(struct net_device *)’ [-Werror=incompatible-pointer-types]
10214 | .ndo_tx_timeout = rtl8125_tx_timeout,
| ^~~~~~~~~~~~~~~~~~
/home/vikrantshukla/Downloads/r8125-master/src/r8125_n.c:10214:31: note: (near initialization for ‘rtl8125_netdev_ops.ndo_tx_timeout’)
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:267: /home/vikrantshukla/Downloads/r8125-master/src/r8125_n.o] Error 1
make[2]: *** [Makefile:1732: /home/vikrantshukla/Downloads/r8125-master/src] Error 2
make[1]: *** [Makefile:139: modules] Error 2
make: *** [Makefile:40: modules] Error 2

Well for me I had to install Old kernels to make this work. The one I installed is 4.4.232-1

Hi,
there are two versions of RTL8125 in hardware: RTL8125A and 8125B.
The A-version is supported by (newer) kernels if you have no entry with “blacklist 8169” in in /etc/modprobe.d/
The B-version is supported by kernel 5.9 if you have no entry with “blacklist 8169” in in /etc/modprobe.d/
as the driver r8168 contains the driver r8125.
-------------------------------------------------------------ALTERNATIVE----------------------------------------------------------------------
Load driver from:
https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
(entry: GBE Ethernet LINUX driver r8168 for kernel up to 5.6 ) --> (r8125-9.003.05.tar.bz

sudo tar xvf r8125-9.003.05.tar.bz2 -C /usr/src
sudo dkms add -m r8125 -v 9.003.05
sudo dkms build -m r8125 -v 9.003.05
sudo dkms install -m r8125 -v 9.003.05
sudo depmod -a
sudo update-initramfs -u

reboot.


Deinstallation:

sudo modprobe -rfv r8125
sudo dkms remove -m r8125 -v 9.003.05 --all
sudo rm -r /usr/src/r8125-9.003.05
------------------------------------------------------Alternativ-2------------------------------------------------------------------------------------------------

look for: realtek-r8125-dkms_9.003.05-1_amd64.deb (https://pkgs.org/)
and use “debtap” to convert it to manjaro. Errors on installation can be ignored because "ubuntu-things only)
Best: install it twice before you do “sudo update-grub” finally.


Or visit: GitHub - TallGuy74/r8125: Linux device driver for Realtek R8125 and Killer Networks Ethernet E3000 (unofficial mirror of https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software)

1 Like

Thanks @GaVenga

My pleasure.

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