Package Details: r8168-dkms 8.042-3

Git Clone URL: https://aur.archlinux.org/r8168-dkms.git (read-only)
Package Base: r8168-dkms
Description: A kernel module for Realtek 8168 network cards
Upstream URL: http://www.realtek.com.tw
Licenses: GPL
Conflicts: r8168
Submitter: angelsl
Maintainer: clfarron4
Last Packager: clfarron4
Votes: 5
Popularity: 1.060781
First Submitted: 2015-10-26 16:00
Last Updated: 2016-09-03 19:14

Latest Comments

wangjiezhe commented on 2016-08-22 06:36

It breaks for linux-lts 4.4.19-1, which is caused by linux-4.5.patch.

Here is a patch that works:
https://gist.github.com/wangjiezhe/c96211fe4ed95bf633366b314eafe504

alium commented on 2016-08-21 06:08

please update your PKGBUILD!!

j1simon commented on 2016-08-17 17:06

The patch has several conditions: "#if LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)" to change the code. It shouldn't affect to previous kernels.

angelsl commented on 2016-08-17 10:14

@clfarron4

Why would it break everything before 4.7? It's just some preprocessor directives to alter the code for 4.7.

clfarron4 commented on 2016-08-17 10:08

Dear all: @ozmartian's patch works for 4.7 but breaks for everything before 4.7, so we're at a bit of an impasse here.

Should we create a package for pre-4.7?

ozmartian commented on 2016-08-12 05:07

hi guys... here is the working patch file to get this working on 4.7

linux-4.7.patch

https://gist.github.com/ozmartian/698c99ac7b9f4a5e5194f0591cd11ab0

talonz commented on 2016-07-15 22:23

This is the error from the make log if that helps,

$ cat /var/lib/dkms/r8168/8.042/build/make.log
DKMS make.log for r8168-8.042 for kernel 4.7.0-rc7-gfa3a9f574 (x86_64)
Sat Jul 16 08:00:11 AEST 2016
make: Entering directory '/usr/lib/modules/4.7.0-rc7-gfa3a9f574/build'
CC [M] /var/lib/dkms/r8168/8.042/build/src/r8168_n.o
/var/lib/dkms/r8168/8.042/build/src/r8168_n.c: In function ‘rtl8168_init_one’:
/var/lib/dkms/r8168/8.042/build/src/r8168_n.c:22799:28: error: ‘struct net_device’ has no member named ‘gso_min_segs’; did you mean ‘gso_max_segs’?
dev->gso_min_segs = NIC_MIN_PHYS_BUF_COUNT;
^~
/var/lib/dkms/r8168/8.042/build/src/r8168_n.c:22807:28: error: ‘struct net_device’ has no member named ‘gso_min_segs’; did you mean ‘gso_max_segs’?
dev->gso_min_segs = NIC_MIN_PHYS_BUF_COUNT;
^~
/var/lib/dkms/r8168/8.042/build/src/r8168_n.c: In function ‘rtl8168_start_xmit’:
/var/lib/dkms/r8168/8.042/build/src/r8168_n.c:24969:12: error: ‘struct net_device’ has no member named ‘trans_start’; did you mean ‘mem_start’?
dev->trans_start = jiffies;
^~
make[1]: *** [scripts/Makefile.build:290: /var/lib/dkms/r8168/8.042/build/src/r8168_n.o] Error 1
make: *** [Makefile:1457: _module_/var/lib/dkms/r8168/8.042/build/src] Error 2
make: Leaving directory '/usr/lib/modules/4.7.0-rc7-gfa3a9f574/build'


Edit: Resolved by using the r8169 driver module instead .. aparently that works now in linux 4.7

talonz commented on 2016-07-12 00:20

Yeah I do its also a problem on Linux-git

clfarron4 commented on 2016-07-11 16:43

@talonz: Do you have the linux-mainline-headers package installed?

talonz commented on 2016-07-11 06:08

Your kernel headers for kernel cannot be found at
/usr/lib/modules//build or /usr/lib/modules//source.

All comments