Help with rtl8812au WiFi driver in Centos 7.7

Issues related to hardware problems
anglican
Posts: 38
Joined: 2015/06/11 08:30:33

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by anglican » 2019/10/31 11:32:12

Why not just edit the Makefile with, say, "vi"? I don't understand how you can use WinSCP to do the edit! From the error you're getting (the first actual error, as opposed to warning) is:
/usr/src/rtl8812au-cccooo/include/../os_dep/linux/ioctl_cfg80211.h:382:27: error: ‘IEEE80211_BAND_2GHZ’ undeclared here (not in a function)
#define NL80211_BAND_2GHZ IEEE80211_BAND_2GHZ
Which suggests that REDHAT_76 is not getting defined in the Makefile so lines are being processed that should not be. All the following errors are similar. I'd try starting again afresh and editing the Makefile after cloning in a more conventional way. I'd also not clone into /usr/src or do anything as root until "make install".

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by tunk » 2019/10/31 12:10:31

The line shift characters in windows and linux are different which
may (or not) explain your problem. You may find nano easier to use
than vi.

NickH
Posts: 20
Joined: 2018/03/14 15:26:12

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by NickH » 2019/10/31 12:31:28

What is the contents of your /etc/redhat-release?

NickH
Posts: 20
Joined: 2018/03/14 15:26:12

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by NickH » 2019/10/31 12:56:10

Thanks for all your help. I'll have to own up a bit that I don't use Centos but a Centos based distro, ClearOS, and they claim to be binary compatible with Centos and (now) have switched to using the Centos kernel.

The issue is that their /etc/redhat-release contains:

Code: Select all

ClearOS release 7.7.1 (Final) 
On a Centos 7.6 system I see:

Code: Select all

CentOS Linux release 7.6.1810 (Core)
The significant thing is where the version number appears. In ClearOS it is the third field and Centos the fourth so I also had to change:

Code: Select all

REDHAT_VER := $(shell cut -f4 -d" " /etc/redhat-release |cut -d"." -f1,2 )
to:

Code: Select all

REDHAT_VER := $(shell cut -f3 -d" " /etc/redhat-release |cut -d"." -f1,2 )
Without your help I would not have got there. Thank you very much.


FWIW I am doing make as root as it is only in a scratch VM so I am not worried if I hose things. On my proper box I use an unpriveleged user.

NickH
Posts: 20
Joined: 2018/03/14 15:26:12

Re: Help with rtl8812au WiFi driver in Centos 7.7

Post by NickH » 2019/11/01 16:34:43

Just to round this off, I put in a request to ElRepo and they have kindly compiled the module as kmod-rtl8812au-5.3.4-1.el7_7.elrepo.x86_64.rpm. I hope people find it useful.

Post Reply