You are not logged in.

#1 2021-05-24 21:20:12

BHReach
Member
Registered: 2008-12-28
Posts: 21

[Solved] Problem with rtl8812au wifi driver.

Last update gave the following errors:

==> depmod 5.12.3-arch1-1
==> Unable to remove module rtl8812au/5.9.3.2.r8.gb95e750 for kernel 5.12.3-arch1-1: Not found in dkms status output.
...
==> dkms install --no-depmod -m rtl8812au -v 5.9.3.2.r8.gb95e750 -k 5.12.6-arch1-1
Error! Bad return status for module build on kernel: 5.12.6-arch1-1 (x86_64)
Consult /var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m rtl8812au -v 5.9.3.2.r8.gb95e750 -k 5.12.6-arch1-1' returned 10

The errors refer to 2 different kernel versions?

Error from make.log:

/var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/os_dep/linux/recv_linux.c:358:76: error: ‘GRO_DROP’ undeclared (first use in this function)
  358 |                         if (rtw_napi_gro_receive(&padapter->napi, pskb) != GRO_DROP)
      |                                                                            ^~~~~~~~
/var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/os_dep/linux/recv_linux.c:358:76: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/os_dep/linux/recv_linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/os_dep/linux/ioctl_cfg80211.c:459:17: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’
  459 |                 cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/include/osdep_service_linux.h:98,
                 from /var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/include/osdep_service.h:53,
                 from /var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/include/drv_types.h:27,
                 from /var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:7662:6: note: declared here
7662 | void cfg80211_ch_switch_started_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:1851: /var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.12.6-arch1-1/build'
make: *** [Makefile:2362: modules] Error 2

NOTE:
Before the upgrade, I was having trouble with NetworkManager. When it dropped the wifi connection at least sometimes instead of reconnecting automatically, it would prompt for the password (which it already knows) to reconnect.

Also, I am an experienced Linux user (moslty Gentoo) but new to Arch.

Last edited by BHReach (2021-05-25 15:12:11)

Offline

#2 2021-05-25 12:22:14

seth
Member
Registered: 2012-09-03
Posts: 51,029

Re: [Solved] Problem with rtl8812au wifi driver.

https://aur.archlinux.org/packages/rtl8812au-dkms-git/ ?
5.9.3.2.r8.gb95e750 is the firmware version.

You need https://github.com/gordboy/rtl8812au-5. … 708fca2cd4 what means you need to update the package (dkms only aligns to new kernels, but you need an updated version of rtl8812au to compile against 5.12)

Offline

#3 2021-05-25 14:51:32

BHReach
Member
Registered: 2008-12-28
Posts: 21

Re: [Solved] Problem with rtl8812au wifi driver.

seth wrote:

https://aur.archlinux.org/packages/rtl8812au-dkms-git/ ?
5.9.3.2.r8.gb95e750 is the firmware version.

You need https://github.com/gordboy/rtl8812au-5. … 708fca2cd4 what means you need to update the package (dkms only aligns to new kernels, but you need an updated version of rtl8812au to compile against 5.12)

Thanks for the info.

The problem was that I was running kernel 5.12.3 but the source for 5.12.6 was installed. I don't update the system that often so there are a lot of updates and I must have missed the kernel update. BTW, it would be very helpful if at the end of an update, there is a message to reboot if necessary.

The 1st link you gave me is out of date. I already had that package version installed which delayed me from reinstalling until I tried many other things. The latest package is rtl8812au-dkms-git 5.9.3.2.r10.g6ef5d8f-1.

I had to reboot to get the 5.12.6 kernel running. I compiled the package source from rtl8812au-dkms-git and that installed the correct package. Almost everything seems OK now.

I tried running

# dkms autoinstall
Error! Could not locate dkms.conf file.
File: /var/lib/dkms/rtl8812au/5.9.3.2.r8.gb95e750/source/dkms.conf does not exist.

It looks like it is trying to find dkms.conf for the old package instead of the newly installed one.

# dkms status
rtl8812au, 5.9.3.2.r10.g6ef5d8f, 5.12.6-arch1-1, x86_64: installed
rtl8812au, 5.9.3.2.r8.gb95e750: added
vboxhost, 6.1.22_OSE, 5.12.6-arch1-1, x86_64: installed

# pacman -Qs rtl8812au
local/rtl8812au-dkms-git 5.9.3.2.r10.g6ef5d8f-1
    rtl8812AU chipset driver with firmware v5.9.3.2

The old pkg is no longer installed but some remnants of it remain.

# dkms remove -m rtl8812au -v 5.9.3.2.r8.gb95e750 --all

That removed the old package completely.

# dkms status
rtl8812au, 5.9.3.2.r10.g6ef5d8f, 5.12.6-arch1-1, x86_64: installed
vboxhost, 6.1.22_OSE, 5.12.6-arch1-1, x86_64: installed

Now dkms autoinstall gives no error message.

Last edited by BHReach (2021-05-25 14:52:48)

Offline

Board footer

Powered by FluxBB