Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dkms build error: 10 #145

Open
vernazza opened this issue Jul 2, 2024 · 1 comment
Open

dkms build error: 10 #145

vernazza opened this issue Jul 2, 2024 · 1 comment

Comments

@vernazza
Copy link

vernazza commented Jul 2, 2024

Hi, I have a Raspberry 2B with Raspian 12.
My wifi adapter is TP-Link AC600 wireless Realtek RTL8811AU [Archer T2U Nano]
And I'm getting error while compiling.
This is the data:

$ sudo ./install-driver.sh
: ---------------------------
: install-driver.sh v20240314
: armv7l (kernel architecture)
: arm (architecture to send to gcc)
: 2/4 (in-use/total processing units)
: 943040 (total system memory)
: 6.6.35-v7+ (kernel version)
: gcc (version of gcc used to compile the kernel)
: gcc (Raspbian 12.2.0-14+rpi1) 12.2.0
: dkms-3.0.10
: mokutil not installed (Secure Boot status unknown)
: ---------------------------

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

Starting installation.
Installing 8821au.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8821au-5.12.5.2
Creating symlink /var/lib/dkms/rtl8821au/5.12.5.2/source -> /usr/src/rtl8821au-5.12.5.2
The driver was added to dkms successfully.
: ---------------------------

Sign command: /lib/modules/6.6.35-v7+/build/scripts/sign-file
Binary /lib/modules/6.6.35-v7+/build/scripts/sign-file not found, modules won't be signed

Building module:
Cleaning build area...
kernelver=6.6.35-v7+ ./dkms-make.sh......(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.35-v7+ (armv7l)
Consult /var/lib/dkms/rtl8821au/5.12.5.2/build/make.log for more information.
An error occurred. dkms build error: 10
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

$ gcc --version
gcc (Raspbian 12.2.0-14+rpi1) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ sudo uname -mr; mokutil --sb-state; lsusb; rfkill list all; dkms status; iw dev; iw reg get6.6.35-v7+ armv7l
EFI variables are not supported on this system
Bus 001 Device 004: ID 2357:011e TP-Link AC600 wireless Realtek RTL8811AU [Archer T2U Nano]
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
rtl8821au/5.12.5.2: added
global
country IT: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 13), (N/A)
(5945 - 6425 @ 160), (N/A, 23), (N/A), NO-OUTDOOR
(57000 - 66000 @ 2160), (N/A, 40), (N/A)

@morrownr
Copy link
Owner

morrownr commented Jul 3, 2024

Hi @vernazza

The problem is not obvious. Let's try some things. First, let's clean out anything from the installation script:

$ sudo sh remove-driver.sh

Then let's do a manual installation to see what we can see:

$ make clean
$ make
$ sudo make install
$ sudo reboot

If make blows up, paste what you see on the screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants