Installing Rtl8812bu chipset drivers for Fedora 31: kernel headers not found

Heyo everyone!
I’m looking for some advice or guidance. I know this topic is similar to some already on the site, as I’ve read them, but I’ve been unable to get my wifi dongle operational. The device is fine, I’m using it right now to borrow my wired connection for the laptop I’m trying to install drivers on. I simply cannot find any info for fedora 31. I thought I was on the the right track with cilynx’s git repo, but when I try to run the build or install commands I get the following message: “Your kernel header for kernel 5.3.7-301.fc31.x86_64 cannot be found at /lib/modules/5.3.7-301.fc31.x86_64/build or /lib/modules/5.3.7-301.fc31.x86_64/source”

I’ve hit a wall with what I can find, so any help is greatly appreciated.

Current version of K-headers is 5.4.7.
Of course it can’t find the 5.3.7.

dnf info kernel-headers

Last metadata expiration check: 0:05:16 ago on Tue 04 Feb 2020 04:28:59 PM +07.
Installed Packages
Name         : kernel-headers
Version      : 5.4.7
Release      : 200.fc31
Architecture : x86_64
Size         : 4.8 M
Source       : kernel-headers-5.4.7-200.fc31.src.rpm
Repository   : @System
From repo    : updates
Summary      : Header files for the Linux kernel for
             : use by glibc
URL          : http://www.kernel.org/
License      : GPLv2
Description  : Kernel-headers includes the C header
             : files that specify the interface
             : between the Linux kernel and userspace
             : libraries and programs.  The header
             : files define structures and constants
             : that are needed for building most
             : standard programs and are also needed
             : for rebuilding the glibc package.

AUR (Arch User Repository)
DISCLAIMER: AUR packages are user produced content.  Any use of the provided files is at your own risk.
Arch User Repository (AUR): page with RinCat’s rtl88x2bu-dkms-git package

Try this:

dnf install kernel-devel

git clone https://github.com/RinCat/RTL88x2BU-Linux-Driver.git

cd RTL88x2BU-Linux-Driver/

make

sudo make install

Test it, please (i’d tested that it’s compiles, but can’t test the driver’s work, as i’ve no such device)!

Well so far, it seems to be working! I had another error about kernel headers 5.3.7, then thought to check what version I was running. I’d apparently neglected to reboot after updates (In my defense, I was tired and frustrated last night). Once I did, the drivers compiled and installed and they appear to be working. Thanks so much for the response!

Don’t forget that dkms drivers must be recompiled after the every Kernel update!

1 Like

I wont! Thanks again!