S
S
Seiwer2020-12-20 13:01:23
linux
Seiwer, 2020-12-20 13:01:23

How to install r8169-dkms driver on CentOS/RedHat?

Hi all! I have RedHat 8 on hand (CentOS is fully compatible in my opinion, so the question is also suitable for cent OS)

In general, I found that the system does not see my WiFi adapter (Tp-Link TL-WN725N) googled and found that I need to install the r8169-dkms driver to bloat the adapter, try to install (cloned from git rep) and get this error:

[quearan @ RedHatPC r8168] $ sudo ./autorun.sh
[sudo] password for quearan:

Check old driver and unload it.
rmmod r8169
Build the module and install
/home/quearan/Downloads/r8168/dahdi-linux/r8168/src/r8168_n.c:60:10: fatal error: linux / pci-aspm.h: No such file or directory
  #include <linux / pci-aspm.h>
           ^ ~~~~~~~~~~~~~~~~~
compilation aborted.
make [3]: *** [scripts / Makefile.build: 316: /home/quearan/Downloads/r8168/dahdi-linux/r8168/src/r8168_n.o] Error 1
make [2]: *** [Makefile: 1544: _module_ / home / quearan / Downloads / r8168 / dahdi-linux / r8168 / src] Error 2
make [1]: *** [Makefile: 140: modules] Error 2
make: *** [Makefile: 40: modules] Error 2


What should I do and how can such a teapot like me inflate the adapter?

Screenshots with info about the system and an error in the studio
5fdf20b59560f692821597.jpeg
5fdf20c27f269435867525.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kisaa, 2020-12-20
@kisaa

Does it look like this?
https://bugs.gentoo.org/701200
Patch:
https://bugs.gentoo.org/attachment.cgi?id=597556&a...
Naturally, do not forget to make copies, everything is at your own peril and risk, etc. .

A
Alexey Dmitriev, 2020-12-21
@SignFinder

Connect the elrepo repository and install the r8169 package with one command via yum
PS - it's strange that you write about r8169-dkms, but try to install r8168

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question