Package Details: r8125-dkms 9.015.00-1

Git Clone URL: https://aur.archlinux.org/r8125-dkms.git (read-only, click to copy)
Package Base: r8125-dkms
Description: Kernel module for RTL8125
Upstream URL: https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
Licenses: GPL2
Conflicts: r8125
Submitter: ptb
Maintainer: aravance
Last Packager: aravance
Votes: 16
Popularity: 0.049737
First Submitted: 2020-11-21 14:53 (UTC)
Last Updated: 2025-02-24 22:55 (UTC)

Dependencies (3)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

tfl5034 commented on 2024-05-25 22:32 (UTC)

According to realtek documentation, this module only supports up to Linux 6.8. https://www.realtek.com/Download/List?cate_id=584

Varo486 commented on 2024-05-22 08:47 (UTC) (edited on 2024-05-22 09:25 (UTC) by Varo486)

module does not build for the latest kernel. dkms make.log output:

DKMS make.log for r8125-9.013.02 for kernel 6.9.1-zen1-1-zen (x86_64)
mié 22 may 2024 10:39:48 CEST
make: se entra en el directorio '/usr/lib/modules/6.9.1-zen1-1-zen/build'
  CC [M]  /var/lib/dkms/r8125/9.013.02/build/r8125_n.o
  CC [M]  /var/lib/dkms/r8125/9.013.02/build/rtl_eeprom.o
  CC [M]  /var/lib/dkms/r8125/9.013.02/build/rtltool.o
/var/lib/dkms/r8125/9.013.02/build/r8125_n.c:7682:20: error: inicialización de ‘int (*)(struct net_device *, struct ethtool_keee *)’ desde un tipo de puntero ‘int (*)(struct net_device *, struct ethtool_eee *)’ incompatible [-Wincompatible-pointer-types]
 7682 |         .get_eee = rtl_ethtool_get_eee,
      |                    ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/r8125/9.013.02/build/r8125_n.c:7682:20: nota: (cerca de la inicialización de ‘rtl8125_ethtool_ops.get_eee’)
/var/lib/dkms/r8125/9.013.02/build/r8125_n.c:7683:20: error: inicialización de ‘int (*)(struct net_device *, struct ethtool_keee *)’ desde un tipo de puntero ‘int (*)(struct net_device *, struct ethtool_eee *)’ incompatible [-Wincompatible-pointer-types]
 7683 |         .set_eee = rtl_ethtool_set_eee,
      |                    ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/r8125/9.013.02/build/r8125_n.c:7683:20: nota: (cerca de la inicialización de ‘rtl8125_ethtool_ops.set_eee’)
make[2]: *** [scripts/Makefile.build:244: /var/lib/dkms/r8125/9.013.02/build/r8125_n.o] Error 1
make[1]: *** [/usr/lib/modules/6.9.1-zen1-1-zen/build/Makefile:1917: /var/lib/dkms/r8125/9.013.02/build] Error 2
make: *** [Makefile:240: __sub-make] Error 2
make: se sale del directorio '/usr/lib/modules/6.9.1-zen1-1-zen/build'

barand3 commented on 2024-05-20 16:08 (UTC) (edited on 2024-05-20 16:10 (UTC) by barand3)

Module will no longer be built. Here is the make.log


DKMS make.log for r8125-9.013.02 for kernel 6.9.1-arch1-1 (x86_64)
Mo 20. Mai 18:04:49 CEST 2024
make: Verzeichnis „/usr/lib/modules/6.9.1-arch1-1/build“ wird betreten
  CC [M]  /var/lib/dkms/r8125/9.013.02/build/r8125_n.o
  CC [M]  /var/lib/dkms/r8125/9.013.02/build/rtl_eeprom.o
  CC [M]  /var/lib/dkms/r8125/9.013.02/build/rtltool.o
/var/lib/dkms/r8125/9.013.02/build/r8125_n.c:7682:20: Fehler: Initialisierung von »int (*)(struct net_device *, struct ethtool_keee *)« von inkompatiblem Zeigertyp »int (*)(struct net_device *, struct ethtool_eee *)« [-Wincompatible-pointer-types]
 7682 |         .get_eee = rtl_ethtool_get_eee,
      |                    ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/r8125/9.013.02/build/r8125_n.c:7682:20: Anmerkung: (nahe der Initialisierung für »rtl8125_ethtool_ops.get_eee«)
/var/lib/dkms/r8125/9.013.02/build/r8125_n.c:7683:20: Fehler: Initialisierung von »int (*)(struct net_device *, struct ethtool_keee *)« von inkompatiblem Zeigertyp »int (*)(struct net_device *, struct ethtool_eee *)« [-Wincompatible-pointer-types]
 7683 |         .set_eee = rtl_ethtool_set_eee,
      |                    ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/r8125/9.013.02/build/r8125_n.c:7683:20: Anmerkung: (nahe der Initialisierung für »rtl8125_ethtool_ops.set_eee«)
