Open test2a opened 4 years ago
I'm on Fedora, and I had a lot better luck using DKMS instead of manually accessing Make myself. (Ubuntu has this, too.)
Try something like the following:
sudo apt install dkms
sudo git clone https://github.com/jlam55555/veikk-linux-driver.git /usr/src/input-veikk-git
sudoedit /usr/src/input-veikk-git/dkms.conf
PACKAGE_NAME="input-veikk"
PACKAGE_VERSION="git"
BUILT_MODULE_NAME[0]="veikk"
DEST_MODULE_LOCATION[0]="/extra/"
AUTOINSTALL="yes"
sudo dkms install input-veikk/git
This worked for me, and unlike using make
yourself, you don't have to re-do it every single kernel update.
(Also, don't run sudo make
; that'll create a bunch of root-owned files in your home folder. If you're going to run make
, run it as your user; save sudo
for make install
. But don't do that, either, if you're using dkms. In fact, you should run sudo make uninstall
from within your current copy of the code, before setting up dkms.)
@JamesTheAwesomeDude following your instructions on fedora 33 I get the following console output:
Creating symlink /var/lib/dkms/input-veikk/git/source ->
/usr/src/input-veikk-git
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j6 KERNELRELEASE=5.9.8-200.fc33.x86_64 -C /lib/modules/5.9.8-200.fc33.x86_64/build M=/var/lib/dkms/input-veikk/git/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.9.8-200.fc33.x86_64 (x86_64)
Consult /var/lib/dkms/input-veikk/git/build/make.log for more information.
and the following in make.log:
Sat 21 Nov 22:46:28 CET 2020
make: Entering directory '/usr/src/kernels/5.9.8-200.fc33.x86_64'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
make: *** [Makefile:719: include/config/auto.conf] Error 1
make: Leaving directory '/usr/src/kernels/5.9.8-200.fc33.x86_64'```
help would be greatly appreciated (using tablet VEIKK s640)
include/generated/autoconf.h or include/config/auto.conf are missing.
@SnoopTheDog Try
kernel-devel kernel-header
done, no difference. Updated output:
[snoopie@localhost veikk-linux-driver]$ make
make -C /lib/modules/5.9.10-200.fc33.x86_64/build M=/home/snoopie/veikk-linux-driver modules
make[1]: Entering directory '/usr/src/kernels/5.9.10-200.fc33.x86_64'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
make[1]: *** [Makefile:719: include/config/auto.conf] Error 1
make[1]: Leaving directory '/usr/src/kernels/5.9.10-200.fc33.x86_64'
make: *** [Makefile:8: all] Error 2
@SnoopTheDog Are you certain you've installed kernel-devel
and since rebooted?
What is the output of the following?
find /usr/src -name autoconf.h -o -name auto.conf -exec rpm -qf {} \;
Output:
[snoopie@localhost Downloads]$ find /usr/src -name autoconf.h -o -name auto.conf -exec rpm -qf {} \;
kernel-devel-5.9.8-200.fc33.x86_64
kernel-devel-5.9.10-200.fc33.x86_64
Also output of dnf install kernel-devel
[snoopie@localhost Downloads]$ dnf install kernel-devel
Error: This command has to be run with superuser privileges (under the root user on most systems).
[snoopie@localhost Downloads]$ sudo dnf install kernel-devel
[sudo] password for snoopie:
Last metadata expiration check: 0:48:54 ago on Mon 30 Nov 2020 22:15:51 CET.
Package kernel-devel-5.9.8-200.fc33.x86_64 is already installed.
Package kernel-devel-5.9.10-200.fc33.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
@SnoopTheDog You shouldn't hijack someone else issue, you aren't even on ubuntu. Their issue is that they have a whitespace in their path.
make -C /lib/modules/4.15.0-112-generic/build M=/home/user/Downloads/lo/
Macro Solution/veikk-linux-driver-2.0 modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-112-generic'
/bin/sh: 1: cannot create /home/user/Downloads/lo/
Macro/.cache.mk: Directory nonexistent
Not sure on your issue
sudo make make -C /lib/modules/4.15.0-112-generic/build M=/home/user/Downloads/lo/Macro Solution/veikk-linux-driver-2.0 modules make[1]: Entering directory '/usr/src/linux-headers-4.15.0-112-generic' /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent arch/x86/Makefile:157: CONFIG_X86_X32 enabled but no binutils support /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent /bin/sh: 1: cannot create /home/user/Downloads/lo/Macro/.cache.mk: Directory nonexistent make[1]: No rule to make target 'Solution/veikk-linux-driver-2.0'. Stop. make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-112-generic' make: [Makefile:8: all] Error 2