Wireguard Module modprobe 'Wireguard: Exec format error"

When attempting to make a Wireguard connection with the included 5.10.104-tegra wireguard module i received the error
[#] ip link add peer2 type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
[#] ip link delete dev peer2
Cannot find device “peer2”

when entering ‘sudo modprobe wireguard’ I get the error.

modprobe: ERROR: could not insert ‘wireguard’: Exec format error.

I have attempted to build from source,

Compilation from Source Code - WireGuard.

As recommended in here

How do I add wireguard manually? - Jetson & Embedded Systems / Jetson Xavier NX - NVIDIA Developer Forums

however, this only works on my nanos that are earlier kernel versions that do not include wireguard out of the box.

on my AGX Orion I frustratingly get the error

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.”

when runing the ’ make -C wireguard-linux-compat/src -j$(nproc) ’ command

Hi,
We would suggest consult with the vendor to check how to enable it on K5.10(Jetpack 5) or K5.15(Jetpack 6). It looks like the approach is different for later kernel versions.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.