make[2]: *** [scripts/Makefile.build:244: /var/lib/dkms/r8125/9.013.02/build/r8125_n.o] Fehler 1
make[1]: *** [/usr/lib/modules/6.9.1-arch1-1/build/Makefile:1919: /var/lib/dkms/r8125/9.013.02/build] Fehler 2
make: *** [Makefile:240: __sub-make] Fehler 2
make: Verzeichnis „/usr/lib/modules/6.9.1-arch1-1/build“ wird verlassen

aravance commented on 2024-04-07 19:10 (UTC)

I've copied the source code into my own github so it can be distributed using github release source tarballs. You should be able to build directly again without having to do a manual download through the realtek presigned url.

eskimokk commented on 2024-04-01 08:23 (UTC) (edited on 2024-04-07 06:58 (UTC) by eskimokk)

follow the steps manually:

0. install pre-requirements like dkms, linux-headers...

  1. git clone https://aur.archlinux.org/r8125-dkms.git

  2. cd r8125-dkms download the source code here (https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software) and put it under this dir.

  3. edit PKGBUILD change the line from: source=("http://rtitwww.realtek.com/rtdrivers/cn/nic1/${_pkgname}-${pkgver}.tar.bz2" to source=("${_pkgname}-${pkgver}.tar.bz2"

  4. makepkg -si

  5. exec by root: echo "blacklist r8169" >> /etc/modprobe.d/dkms.conf

  6. reboot

  7. check by: ethtool -i YOUR_DEV

evine commented on 2024-03-20 04:46 (UTC)

@barand3 , The official website of REALTEK has enabled pre download verification, and you can go here to download the source code and place it in the root directory of the package.

barand3 commented on 2024-02-07 14:37 (UTC) (edited on 2024-02-07 14:42 (UTC) by barand3)

The installation cannot be carried out because the download url is invalid.

curl: (22) The requested URL returned error: 404
==> FEHLER: Fehler beim Download von http://rtitwww.realtek.com/rtdrivers/cn/nic1/r8125-9.012.04.tar.bz2
Breche ab...
-> Fehler beim Erstellen: r8125-dkms-exit status 1
-> Die folgenden Pakete konnten nicht installiert werden. Ein manueller Eingriff ist erforderlich:
r8125-dkms - exit status 1
PAKtC

boogiepop commented on 2023-08-31 20:30 (UTC)

@aravance.

I need this driver for radxa rock5b SBC. It is using an older vendor kenel based on linux 5.10. For linux < 5.12 the module needs below patch. Could you please apply?

https://raw.githubusercontent.com/radxa-pkg/r8125-dkms/debian/sid/debian/patches/linux5.12.patch

xiuxiu10201 commented on 2023-04-13 03:18 (UTC) (edited on 2023-04-13 03:19 (UTC) by xiuxiu10201)

Throughput monitoring issue

https://github.com/awesometic/realtek-r8125-dkms/issues/33

Ran into the same problem.

stratusfear commented on 2023-01-20 04:43 (UTC)

To match the original functionality from <6.1, the patch should probably change the function from netif_napi_add to netif_napi_add_weight rather than remove the weight parameter. The api was changed in 6.1 to generalize the netif_napi_add function (by removing the weight parameter) and the netif_napi_add_weight function was added in its place for calls where a weight is required/desired.

diff --git 1/6.1.patch 2/6.1.patch
new file mode 100644
index 0000000..da9f9ea
--- /dev/null
+++ 2/6.1.patch
@@ -0,0 +1,15 @@
+diff -Naur r8125-9.011.00-a/src/r8125.h r8125-9.011.00-b/src/r8125.h
+--- r8125-9.011.00-a/src/r8125.h
++++ r8125-9.011.00-b/src/r8125.h
+@@ -676,7 +676,11 @@
+ typedef struct napi_struct *napi_ptr;
+ typedef int napi_budget;
+ 
++#if LINUX_VERSION_CODE < KERNEL_VERSION(6,1,0)
+ #define RTL_NAPI_CONFIG(ndev, priv, function, weight)   netif_napi_add(ndev, &priv->napi, function, weight)
++#else
++#define RTL_NAPI_CONFIG(ndev, priv, function, weight)   netif_napi_add_weight(ndev, &priv->napi, function, weight)
++#endif
+ #define RTL_NAPI_QUOTA(budget, ndev)            min(budget, budget)
+ #define RTL_GET_PRIV(stuct_ptr, priv_struct)        container_of(stuct_ptr, priv_struct, stuct_ptr)
+ #define RTL_GET_NETDEV(priv_ptr)            struct net_device *dev = priv_ptr->dev;