Missing kernel modules tree

The actual problem :
I have a huion tablet (2020 Kamvas 22), and everything works, except for it maps the tablet area across all screens, the usual shortcut (meta ctrl number) didn’t work to remap it to a screen and the graphic tablet settings dont do anything either. So following this redit post i tried using the newset drivers possible https://www.reddit.com/r/huion/comments/hiz1u6/my_experience_with_the_kamvas_13_2020_on_linux/

But when I tried to install the git version of this driver :
AUR (en) - digimend-kernel-drivers-dkms-git / GitHub - DIGImend/digimend-kernel-drivers: DIGImend graphics tablet drivers for the Linux kernel

it either failed on Missing kernel modules tree or make[1]: *** No rule to make target 'modules'.. I do have the linux-headers installed for my kernel (I did restart after installing the linux510 headers)

pacman -Q | grep headers
linux-api-headers 5.8-1
linux510-headers 5.10.7-3

I am not sure what I am doing wrong …

Make sure you are really running kernel 5.10.

Try

sudo pacman -Syu dkms base-devel --needed
1 Like

Kernel should be correct

uname -r
5.10.2-2-MANJARO

It tries to install them for 5.4 as well … ?

This time it ran better ?
makepkg -scri                        
==> Making package: digimend-kernel-drivers-dkms-git 10.r0.gec5c16d-1 (Sa 23 Jan 2021 18:49:00 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
 -> Updating digimend-kernel-drivers git repo...
Fetching origin
==> Validating source files with md5sums...
digimend-kernel-drivers ... Skipped
==> Extracting sources...
 -> Creating working copy of digimend-kernel-drivers git repo...
Cloning into 'digimend-kernel-drivers'...
done.
==> Starting pkgver()...
==> WARNING: A package has already been built, installing existing package...
==> Installing package digimend-kernel-drivers-dkms-git with pacman -U...
loading packages...
warning: digimend-kernel-drivers-dkms-git-10.r0.gec5c16d-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) digimend-kernel-drivers-dkms-git-10.r0.gec5c16d-1

Total Installed Size:  0,19 MiB
Net Upgrade Size:      0,00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                        [#######################################] 100%
(1/1) checking package integrity                                      [#######################################] 100%
(1/1) loading package files                                           [#######################################] 100%
(1/1) checking for file conflicts                                     [#######################################] 100%
(1/1) checking available disk space                                   [#######################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod -m digimend-kernel-drivers -v 10.r0.gec5c16d -k 5.10.7-3-MANJARO
==> Unable to remove module digimend-kernel-drivers/10.r0.gec5c16d for kernel 5.4.89-1-MANJARO: Not found in dkms st
atus output.
:: Processing package changes...
(1/1) reinstalling digimend-kernel-drivers-dkms-git                   [#######################################] 100%
:: Running post-transaction hooks...
(1/3) Reloading device manager configuration...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Install DKMS modules
==> dkms install --no-depmod -m digimend-kernel-drivers -v 10.r0.gec5c16d -k 5.10.7-3-MANJARO
==> depmod 5.10.7-3-MANJARO
==> Unable to install module digimend-kernel-drivers/10.r0.gec5c16d for kernel 5.4.89-1-MANJARO: Missing kernel head
ers.
==> Cleaning up...

The dkms alpm hook will try to install the module for all kernel version available, so you should install the headers for all installed kernel versions to avoid build failures.

I am not sure how to install multiple versions, running sudo pacman -S linux-header just reinstalls them

sudo pacman -Syu linux54-headers linux510-headers, etc. If you use a metapackage, like linux-latest, etc., then use linux-latest-headers.

2 Likes

Or

sudo pacman -S $(ls /boot | awk -F "-" '/^linux/ { print $1"-headers" }')

This should cover all needed headers.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.