Jump to content

Inclusion of Wireguard


Recommended Posts

Can you include the wireguard module in the kernel, please?

 

It's missing from Armbian 23.05.0-trunk Bullseye with Linux 5.4.239-odroidxu4. This is a required module for the Openmediavault Wireguard Plugin to install correctly (using OMV 6.4.9-1 (Shaitan))

 

However I'm told that omv 6 requires Debian 11 Bullseye so, if there's an existing Armbian build with it, can you let me know, please?

Link to comment
Share on other sites

I think I have a very similar issue. Unable to get Wireguard running on an odroid hc2.

Trying to install wireguard-dkms yields to the following output (After pinning debian 11 debs):

user@device:~$ sudo apt install wireguard-dkms --reinstall
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 255 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main armhf wireguard-dkms all 1.0.20210219-1 [255 kB]
Fetched 255 kB in 0s (2,296 kB/s)  
(Reading database ... 68021 files and directories currently installed.)
Preparing to unpack .../wireguard-dkms_1.0.20210219-1_all.deb ...
Deleting module wireguard-1.0.20210219 completely from the DKMS tree.
Unpacking wireguard-dkms (1.0.20210219-1) over (1.0.20210219-1) ...
Setting up wireguard-dkms (1.0.20210219-1) ...
Loading new wireguard-1.0.20210219 DKMS files...
Building for 5.4.243-odroidxu4 6.1.0-10-rt-armmp
Module build for kernel 5.4.243-odroidxu4 was skipped since the
kernel headers for this kernel do not seem to be installed.
Module build for kernel 6.1.0-10-rt-armmp was skipped since the
kernel headers for this kernel do not seem to be installed.

 

The reason why it is unable to build the module seems to be a mismatch between the linux image and linux headers:

user@device:~$ sudo apt install linux-image-current-odroidxu4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-image-current-odroidxu4 is already the newest version (23.05.1--Sf984-Db165-P49bd-C3969H6842-HK01ba-V014b-B9c18).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

user@device:~$ sudo apt install linux-headers-current-odroidxu4
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-current-odroidxu4 is already the newest version (23.02.2).

user@device:~$ uname -a
Linux device 5.4.243-odroidxu4 #1 SMP PREEMPT Mon May 22 13:57:29 UTC 2023 armv7l GNU/Linux

 

Any idea how to fix this?

Edited by kbch
Link to comment
Share on other sites

Try using the armbian build script to configure the Linux kernel the way you need it. One of the kernel configurations is "Add wireguard"

 

Here are general instructions on how to recompile the kernel and rebuild the OS image in your PC

https://github.com/robertojguerra/orangepi-zero-full-setup/blob/main/README2.md

 

From the wireguard website: https://www.wireguard.com/compilation/

 

In the linux menuconfig, find:

[*] Networking support --> Networking options --> [*] TCP/IP networking [*] IP: WireGuard secure network tunnel [ ] Debugging checks and verbose messages

And select "M" for kernel module

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines