morrownr / rtl8852bu

Linux Driver for USB WiFi Adapters that are based on the RTL8832BU and RTL8852BU Chipsets - v1.19.3 - 20230505
Other
81 stars 13 forks source link

dkms error code 1 while installation #16

Closed arunkvijay closed 7 months ago

arunkvijay commented 7 months ago

I get following dkms build error: 1 while installing the driver.

: ---------------------------
: install-driver.sh v20231115
: x86_64 (kernel architecture)
: x86_64 (architecture to send to gcc)
: 20/20 (in-use/total processing units)
: 32625836 (total system memory)
: 6.1.0-16-amd64 (kernel version)
: gcc-12 (version of gcc used to compile the kernel)
: gcc (Debian 12.2.0-14) 12.2.0
: /usr/sbin/dkms.mx --version
dkms-3.0.10
: SecureBoot disabled
: ---------------------------

Checking for previously installed drivers...
Finished checking for and removing previously installed drivers.
: ---------------------------

Starting installation.
Installing 88x2bu.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl88x2bu-5.13.1
/usr/sbin/dkms.mx add -m rtl88x2bu -v 5.13.1 -k 6.1.0-16-amd64/x86_64 -c /usr/src/rtl88x2bu-5.13.1/dkms.conf
Creating symlink /var/lib/dkms/rtl88x2bu/5.13.1/source -> /usr/src/rtl88x2bu-5.13.1
The driver was added to dkms successfully.
: ---------------------------

/usr/sbin/dkms.mx build -m rtl88x2bu -v 5.13.1 -k 6.1.0-16-amd64/x86_64 -c /usr/src/rtl88x2bu-5.13.1/dkms.conf --force -k 6.1.0-13-amd64 -k 6.1.0-15-amd64 -k 6.1.0-16-amd64 -a x86_64
Error!  If more than one arch is specified on the command line, then there
must be an equal number of kernel versions also specified (1:1 relationship).
An error occurred. dkms build error:  1
Please report this error.
Please copy all screen output and paste it into the problem report.
Run the following before reattempting installation.
$ sudo ./remove-driver.sh

How do I get this corrected and complete the installation. btw the dkms status now show the following output

$ dkms status
/usr/sbin/dkms.mx status
broadcom-sta/6.30.223.271, 6.1.0-13-amd64, x86_64: installed
broadcom-sta/6.30.223.271, 6.1.0-15-amd64, x86_64: installed
broadcom-sta/6.30.223.271, 6.1.0-16-amd64, x86_64: installed
nvidia-current/525.147.05, 6.1.0-13-amd64, x86_64: installed
nvidia-current/525.147.05, 6.1.0-15-amd64, x86_64: installed
nvidia-current/525.147.05, 6.1.0-16-amd64, x86_64: installed
rtl88x2bu/5.13.1: added
morrownr commented 7 months ago

Hi @arunkvijay

Let's check to see if it is a problem with dkms (do the commands in the driver directory):

$ sudo sh remove-driver.sh $ make clean $ make -j20 $ sudo make install $ sudo reboot

Let me know what happens.

P.S. Based on what you posted, something seems off with your installation of dkms.

@morrownr

arunkvijay commented 7 months ago

Hi @morrownr , This worked well. Thank you so much. Closing the issue now

morrownr commented 7 months ago

You are welcome. That means the problem has something to do with dkms...which is unusual. A fix will have to come from your distro.

With the driver installed in this manner, there is no automatic recompiling when a new kernel arrives so before you do update/upgrades, you should do the following:

$ git pull

Then after the upgrade, if it includes a new kernel, run the above sequence again:

$ make clean $ make -j20 $ sudo make install $ sudo reboot