Package Details: r8126-dkms 10.015.00-2

Git Clone URL: https://aur.archlinux.org/r8126-dkms.git (read-only, click to copy)
Package Base: r8126-dkms
Description: Kernel module for Realtek RTL8126
Upstream URL: https://www.realtek.com/Download/List?cate_id=584
Licenses: GPL-2.0-or-later
Conflicts: r8126
Submitter: didi2002
Maintainer: didi2002
Last Packager: didi2002
Votes: 4
Popularity: 0.77
First Submitted: 2024-09-25 20:14 (UTC)
Last Updated: 2025-03-27 21:13 (UTC)

Dependencies (4)

Required by (0)

Sources (2)

Latest Comments

HurricanePootis commented on 2025-03-18 00:33 (UTC)

Hello, in the dkms.conf file, you are calling the Kernel module make directly. This, however, ignores the default flags and features realtek sets in their Makefile. This patch enables the default features set in Makefile, such as Firmware support, Giga Lite, S5 WoL, etc. The r8126-objs has to be manually defined as you cannot add to it like the extra_cflags from dkms.

This patch also makes the license() SPDX compliant.

I have already went through this process with r8168-dkms.

diff --git a/PKGBUILD b/PKGBUILD
index 3f144c7..0f206a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,15 +6,15 @@ pkgrel=1
 pkgdesc="Kernel module for Realtek RTL8126"
 arch=('x86_64')
 url='https://www.realtek.com/Download/List?cate_id=584'
-license=('GPL2')
-depends=('dkms')
+license=('GPL-2.0-or-later')
+depends=('dkms' 'linux-firmware')
 optdepends=('linux-headers: Build the module for Arch kernel'
             'linux-lts-headers: Build the module for LTS Arch kernel')
 conflicts=("${_pkgbase}")
 source=("https://github.com/openwrt/rtl8126/releases/download/${pkgver}/${_pkgbase}-${pkgver}.tar.bz2"
         "dkms.conf")
 sha256sums=('fac513aa925264a95b053e7532fcda56022d29db288f6625fafee2759a8a6124'
-            '936bd24befc34fd6f9d5742f301a0b87bc18340223958fbe2676fc5c061eaa81')
+            'e14ab919e5d71f530d906d06a9b2c35985833b12d9854825877d0151347399df')
 package() {
   sed -e "s/@_PKGBASE@/${_pkgbase}/" \
       -e "s/@PKGVER@/${pkgver}/" \
diff --git a/dkms.conf b/dkms.conf
index 6bc2470..c48fea1 100644
--- a/dkms.conf
+++ b/dkms.conf
@@ -1,7 +1,7 @@
 PACKAGE_NAME="@_PKGBASE@"
 PACKAGE_VERSION="@PKGVER@"
 BUILT_MODULE_NAME[0]="@_PKGBASE@"
-MAKE[0]="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build modules"
+MAKE[0]="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build EXTRA_CFLAGS='-DCONFIG_SOC_LAN -DENABLE_FIBER_SUPPORT -DCONFIG_ASPM -DENABLE_S5WOL -DENABLE_EEE -DENABLE_TX_NO_CLOSE -DENABLE_USE_FIRMWARE_FILE -DENABLE_GIGA_LITE' r8126-objs='r8126_n.o rtl_eeprom.o rtltool.o r8126_fiber.o r8126_firmware.o' modules"
 CLEAN="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build clean"
 DEST_MODULE_LOCATION[0]="/kernel/drivers/net/ethernet/realtek"
 AUTOINSTALL="yes"

Anarconda commented on 2024-11-30 21:49 (UTC)

@redshoe It is included in kernel since version 6.12.

redshoe commented on 2024-11-30 21:36 (UTC)

Is this still necessary in order to use RTL8126? I am looking into buying RTL8126 NIC, and I would like to know if the driver is included in the kernel or not. Thanks.

LuxFerre commented on 2024-11-16 01:05 (UTC)

I'm still having occasional issues with the ethernet using this, but it works mostly OK. Still, for whoever is interested, it seems official that it is included in kernel 6.12, which will be out soon (probably making this package not necessary anymore?).

Will try to remember and report back once it's up and working.

didi2002 commented on 2024-11-10 13:21 (UTC)

Happy it works for you, I don‘t even have the hardware to test. Feel free to report back once it‘s included in the kernel.

LuxFerre commented on 2024-11-10 11:01 (UTC)

Shouldn't this be in kernel 6.11 already? Yet I still need it... Anyway thank you!

sh1sh1n11 commented on 2024-10-12 20:58 (UTC)

Thanks very much for this!