Page 1 of 1

RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 11:47 am
by siamhie
This is more of a heads-up than an issue as I will explain.


The current driver that is in the repos was built using aircrack-ng's code but they haven't updated it for awhile and it won't build against kernel 5.15 without a patch provided in the issues section of their GitHub page.


Morrownr however has picked up the slack and provides a driver that will work up to kernel 5.17 without the need of any patches.

If you plan on upgrading your kernel past 5.14 and use this wifi driver, I suggest you do the following.


First, download morrownr's driver here.

https://github.com/morrownr/8814au


Now remove the current driver rtl8814au-dkms [5.8.5.1-1~mx21+1] from the repos.

Change to the directory that you downloaded the 8814au-main.zip file and extract it.

Change into the 8814au-main directory and run "sudo ./install.sh" (pretty straight forward).

Code: Select all

Building module:
cleaning build area...
make -j16 KERNELRELEASE=5.17.0-2.3-liquorix-amd64 KVER=5.17.0-2.3-liquorix-amd64...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.17.0-2.3-liquorix-amd64 (x86_64)
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j16 KVER=5.17.0-2.3-liquorix-amd64 KSRC=/lib/modules/5.17.0-2.3-liquorix-amd64/build....
cleaning build area...

DKMS: build completed.

8814au.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.17.0-2.3-liquorix-amd64/kernel/drivers/net/wireless/

depmod...

DKMS: install completed.
Reboot into your new kernel when done.

Code: Select all

siamhie@mxflux:~
$ inxi -nS
System:    Host: mxflux Kernel: 5.17.0-2.3-liquorix-amd64 x86_64 bits: 64 Desktop: Fluxbox 1.3.7 
           Distro: MX-21.1_fluxbox_x64 Wildflower Oct 20  2021 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: eth0 state: down mac: d8:bb:c1:44:16:b9 
           Device-2: NetGear Nighthawk A7000 802.11ac Wireless Adapter AC1900 [Realtek 8814AU] 
           type: USB driver: rtl8814au 
           IF: wlan0 state: up mac: 8c:3b:ad:22:90:fc

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 12:05 pm
by Adrian
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
That might provide more info... however if the driver is not tested on newer kernels it might take some time for whoever release the driver to catch up and fix the issues. That's one of the problems with out-of-kernel drivers and proprietary hardware.

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 12:18 pm
by dolphin_oracle
I think we have updated driver in Ahs repo.

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 12:33 pm
by timkb4cq
The updated driver in AHS [5.8.5.1-1~mx21+2] has support for 5.15 & 5.16 but it looks like morrownr had to patch it again for 5.17.
Looks like another AHS update is needed...

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 12:37 pm
by siamhie
Adrian wrote: Thu Apr 14, 2022 12:05 pm
Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information.
That might provide more info... however if the driver is not tested on newer kernels it might take some time for whoever release the driver to catch up and fix the issues. That's one of the problems with out-of-kernel drivers and proprietary hardware.
I'm not running any Broadcom devices. I just happen to still have the firmware installed which I suspect the 8814 driver installation picked up on.

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 12:43 pm
by siamhie
dolphin_oracle wrote: Thu Apr 14, 2022 12:18 pm I think we have updated driver in Ahs repo.
I'll take a look. I've been following morrownr's GitHub page for several months now as to the status of the 8814 driver and they are in need of a newer source code.

Code: Select all

All-Points Bulletin

I need your help. We need to find a newer version of the source code for this driver. While working on source code for other recently available drivers I have noticed 
indications that Realtek is still working on this 8814au driver. I have not been able to locate a newer version that is available. This driver is v5.8.5.1 dated 20191029. 
It is getting hard to maintain and has many problems. The newer drivers that I have been able to bring online are for the 8812au, 8811au and 8812bu chipsets and they are 
the best Realtek drivers I have seen, even if they are out-of-kernel and based on the wrong technology. If we can find a driver for the 8814au that is up to date then we 
can make better use of our 8814au adapters. The newer drivers have version numbers of 5.12.x and 5.13.x so please search all locations that might have a new version 
available. Ask retailers. Please help.

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 12:48 pm
by siamhie
timkb4cq wrote: Thu Apr 14, 2022 12:33 pm The updated driver in AHS [5.8.5.1-1~mx21+1] has support for 5.15 & 5.16 but it looks like morrownr had to patch it again for 5.17.
Looks like another AHS update is needed...
Thanks @timkb4cq for pointing this out.


I really appreciate you guys for including this driver in the MX21 release (kudos to @SwampRabbit for getting it started). MX is the ONLY distribution that has this driver OOTB. :number1:

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 3:02 pm
by timkb4cq
rtl8814au-dkms_5.8.5.1-1~mx21+3 is now available in the MX-21 Test repo
I cherry-picked the 5.17 support patch from morrownr to apply to our aircrack-ng based package (We previously had trouble building a working package from his tree although installing from terminal always worked).
But I don't have an rtl8814au chipset device to test it with.
Mind giving it a try @slamhie?

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 3:07 pm
by siamhie
timkb4cq wrote: Thu Apr 14, 2022 3:02 pm rtl8814au-dkms_5.8.5.1-1~mx21+3 is now available in the MX-21 Test repo
I cherry-picked the 5.17 support patch from morrownr to apply to our aircrack-ng based package (We previously had trouble building a working package from his tree although installing from terminal always worked).
But I don't have an rtl8814au chipset device to test it with.
Mind giving it a try @slamhie?
Sure thing @timkb4cq . I'll get back to you with my results.

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 3:23 pm
by siamhie
@timkb4cq

Even tho +3 shows in the repo

Image

it tries to install +1 instead

Image

which obviously fails

Image


I did run sudo apt update prior to opening MXPI.

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 3:42 pm
by timkb4cq
The files are clearly there.
http://la.mxrepo.com/mx/testrepo/pool/test/r/rtl8814au/
But I notice the clock in your second photo is at 12:12:41
The la.mxrepo.com mirror updated at 15 minutes past the hour. You were 3 minutes too early @slamhie :smiley2:

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 4:26 pm
by Stevo
The same issue is found with the rtl8812au-dkms package in our repos. I have the patched source from a PPA that maintains these for Ubuntu, http://ppa.launchpad.net/kelebek333/kab ... ol/main/r/ along with a great many other Realtek wi-fi drivers. I'm making new packages now.

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 9:41 pm
by siamhie
timkb4cq wrote: Thu Apr 14, 2022 3:42 pm The files are clearly there.
http://la.mxrepo.com/mx/testrepo/pool/test/r/rtl8814au/
But I notice the clock in your second photo is at 12:12:41
The la.mxrepo.com mirror updated at 15 minutes past the hour. You were 3 minutes too early @slamhie :smiley2:
@timkb4cq DOH!!! I did manage to download the +3 deb package (manually) just now but it errored. I've reinstalled morrownr's driver from GitHub in the meantime.

*edit
re-uploaded a better image. Postimage seems to have problems with large image files (+3MB in size)

Image

Re: RTL8814 driver won't build against kernel 5.15 and above

Posted: Thu Apr 14, 2022 9:53 pm
by siamhie
Stevo wrote: Thu Apr 14, 2022 4:26 pm The same issue is found with the rtl8812au-dkms package in our repos. I have the patched source from a PPA that maintains these for Ubuntu, http://ppa.launchpad.net/kelebek333/kab ... ol/main/r/ along with a great many other Realtek wi-fi drivers. I'm making new packages now.
I'm thinking of moving away from Realtek chipsets and go with Intel based instead.