I tried everything, but I am stuck.
I want to install Wireguard onto ubuntu bullseye OS on NanoPi R4SE board.
Installation is successful, but starting fails with this error:
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: [#] sysctl -w net.ipv4.ip_forward=1
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: net.ipv4.ip_forward = 1
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: [#] ip link add wg0 type wireguard
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: RTNETLINK answers: Operation not supported
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: Unable to access interface: Protocol not supported
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: [#] ip link delete dev wg0
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: Cannot find device "wg0"
Oct 02 09:31:46 NanoPi-R4SE systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.
Oct 02 09:31:46 NanoPi-R4SE systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.

It seems kernel headers is not provided in provided OS images:
rk3399-sd-debian-bullseye-minimal-4.19-arm64-20230314.img
rk3399-sd-debian-buster-desktop-4.19-arm64-20230314.img

Please help me understand how to get this resolved. I really want Wireguard to work.
Many thanks in advance!