current my configuration:
I use NVIDIA Jetson Xavier NX Developer Kit.
cat /etc/os-release
command returns
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
uname -srm
returns
Linux 5.10.104 aarch64
I tried
sudo apt install wireguard
and enabled the below options by menuconfig. (similar steps: How do I add nftables manually? - #4 by sekai)
[*] Networking support (NET) -->
Networking options -->
[*] TCP/IP networking (INET)
[*] IP: Foo (IP protocols) over UDP (NET_FOU)
[*] Cryptographic API (CRYPTO) -->
[*] Cryptographic algorithm manager (CRYPTO_MANAGER)
reference: Compilation from Source Code - WireGuard
but, lsmod | grep wireguard
returns nothing.
next I tried Compiling the Kernel Module from Source(Compilation from Source Code - WireGuard), but some errors happend.
sekai@sekai-desktop:~/Desktop$ make -C wireguard-linux-compat/src -j$(nproc)
make: Entering directory '/home/sekai/Desktop/wireguard-linux-compat/src'
CC [M] /home/sekai/Desktop/wireguard-linux-compat/src/main.o
CC [M] /home/sekai/Desktop/wireguard-linux-compat/src/noise.o
In file included from <command-line>:
/home/sekai/Desktop/wireguard-linux-compat/src/compat/compat.h:38:2: error: #error "WireGuard has been merged into Linux >= 5.6 and therefore this compatibility module is no longer required."
38 | #error "WireGuard has been merged into Linux >= 5.6 and therefore this compatibility module is no longer required."
| ^~~~~
In file included from <command-line>:
/home/sekai/Desktop/wireguard-linux-compat/src/compat/compat.h:38:2: error: #error "WireGuard has been merged into Linux >= 5.6 and therefore this compatibility module is no longer required."
38 | #error "WireGuard has been merged into Linux >= 5.6 and therefore this compatibility module is no longer required."
| ^~~~~
In file included from <command-line>:
/home/sekai/Desktop/wireguard-linux-compat/src/compat/compat.h:1136:20: error: static declaration of 'dst_cache_reset_now' follows non-static declaration
1136 | static inline void dst_cache_reset_now(struct dst_cache *dst_cache)
| ^~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
/home/sekai/Desktop/wireguard-linux-compat/src/compat/compat.h:1136:20: error: static declaration of 'dst_cache_reset_now' follows non-static declaration
1136 | static inline void dst_cache_reset_now(struct dst_cache *dst_cache)
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/sekai/Desktop/wireguard-linux-compat/src/compat/compat.h:1125,
from <command-line>:
./include/net/dst_cache.h:91:6: note: previous declaration of 'dst_cache_reset_now' was here
91 | void dst_cache_reset_now(struct dst_cache *dst_cache);
| ^~~~~~~~~~~~~~~~~~~
In file included from /home/sekai/Desktop/wireguard-linux-compat/src/compat/compat.h:1125,
from <command-line>:
./include/net/dst_cache.h:91:6: note: previous declaration of 'dst_cache_reset_now' was here
91 | void dst_cache_reset_now(struct dst_cache *dst_cache);
| ^~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:281: /home/sekai/Desktop/wireguard-linux-compat/src/main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:281: /home/sekai/Desktop/wireguard-linux-compat/src/noise.o] Error 1
make[1]: *** [Makefile:1854: /home/sekai/Desktop/wireguard-linux-compat/src] Error 2
make: *** [Makefile:26: module] Error 2
make: Leaving directory '/home/sekai/Desktop/wireguard-linux-compat/src'
Now I don’t know what i should do.
Please tell me the way to add wireguard correctly.