Package Details: r8168-dkms 8.053.00-1

Git Clone URL: https://aur.archlinux.org/r8168-dkms.git (read-only, click to copy)
Package Base: r8168-dkms
Description: A kernel module for Realtek 8168 network cards (DKMS version)
Upstream URL: https://github.com/mtorromeo/r8168
Keywords: dkms ethernet network realtek
Licenses: GPL
Conflicts: r8168
Provides: r8168
Submitter: angelsl
Maintainer: patlefort
Last Packager: patlefort
Votes: 24
Popularity: 0.35
First Submitted: 2015-10-26 16:00 (UTC)
Last Updated: 2024-04-21 18:04 (UTC)

Dependencies (3)

Required by (0)

Sources (2)

Latest Comments

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

cl0ne commented on 2019-12-06 22:13 (UTC)

linux-5.4 patch from r8168 + replace SUBDIRS with M in dkms.conf allows to build module with DKMS.

Updated PKGBUILD (with all accompanying files) can be found here: https://gist.github.com/cl0ne/9a3f2b5a4208df3b2e96ed4e9b879292

bezirg commented on 2019-12-03 11:42 (UTC) (edited on 2019-12-03 11:42 (UTC) by bezirg)

I can confirm that manually building and loading the package with the linux-5.4 patch works, but applying the patch to the r8168-dkms makes DKMS fail when generating r8168 drivers for any 5.4 kernels.

j1simon commented on 2019-12-03 09:19 (UTC) (edited on 2019-12-03 10:19 (UTC) by j1simon)

../src/r8168_n.c:60:10: fatal error: linux/pcieaspm.h: No such file or directory
   60 | #include <linux/pcieaspm.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:265: /home/juan/fuentes/r8168/src/r8168_n.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1652: /home/juan/fuentes/r8168/src] Error 2
make: *** [Makefile:140: modules] Error 2

The problem is that the latest releases of the Linux kernel remove that file from the tree: https://github.com/mtorromeo/r8168/issues/19

There is a patch: https://github.com/rockyprabowo/r8168/pull/1/commits/e4aded6235052a61283b79a18ff7d8ef6b654858


With that patch I can compile, install and use the module directly (without DKMS). But with DKMS, it fails.

jghodd commented on 2019-12-03 03:36 (UTC)

Broken again with linux 5.4.1:

DKMS make.log for r8168-8.047.05 for kernel 5.4.1-arch1-1 (x86_64) Mon 02 Dec 2019 10:34:15 PM EST make: Entering directory '/usr/lib/modules/5.4.1-arch1-1/build' scripts/Makefile.build:42: arch/x86/entry/syscalls/Makefile: No such file or directory make[1]: No rule to make target 'arch/x86/entry/syscalls/Makefile'. Stop. make: [arch/x86/Makefile:238: archheaders] Error 2 make: *** Waiting for unfinished jobs.... make: Leaving directory '/usr/lib/modules/5.4.1-arch1-1/build'

alium commented on 2018-10-02 15:03 (UTC)

@wget: thanks for report, fixed!

wget commented on 2018-10-02 14:45 (UTC)

The sources are broken.

alium commented on 2018-08-18 17:10 (UTC)

@toxygen: thanks for report, file was changed. Source updated

toxygen commented on 2018-08-18 16:45 (UTC)

source on pkgbuild seems to be wrong: source=(https://az695102.vo.msecnd.net/rtdrivers/cn/nic/0011-r8168-8.046.00.tar.bz2

should be source=(https://az695102.vo.msecnd.net/rtdrivers/cn/nic/0012-r8168-8.046.00.tar.bz2

alium commented on 2017-12-27 15:26 (UTC)

@DgDev91: Patch updated, thanks!

DgDev91 commented on 2017-12-27 15:09 (UTC)

Patch updated. it doesn't really change anything, it's a simple code cleanup.

My patch was a bit "dirty", as i said in the last post, now a kind developer (angelsl on github) showed me the proper way to fix it.

Here's the updated patch: https://pastebin.com/Q6uQmMhE