Skip to content

Instantly share code, notes, and snippets.

@aswild
Last active February 14, 2020 23:06
Show Gist options
  • Save aswild/41d53a612e15e3561e9ba039a95c3f1d to your computer and use it in GitHub Desktop.
Save aswild/41d53a612e15e3561e9ba039a95c3f1d to your computer and use it in GitHub Desktop.
Download and build the wireguard kernel module and tools for EdgeOS. see https://github.com/Lochnair/vyatta-wireguard
#!/bin/sh
cat <<_EOF
This script has moved!
Check out https://github.com/aswild/vyatta-wireguard-build
_EOF
@tturner
Copy link

tturner commented Jan 5, 2019

Thanks for sharing this - I'm using it to build my own version for the e100.

What is the reason for excluding prandom_u32_max? When I run this for the e100 series, it gives the following error:

error: implicit declaration of function 'prandom_u32_max' [-Werror=implicit-function-declaration]

Thanks

@TBK
Copy link

TBK commented Jan 17, 2019

@tturner The only explanation I could find is this PR by the creator of WireGuard - longsleep/linux-pine64#67

@lorenz
Copy link

lorenz commented Feb 13, 2020

Does anyone have a copy of OCTEON-SDK-5.1.tbz? The original repo is gone and all repos that still have it are out of LFS bandwidth.

@aswild
Copy link
Author

aswild commented Feb 14, 2020

Hi @lorenz, I've re-hosted the Octeon toolchain on S3, it's downloaded automatically by my new version of the build script https://github.com/aswild/vyatta-wireguard-build

I'm not sure if it's the full original OCTEON-SDK-5.1.tbz, but it's the GCC toolchain needed to compile for Octeon MIPS64 chips. Direct link is https://vyatta-wireguard-build.s3.amazonaws.com/OCTEON-SDK-5.1-tools.tar.xz

@lorenz
Copy link

lorenz commented Feb 14, 2020

Thanks @aswild! Sadly the part I'm interested in (U-Boot) is not in there. AFAIK the cnusers SDK had it, but that has all been shut down since the acquisition by Marvell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment