Package Details: r8168-dkms 8.050.03-2

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: 20
Popularity: 0.83
First Submitted: 2015-10-26 16:00 (UTC)
Last Updated: 2022-06-26 23:49 (UTC)

Latest Comments

maderios commented on 2022-06-07 17:47 (UTC)

@lgomesf I don't know but i think it's not so difficult to update PKGBUILD. Watch new versions here https://github.com/mtorromeo/r8168

lgomesf commented on 2022-06-06 19:33 (UTC)

Is there a replacement for this package?

guzzisti commented on 2022-05-30 06:23 (UTC)

Thanks for the hint @McDonald, package is updated.

aucunhenac commented on 2022-05-29 17:41 (UTC)

@McDonald, thanks a lot. After I download snapshot, extract, I replaced original PKGBUILD to you, using makepkg -si, works very well. Thanks again.

McDonald commented on 2022-05-29 15:31 (UTC) (edited on 2022-05-30 01:07 (UTC) by McDonald)

To support 5.18, please use this PKGBUILD, which apply the patch provided by official repo r8168.

# Maintainer: René Wagner <rwa at clttr dot info>
# Contributor: Juan Simón <play4pro at protonmail dot com>
# Contributor: alium
# Contributor: angelsl
# Contributer: hayao <hayao@fascode.net>

_pkgbase=r8168
pkgname=${_pkgbase}-dkms
pkgver=8.050.02
pkgrel=2
pkgdesc="A kernel module for Realtek 8168 network cards (DKMS version)"
url="https://github.com/mtorromeo/r8168"
license=("GPL")
arch=('i686' 'x86_64')
depends=('glibc' 'dkms')
makedepends=('git')
conflicts=("${pkgname}")
source=("r8168-dkms::git+https://github.com/mtorromeo/r8168.git"
        "dkms.conf"
        "linux518.patch::https://raw.githubusercontent.com/archlinux/svntogit-community/packages/r8168/trunk/linux518.patch")
sha256sums=('SKIP'
            'e33abcbc8fbe3129459ebc60be3b2f8ed55ddc53755f4956d6feb16c61c43250'
            'd8d542770e504775600f686d03412a37cc32489872be7aeb388b5b08d9806096')
install=r8168-dkms.install

prepare() {
     cd "$pkgname"
     patch -Np1 -i ../linux518.patch
}

package() {
    install -Dm644 dkms.conf "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"

    sed -e "s/@PKGNAME@/${_pkgbase}/g" \
        -e "s/@PKGVER@/${pkgver}/g" \
        -i "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"

    cd "${pkgname}"
    cp -dr --no-preserve='ownership' src "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/src"
}

aucunhenac commented on 2022-05-29 10:30 (UTC)

Error on garuda and arcolinux. Log:

cat /var/lib/dkms/r8168/8.050.02/build/make.log DKMS make.log for r8168-8.050.02 for kernel 5.18.0-arch1-1 (x86_64) dom 29 mai 2022 07:14:03 -03 make: Entering directory '/usr/lib/modules/5.18.0-arch1-1/build' CC [M] /var/lib/dkms/r8168/8.050.02/build/src/r8168_n.o CC [M] /var/lib/dkms/r8168/8.050.02/build/src/r8168_asf.o CC [M] /var/lib/dkms/r8168/8.050.02/build/src/rtl_eeprom.o CC [M] /var/lib/dkms/r8168/8.050.02/build/src/rtltool.o /var/lib/dkms/r8168/8.050.02/build/src/r8168_n.c: In function ‘rtl8168_mac_loopback_test’: /var/lib/dkms/r8168/8.050.02/build/src/r8168_n.c:3701:17: error: implicit declaration of function ‘pci_dma_sync_single_for_device’; did you mean ‘dma_sync_single_for_device’? [-Werror=implicit-function-declaration] 3701 | pci_dma_sync_single_for_device(tp->pci_dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | dma_sync_single_for_device /var/lib/dkms/r8168/8.050.02/build/src/r8168_n.c: In function ‘rtl8168_init_board’: /var/lib/dkms/r8168/8.050.02/build/src/r8168_n.c:26411:14: error: implicit declaration of function ‘pci_set_dma_mask’ [-Werror=implicit-function-declaration] 26411 | !pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) && | ^~~~~~~~~~~~~~~~ /var/lib/dkms/r8168/8.050.02/build/src/r8168_n.c:26412:14: error: implicit declaration of function ‘pci_set_consistent_dma_mask’ [-Werror=implicit-function-declaration] 26412 | !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[1]: [scripts/Makefile.build:288: /var/lib/dkms/r8168/8.050.02/build/src/r8168_n.o] Error 1 make: [Makefile:1834: /var/lib/dkms/r8168/8.050.02/build/src] Error 2 make: Leaving directory '/usr/lib/modules/5.18.0-arch1-1/build'

nastyagrifon commented on 2022-05-10 17:27 (UTC) (edited on 2022-05-10 17:34 (UTC) by nastyagrifon)

linux517.patch returns HTTP 404 error.

==> ERROR: Failure while downloading https://raw.githubusercontent.com/archlinux/svntogit-community/packages/r8168/trunk/linux517.patch
Aborting...
 -> error downloading sources: r8168-dkms 
context: exit status 1 

gyurman commented on 2022-04-10 09:14 (UTC)

Thanks; this is working well with xanomod, but with zen don't.

gyurman commented on 2022-04-02 17:05 (UTC)

What is the problem? Can you help me?

(1/1) frissítés: r8168-dkms                                            [####################################################################] 100% 
Error! DKMS tree already contains: r8168-8.049.02 
You cannot add the same module/version combo more than once. 
==> The module r8168 conflicts with r8169. You can blacklist it with: 
==> echo "blacklist r8169" > /etc/modprobe.d/r8169_blacklist.conf 
**::** **Tranzakció utáni műveletek végrehajtása...** 
(1/3) Arming ConditionNeedsUpdate... 
(2/3) Install DKMS modules 
==> dkms install --no-depmod r8168/8.049.02 -k 5.17.1-zen1-1-zen 
Error! Bad return status for module build on kernel: 5.17.1-zen1-1-zen (x86_64) 
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information. 
==> WARNING: `dkms install --no-depmod r8168/8.049.02 -k 5.17.1-zen1-1-zen' exited 10 
==> dkms install --no-depmod r8168/8.049.02 -k 5.17.1-arch1-1 
Error! Bad return status for module build on kernel: 5.17.1-arch1-1 (x86_64) 
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information. 
==> WARNING: `dkms install --no-depmod r8168/8.049.02 -k 5.17.1-arch1-1' exited 10 
(3/3) Refreshing PackageKit... 
**^^****/**.c**/**y**/****r8168-dkms** >>> cat /var/lib/dkms/r8168/8.049.02/build/make.log                                                        12**:****08****:****08**  
DKMS make.log for r8168-8.049.02 for kernel 5.17.1-arch1-1 (x86_64) 
\2022. ápr. 2., szombat, 12:07:55 CEST 
make: Entering directory '/usr/lib/modules/5.17.1-arch1-1/build' 
  CC [M]  /var/lib/dkms/r8168/8.049.02/build/src/r8168_n.o 
  CC [M]  /var/lib/dkms/r8168/8.049.02/build/src/rtl_eeprom.o 
  CC [M]  /var/lib/dkms/r8168/8.049.02/build/src/r8168_asf.o 
  CC [M]  /var/lib/dkms/r8168/8.049.02/build/src/rtltool.o 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c: In function ‘rtl8168_proc_open’: 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:1736:50: error: implicit declaration of function ‘PDE_DATA’; did you mean ‘NODE_DATA’? [-Werror=implicit-function-declaration] 
 1736 |     int (*show)(struct seq_file *, void *) = PDE_DATA(inode); 
    |                          ^~~~~~~~ 
    |                          NODE_DATA 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:1736:50: warning: initialization of ‘int (*)(struct seq_file *, void *)’ from ‘int’ makes pointer from integer without a cast [-Wint-convers
ion] 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c: In function ‘rtl8168_get_mac_address’: 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:24132:34: error: assignment of read-only location ‘*(dev->dev_addr + (sizetype)i)’ 
24132 |         dev->dev_addr[i] = RTL_R8(tp, MAC0 + i); 
    |                  ^ 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c: In function ‘rtl8168_set_mac_address’: 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:24163:19: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 
24163 |     memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); 
    |         ~~~^~~~~~~~~~ 
In file included from ./include/linux/string.h:253, 
         from ./include/linux/bitmap.h:11, 
         from ./include/linux/cpumask.h:12, 
         from ./arch/x86/include/asm/cpumask.h:5, 
         from ./arch/x86/include/asm/msr.h:11, 
         from ./arch/x86/include/asm/processor.h:22, 
         from ./arch/x86/include/asm/timex.h:5, 
         from ./include/linux/timex.h:65, 
         from ./include/linux/time32.h:13, 
         from ./include/linux/time.h:60, 
         from ./include/linux/stat.h:19, 
         from ./include/linux/module.h:13, 
         from /var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:43: 
./include/linux/fortify-string.h:212:37: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 
  212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size) 
    |                ~~~~~~^ 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:24165:32: warning: passing argument 2 of ‘rtl8168_rar_set’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 
24165 |     rtl8168_rar_set(tp, dev->dev_addr); 
    |               ~~~^~~~~~~~~~ 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:566:59: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘const unsigned char *’ 
  566 | void rtl8168_rar_set(struct rtl8168_private *tp, uint8_t *addr); 
    |                          ~~~~~~~~~^~~~ 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c: In function ‘rtl8168_resume’: 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:28650:32: warning: passing argument 2 of ‘rtl8168_rar_set’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 
28650 |     rtl8168_rar_set(tp, dev->dev_addr); 
    |               ~~~^~~~~~~~~~ 
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:24180:26: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘const unsigned char *’ 
24180 |         uint8_t *addr) 
    |         ~~~~~~~~~^~~~ 
cc1: some warnings being treated as errors 
make[1]: *** [scripts/Makefile.build:288: /var/lib/dkms/r8168/8.049.02/build/src/r8168_n.o] Error 1 
make: *** [Makefile:1831: /var/lib/dkms/r8168/8.049.02/build/src] Error 2 
make: Leaving directory '/usr/lib/modules/5.17.1-arch1-1/build' 
**^^****/**.c**/**y**/****r8168-dkms** >>> cat /etc/modprobe.d/r8169_blacklist.conf                                                           12**:****08****:****44**  
blacklist r8169 
**^^****/**.c**/**y**/****r8168-dkms** >>>                         
^^/.c/yay >>> sudo dkms install --no-depmod r8168/8.049.02 -k 5.17.1-zen1-1-zen                                                                                                     12:24:45 

Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.17.1-zen1-1-zen -C /usr/lib/modules/5.17.1-zen1-1-zen/build M=/var/lib/dkms/r8168/8.049.02/build/src EXTRA_CFLAGS='-DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN' modules....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.17.1-zen1-1-zen (x86_64)
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information.

^^/.c/yay >>> cat /var/lib/dkms/r8168/8.049.02/build/make.log                                                                                                                  (10) 12:25:18 
DKMS make.log for r8168-8.049.02 for kernel 5.17.1-zen1-1-zen (x86_64)
2022. ápr. 2., szombat, 12:25:14 CEST
make: Entering directory '/usr/lib/modules/5.17.1-zen1-1-zen/build'
  CC [M]  /var/lib/dkms/r8168/8.049.02/build/src/r8168_n.o
  CC [M]  /var/lib/dkms/r8168/8.049.02/build/src/rtl_eeprom.o
  CC [M]  /var/lib/dkms/r8168/8.049.02/build/src/r8168_asf.o
  CC [M]  /var/lib/dkms/r8168/8.049.02/build/src/rtltool.o
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c: In function ‘rtl8168_proc_open’:
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:1736:50: error: implicit declaration of function ‘PDE_DATA’; did you mean ‘NODE_DATA’? [-Werror=implicit-function-declaration]
 1736 |         int (*show)(struct seq_file *, void *) = PDE_DATA(inode);
      |                                                  ^~~~~~~~
      |                                                  NODE_DATA
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:1736:50: warning: initialization of ‘int (*)(struct seq_file *, void *)’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c: In function ‘rtl8168_get_mac_address’:
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:24132:34: error: assignment of read-only location ‘*(dev->dev_addr + (sizetype)i)’
24132 |                 dev->dev_addr[i] = RTL_R8(tp, MAC0 + i);
      |                                  ^
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c: In function ‘rtl8168_set_mac_address’:
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:24163:19: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
24163 |         memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
      |                ~~~^~~~~~~~~~
In file included from ./include/linux/string.h:253,
                 from ./include/linux/bitmap.h:11,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:22,
                 from ./arch/x86/include/asm/timex.h:5,
                 from ./include/linux/timex.h:65,
                 from ./include/linux/time32.h:13,
                 from ./include/linux/time.h:60,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:13,
                 from /var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:43:
./include/linux/fortify-string.h:212:37: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
  212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size)
      |                               ~~~~~~^
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:24165:32: warning: passing argument 2 of ‘rtl8168_rar_set’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
24165 |         rtl8168_rar_set(tp, dev->dev_addr);
      |                             ~~~^~~~~~~~~~
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:566:59: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘const unsigned char *’
  566 | void rtl8168_rar_set(struct rtl8168_private *tp, uint8_t *addr);
      |                                                  ~~~~~~~~~^~~~
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c: In function ‘rtl8168_resume’:
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:28650:32: warning: passing argument 2 of ‘rtl8168_rar_set’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
28650 |         rtl8168_rar_set(tp, dev->dev_addr);
      |                             ~~~^~~~~~~~~~
/var/lib/dkms/r8168/8.049.02/build/src/r8168_n.c:24180:26: note: expected ‘uint8_t *’ {aka ‘unsigned char *’} but argument is of type ‘const unsigned char *’
24180 |                 uint8_t *addr)
      |                 ~~~~~~~~~^~~~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:288: /var/lib/dkms/r8168/8.049.02/build/src/r8168_n.o] Error 1
make: *** [Makefile:1826: /var/lib/dkms/r8168/8.049.02/build/src] Error 2
make: Leaving directory '/usr/lib/modules/5.17.1-zen1-1-zen/build'

hayao commented on 2022-04-01 06:02 (UTC)

To support linux 5.17, Please use this PKGBUILD, which apply the patch provided by Arch Linux r8168.

# Maintainer: René Wagner <rwa at clttr dot info>
# Contributor: Juan Simón <play4pro at protonmail dot com>
# Contributor: alium
# Contributor: angelsl
# Contributer: hayao <hayao@fascode.net>

_pkgbase=r8168
pkgname=${_pkgbase}-dkms
pkgver=8.049.02
pkgrel=1
pkgdesc="A kernel module for Realtek 8168 network cards (DKMS version)"
url="https://github.com/mtorromeo/r8168"
license=("GPL")
arch=('i686' 'x86_64')
depends=('glibc' 'dkms')
makedepends=('git')
conflicts=("${pkgname}")
source=("r8168-dkms::git+https://github.com/mtorromeo/r8168.git"
        "linux517.patch::https://raw.githubusercontent.com/archlinux/svntogit-community/packages/r8168/trunk/linux517.patch"
        "dkms.conf")

install=r8168-dkms.install

prepare() {
    cd "r8168-dkms"
    patch -Np1 -i ../linux517.patch
}

package() {
    install -Dm644 dkms.conf "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"

    sed -e "s/@PKGNAME@/${_pkgbase}/g" \
        -e "s/@PKGVER@/${pkgver}/g" \
        -i "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"

    cd "${pkgname}"
    cp -dr --no-preserve='ownership' src "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/src"
}
sha256sums=('SKIP'
            'SKIP'
            'e33abcbc8fbe3129459ebc60be3b2f8ed55ddc53755f4956d6feb16c61c43250')

JustinSB commented on 2022-03-31 14:13 (UTC) (edited on 2022-03-31 14:17 (UTC) by JustinSB)

With the @McDonald PKGBUILD below it now works for the latest kernel, 5.17.1, which is really good news. Thank you, as this was driving me crazy.

FYI, it won't install into the 5.15.32-1-lts kernel though. Not mission critical for me, but could trip some people up.

Install DKMS modules
==> dkms install --no-depmod r8168/8.049.02 -k 5.15.32-1-lts
Error! Bad return status for module build on kernel: 5.15.32-1-lts (x86_64)
Consult /var/lib/dkms/r8168/8.049.02/build/make.log for more information.
==> WARNING: `dkms install --no-depmod r8168/8.049.02 -k 5.15.32-1-lts' exited 10

McDonald commented on 2022-03-31 03:46 (UTC) (edited on 2022-03-31 03:48 (UTC) by McDonald)

fixed for 5.17

# Maintainer: René Wagner <rwa at clttr dot info>
# Contributor: Juan Simón <play4pro at protonmail dot com>
# Contributor: alium
# Contributor: angelsl
_pkgbase=r8168
pkgname=${_pkgbase}-dkms
pkgver=8.049.02
pkgrel=2
pkgdesc="A kernel module for Realtek 8168 network cards (DKMS version)"
url="https://github.com/mtorromeo/r8168"
license=("GPL")
arch=('i686' 'x86_64')
depends=('glibc' 'dkms')
makedepends=('git')
conflicts=("${pkgname}")
source=("r8168-dkms::git+https://github.com/mtorromeo/r8168.git"
        "linux517.patch::https://raw.githubusercontent.com/archlinux/svntogit-community/packages/r8168/trunk/linux517.patch"
        "dkms.conf")
install=r8168-dkms.install

prepare() {
    cd "$srcdir/$pkgname"
    patch -Np1 -i ../../linux517.patch
}

package() {
    install -Dm644 dkms.conf "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"

    sed -e "s/@PKGNAME@/${_pkgbase}/g" \
        -e "s/@PKGVER@/${pkgver}/g" \
        -i "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"

    cd "${pkgname}"
    cp -dr --no-preserve='ownership' src "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/src"
}
sha256sums=('SKIP'
            '6c718137bed0f80bce52cc6862e755de7a1d0c2cbb75491ab5b099bd04534c1c'
            'e33abcbc8fbe3129459ebc60be3b2f8ed55ddc53755f4956d6feb16c61c43250')

iotku commented on 2022-03-24 19:08 (UTC)

Yeah, this fails to build on the 5.17 release kernel (currently in testing) as well as it stands. I think there's a standard in-kernel driver for my chipset, but this has been far more reliable.

Kithop commented on 2022-02-07 22:40 (UTC)

Hi - this doesn't build/install with the latest 5.17-rc(1/2/3) kernels - looks like petehg has a potential patch for upstream at: https://github.com/mtorromeo/r8168/issues/38#issuecomment-1028040575

It doesn't apply quite cleanly as-is, and when I tried to re-diff it and finally get it patched, booting into the new kernel (with r8169 blacklisted) had my NIC not getting anything off of DHCP properly, so I'm not confident that a) I did the patching right or b) that the patch works with my specific configuration.

Unfortunately, the in-kernel r8169 module has a bug with my config where downstream is capped around ~150Mbps on a Gigabit setup (but upstream is fine).

(Asus ROG Strix G15 G513QY Advantage Edition)

MartinX3 commented on 2020-09-27 21:19 (UTC)

Nice, i hope it will go into the official repository.

pedrohqb commented on 2020-05-02 05:04 (UTC)

Well done. Used it to work around an already reported bug ( https://bugs.archlinux.org/task/66505?string=r8168&project=5&search_name=&type%5B0%5D=&sev%5B0%5D=&pri%5B0%5D=&due%5B0%5D=&reported%5B0%5D=&cat%5B0%5D=&status%5B0%5D=open&percent%5B0%5D=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto= ).

j1simon commented on 2020-04-07 11:56 (UTC)

updated. Thanks @wast3

bezirg commented on 2020-04-06 19:24 (UTC) (edited on 2020-04-06 19:24 (UTC) by bezirg)

Thanks for the patch @wast3. It is needed for linux>=5.6

wast3 commented on 2020-03-16 12:45 (UTC)

Here's a patch to support 5.6.0-rc kernels https://gist.github.com/harrykipper/e5a9c8db1550bf9acd63dd2c54b79685

cl0ne commented on 2019-12-08 11:36 (UTC)

@j1simon good job, thanks.

digitalone commented on 2019-12-08 08:00 (UTC)

It's working now, thanks.

j1simon commented on 2019-12-07 16:51 (UTC)

@cl0ne, thank you too much. As I noticed that the package is abandoned, I adopted it and I will upload your modifications after testing it.

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

alium commented on 2017-12-23 08:43 (UTC)

@DGdev91: adapted, used your patch! Thans a lot!

DgDev91 commented on 2017-12-23 00:40 (UTC) (edited on 2017-12-23 01:40 (UTC) by DgDev91)

This works no more on Linux 4.15, because the code calls the setup_timer function, wich was dropped not too much time ago https://github.com/torvalds/linux/commit/513ae785c63c30741e46f43960213d4ae5382ec0#diff-ba8897e9349509c7ca4d37b0704bee9c

I've tried to adapt it for the new kernel, you can find my version here. https://github.com/DGdev91/r8168/commit/bc248cd63115388d76d15e1c5ac8ac2f74a2dc25 There's probably a cleaner way to achieve this, but at least it works.

I've also created a pull request on mtorromeo's repo, wich is in the pkgbuild. (it's there just in case someone is seeking for a way to run this on kernel 4.15+, i know he doesn't accept patches, it's supposed to be just a mirror)

Here the patch https://pastebin.com/sCcpUqUu

alium commented on 2017-02-13 11:50 (UTC)

adopted und updated!

wangjiezhe commented on 2016-08-22 06:36 (UTC)

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

j1simon commented on 2016-08-17 17:06 (UTC)

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 (UTC)

@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 (UTC) (edited on 2016-08-17 10:09 (UTC) by clfarron4)

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 (UTC)

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 (UTC) (edited on 2016-07-23 08:12 (UTC) by talonz)

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 (UTC) (edited on 2016-07-12 06:43 (UTC) by talonz)

Yeah I do its also a problem on Linux-git

clfarron4 commented on 2016-07-11 16:43 (UTC)

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

talonz commented on 2016-07-11 06:08 (UTC)

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

clfarron4 commented on 2016-07-10 23:55 (UTC)

@talonz: It should just be an build and install and it works. Are you getting any errors when the module is being built?

talonz commented on 2016-07-09 23:31 (UTC)

how do i get dkms to work with the linux-mainline-headers ?

connaisseur commented on 2016-02-07 16:31 (UTC)

Please do a version bump up on to 8.041.00. Thanks!