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.61
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

1 2 Next › Last »

LeonardoMor commented on 2025-04-08 02:13 (UTC)

I could reproduce the same behavior with pkgrel 1 so I don't think this package or the driver is to blame.

My system is a laptop. I also found that if the Ethernet NIC is not showing up I can do the following:

  1. Disconnect the charger and reboot
  2. When back up, while on battery, shutdown. While shutdown, connect the charger.
  3. Turn the computer back on. The Ethernet connection will show up.

Should I post on the Arch forums? This is really strange.

didi2002 commented on 2025-04-06 17:48 (UTC)

yep, you can do git checkout b1ed187 and makepkg -si

LeonardoMor commented on 2025-04-06 05:13 (UTC)

How do I revert to an specific pkgrel? Should I clone the repo, then checkout the commit that introduced it, then install?

didi2002 commented on 2025-04-04 21:27 (UTC)

Could you check if this is fixed by reverting back to pkgrel 1?

LeonardoMor commented on 2025-04-04 19:02 (UTC)

For what is worth, either an update to this or the OS, causes the NIC to disappear after restarting.

It's as if it was disconnected. I would not be visible in BIOS nor in lspci.

CMOS reset recovers it for me. But rebooting will make it disappear again.

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.