Hello,
I am trying to install Wireguard in my Jetson Xavier with Jetpack 5.1.3 from another machine, but I know that the kernel must be rebuilt with proper configuration (Wireguard enabled). Thing is that I have been trying to do so in many ways, but nothing works. What I think it should work:
- With SDKManager, generate the directory with the Image, rootfs, and everything in my machine.
- Download Driver Package (BSP) Sources from Jetson Linux | NVIDIA Developer
- Edit the file Linux_for_Tegra/source/public/kernel/kernel-5.10/arch/arm64/configs/tegra_defconfig and add: “CONFIG_WIREGUARD=y”
- Build the kernel: ./nvbuild.sh -o $PWD/kernel_out
- Copy the files generated when building in my directory where is rootfs, as indicated in Kernel Customization — Jetson Linux<br/>Developer Guide 34.1 documentation
- From the directory where is the rootfs, flash to my Jetson.
Happens that the Image is not even replaced in /boot/Image, and the Wireguard module is not set.
I tried then to manually copy the Image generated to my Jetson, and the files generated in the drivers/net/wireguard/* to the Jetson. Then sudo depmod
, but this error arised:
modprobe: ERROR: could not insert ‘wireguard’: Unknown symbol in module, or unknown parameter (see dmesg)
related to:
[ 442.320227] wireguard: Unknown symbol curve25519_null_point (err -2)
[ 442.320550] wireguard: Unknown symbol chacha20poly1305_encrypt_sg_inplace (err -2)
[ 442.320811] wireguard: Unknown symbol chacha20poly1305_encrypt (err -2)
[ 442.321147] wireguard: Unknown symbol chacha20poly1305_decrypt_sg_inplace (err -2)
[ 442.321388] wireguard: Unknown symbol xchacha20poly1305_encrypt (err -2)
[ 442.321570] wireguard: Unknown symbol xchacha20poly1305_decrypt (err -2)
[ 442.321830] wireguard: Unknown symbol curve25519_base_point (err -2)
[ 442.322091] wireguard: Unknown symbol chacha20poly1305_decrypt (err -2)
[ 442.322627] wireguard: Unknown symbol curve25519_generic (err -2)
[ 463.011248] wireguard: Unknown symbol curve25519_null_point (err -2)
[ 463.011608] wireguard: Unknown symbol chacha20poly1305_encrypt_sg_inplace (err -2)
[ 463.011953] wireguard: Unknown symbol chacha20poly1305_encrypt (err -2)
[ 463.012361] wireguard: Unknown symbol chacha20poly1305_decrypt_sg_inplace (err -2)
[ 463.012604] wireguard: Unknown symbol xchacha20poly1305_encrypt (err -2)
[ 463.012772] wireguard: Unknown symbol xchacha20poly1305_decrypt (err -2)
[ 463.012996] wireguard: Unknown symbol curve25519_base_point (err -2)
[ 463.013220] wireguard: Unknown symbol chacha20poly1305_decrypt (err -2)
[ 463.013536] wireguard: Unknown symbol curve25519_generic (err -2)
I think I am messing up doing manual copy.