1 1
tpanum

Installation of Wireguard

Recommended Posts

Hello,

 

I have been struggling with this for a while, found some replies on the other communities but I simply cannot get Wireguard up and running on my Odroid HC2 with Armbian.

 

Running...

echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable-wireguard.list
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
apt update
apt install -y linux-headers-odroidxu4 wireguard

yields...

 

Loading new wireguard-0.0.20181218 DKMS files...
dpkg: warning: version '3.10.106-odroidxu4
4.19.14' has bad syntax: invalid character in revision number
Building for 4.19.14-odroidxu4
Module build for kernel 4.19.14-odroidxu4 was skipped since the
kernel headers for this kernel does not seem to be installed.

 

Do I really need to compile Wireguard from source? :-(

Share this post


Link to post
Share on other sites

Sorry, I did it on a Armbian/Ubuntu on Nanopi Neo 2, so your specifics will vary.  Hopefully the following will still work:

 

First, you're going to need the kernel headers, so (for my specific version/device):

apt install linux-headers-4.14.70-sunxi64

In my case, this brings in headers for *every* arch, and the current wireguard install doesn't like this, so:

cd /usr/src/linux-headers-4.14.70-sunxi64/
mkdir unusedArch
cd arch
sudo mv * ../unusedArch/
cd ../unusedArch/
mv arm64/* ../arch/
add-apt-repository ppa:wireguard/wireguard
apt update
apt install wireguard  wireguard-tools wireguard-dkms

Hope it helps.

Share this post


Link to post
Share on other sites

I don't know why, but I had similar issues with wireguard on cubietruck and on opi pc.

It was mostly a matter of headers in my case. Even with armbian config I was not able to install the headers some times and on other occasions DKMS was not able to install wireguard.

My workarounds are:

1. check manually apt (eg apt-cache search linux-headers-xxxx) for the correct header package (stable or next or whatever) for your board and kernel from armbian repo  and manually install them. Then try to install wireguard with dkms.

2. If this does not work, install the headers, get the source of wireguard (check the wireguard webpage for manual installation) make & and make install and this should work even if you encounter erros during make. This is really trivial, just two commands as root!!

Share this post


Link to post
Share on other sites

Hi, 

I'm thinking about getting a HC2, but I would like to be sure if Wireguard is supported on Odroid. Did you manage to make it work? 

I run Armbian on a NEO2 and Wireguard works perfectly. 

Thanks! 

Share this post


Link to post
Share on other sites
18 minutes ago, gurabli said:

Hi, 

I'm thinking about getting a HC2, but I would like to be sure if Wireguard is supported on Odroid. Did you manage to make it work? 

I run Armbian on a NEO2 and Wireguard works perfectly. 

Thanks! 


Wireguard is supported everywhere where noted (at the download pages). I am thinking to add tools to the image by default (+328kb unpacked), otherwise just: 

apt install wireguard-tools

is enough since they were added to our main repository: https://github.com/armbian/upload/commit/4b218f5862fb0725c5426f679c1b5d6ef336ada5

Share this post


Link to post
Share on other sites
On 9/4/2019 at 4:50 PM, Igor said:


Wireguard is supported everywhere where noted (at the download pages). I am thinking to add tools to the image by default (+328kb unpacked), otherwise just: 


apt install wireguard-tools

is enough since they were added to our main repository: https://github.com/armbian/upload/commit/4b218f5862fb0725c5426f679c1b5d6ef336ada5

 

I just tried wg-quick to set up wireguard and get :

RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported

modprobe wireguard gets me:

modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.14.133-odroidxu4

 

running stretch on odroid hc2, did update & upgrade and rebooted.

 

Any ideas how I can get wireguard to work?

Share this post


Link to post
Share on other sites
14 minutes ago, trohn_javolta said:

via apt upgrade, right?


Well. That require that at least one test latest build on the device. We don't have automated testing facility nor any QA staff. (if I have time) I have to build, transfer to SD/eMMC and see if it doesn't break. If testing is done too quick, it might produce way more expenses than yours and dealing with angry "customers",  when some random but important feature is broken upstream,  is not nice ... :P

 

If you need this faster than light, DIY - you know where to find build tools or donate substantial amount and I will hire people to wait and answer on peoples wishes ...

Share this post


Link to post
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...
1 1