I've built the Ubuntu 18.04 image with legacy kernel (4.4) and tried to install wireguard.
The problem was the kernel module which seems to be build by dkms.
I've installed kernel headers from the linux-headers-rk3328_5.44_arm64.deb (built by armbian's build procedure) and tried to install wireguard-dkms package.
It fails:
Unpacking wireguard-dkms (0.0.20180513-wg1~bionic) over (0.0.20180513-wg1~bionic) ...
Setting up wireguard-dkms (0.0.20180513-wg1~bionic) ...
Loading new wireguard-0.0.20180513 DKMS files...
Building for 4.4.131-rk3328
Building initial module for 4.4.131-rk3328
Error! Bad return status for module build on kernel: 4.4.131-rk3328 (aarch64)
Consult /var/lib/dkms/wireguard/0.0.20180513/build/make.log for more information.
The content of make.log
DKMS make.log for wireguard-0.0.20180513 for kernel 4.4.131-rk3328 (aarch64)
Thu May 17 21:24:11 UTC 2018
make: Entering directory '/usr/src/linux-headers-4.4.131-rk3328'
Makefile:643: arch//Makefile: No such file or directory
make: *** No rule to make target 'arch//Makefile'. Stop.
make: Leaving directory '/usr/src/linux-headers-4.4.131-rk3328'
The line 643 is
include arch/$(SRCARCH)/Makefile
so SRCARCH is not set for some reason. Any suggestions how to fix it?
Also I've tired to build wireguard module manually with dkms and/or from source. In both cases it fails because of absent scripts/recordmcount.
I've tried to build that stuff with 'make scripts' in the /usr/src/linux-headers-4.4.131-rk3328 and this fails too:
HOSTCC scripts/selinux/genheaders/genheaders
scripts/selinux/genheaders/genheaders.c:13:10: fatal error: classmap.h: No such file or directory
#include "classmap.h"
This classmap.h exists in the kernel source tree, but was not included into kernel-headers deb. Do I need to fix something in kernel makefiles?
Question
divis1969
Hi,
I've built the Ubuntu 18.04 image with legacy kernel (4.4) and tried to install wireguard.
The problem was the kernel module which seems to be build by dkms.
I've installed kernel headers from the linux-headers-rk3328_5.44_arm64.deb (built by armbian's build procedure) and tried to install wireguard-dkms package.
It fails:
The content of make.log
The line 643 is
include arch/$(SRCARCH)/Makefile
so SRCARCH is not set for some reason. Any suggestions how to fix it?
Also I've tired to build wireguard module manually with dkms and/or from source. In both cases it fails because of absent scripts/recordmcount.
I've tried to build that stuff with 'make scripts' in the /usr/src/linux-headers-4.4.131-rk3328 and this fails too:
This classmap.h exists in the kernel source tree, but was not included into kernel-headers deb. Do I need to fix something in kernel makefiles?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts