morrownr / 88x2bu

Linux Driver for USB WiFi Adapters that are based on the RTL8812BU and RTL8822BU Chipsets
435 stars 73 forks source link

rtl8812bu Compiling error #2

Closed Nordlendingen closed 3 years ago

Nordlendingen commented 3 years ago

kali:~/Downloads/88x2bu-master$ uname -r 5.8.0-kali1-amd64

kali:~/Downloads/88x2bu-master$ uname -v

1 SMP Debian 5.8.7-1kali1 (2020-09-14)

kali:~/Downloads/88x2bu-master$ sudo ./dkms-install.sh Copying driver to: /usr/src/88x2bu-5.8.7.2 Error! DKMS tree already contains: 88x2bu-5.8.7.2 You cannot add the same module/version combo more than once.

Kernel preparation unnecessary for this kernel. Skipping...

Building module: cleaning build area... 'make' all KVER=5.8.0-kali1-amd64 -j3...(bad exit status: 2) Error! Bad return status for module build on kernel: 5.8.0-kali1-amd64 (x86_64) Consult /var/lib/dkms/88x2bu/5.8.7.2/build/make.log for more information.

Kernel preparation unnecessary for this kernel. Skipping...

Building module: cleaning build area... 'make' all KVER=5.8.0-kali1-amd64 -j3...(bad exit status: 2) Error! Bad return status for module build on kernel: 5.8.0-kali1-amd64 (x86_64) Consult /var/lib/dkms/88x2bu/5.8.7.2/build/make.log for more information. An error occurred while running dkms-install.sh.

Bus 001 Device 003: ID 2357:0115 TP-Link Archer T4U ver.3

error when compiling the driver. is there because im running kernel 5.8?

morrownr commented 3 years ago

This driver should be good with kernel 5.8. I have been testing it with the Ubuntu 20.10 daily builds (kernel 5.8). I have Kali installed on a test system so I will take a look later this morning.

morrownr commented 3 years ago

Test on Kali complete. Result: Successful. Details: I started the test by updating the system. Then I rebooted. I then ran "sudo ./dkms-remove.sh" to remove any driver I had installed previously. Then i rebooted again. Then I ran "sudo ./dkms-install.sh" to install the driver as it currently is in my repo. Then I rebooted again and everything worked.

In the information you provided, I see the following:

"Error! DKMS tree already contains: 88x2bu-5.8.7.2 You cannot add the same module/version combo more than once."

I suspect the failure to install was because you already had a version of the driver installed. Recommend you step through the process as I outlined above. Regards.

Nordlendingen commented 3 years ago

I tried now with a fresh installation of kali linux. still running kernel 5.8 .. and i still have trouble to get it to install properly. i did a full update and a full distro upgrade as well. and a normal upgrade. i checked and dkms is installed. im running linux on VBOX

make.log

morrownr commented 3 years ago

Something must be missing from the build environment. With Ubuntu, Mint and others based on Ubuntu if you install dkms, everything needed for the build environment is installed. Kali is different. Did you install the kernel header files?

nickpitlosh commented 3 years ago

bc is not installed according to the make log.