However, when installing the wireguard I get the following message:
Building for 4.14.69-bpi-r2-main, 4.15.0-34-generic and 4.4.70-BPI-R2-Kernel
Module build for kernel 4.14.69-bpi-r2-main was skipped since the kernel headers for this kernel does not seem to be installed.
And my question is how can I get the headers on the kernel? I’ve tried a few variants while compiling, but none seems to work.
So, I had to create a symlink to build too instead of just source so that wireguard would stop throwing that error while installing (from the message before) .
But now, I got the following:
ERROR (dkms apport): kernel package linux-headers-4.14.69-bpi-r2-main is not supported
Error! Bad return status for module build on kernel: 4.14.69-bpi-r2-main (armv7l)
Consult /var/lib/dkms/wireguard/0.0.20180910/build/make.log for more information.
The contents for that file are attached.wireguard.log (2.6 KB)
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.
Try to run build.sh importconfig before running wireguard-buildscript
Note that I’m not compiling the kernel on the BPI-R2. Could that be the reason for be failing?
Yeah, after compiling everything on the BPI and then creating the symlink, Wireguard was able to install without error. However, it is still failing (not loading anything) and I’m still investigating…
That’s the only error I’m seeing for now.
root@bpi-iot-ros-ai:/stuff/BPI-R2-4.14# ip link add dev wg0 type wireguard
RTNETLINK answers: Operation not supported
I don’t get payed for it. I’ve got one of my 2 r2 boards for free and maybe an r64/mt7615-module. Most things i do is to get my r2 running as well as i can and simply share my work.
Installing wireguard-dkms from the backports fails due to missing kernel headers:
Loading new wireguard-1.0.20210219 DKMS files...
It is likely that 5.10.0-bpi-r64-main belongs to a chroot's host
Building for 5.10.0-0.bpo.8-cloud-arm64 and 5.10.0-bpi-r64-main
Module build for kernel 5.10.0-0.bpo.8-cloud-arm64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Module build for kernel 5.10.0-bpi-r64-main was skipped since the
kernel headers for this kernel does not seem to be installed.
I’ve cloned the BPI-R2-4.14 repo, switched to the 5.10-main branch with the CONFIG_WIREGUARD=m setting, switched to board=bpi-r64 in the build.config and compiled it.