Missing TUN/TAP support (CONFIG_TUN) on BeagleV-Fire Debian kernel

Hello everyone,

I’m currently working on networking integration on the BeagleV-Fire (Ubuntu-based image) and ran into an issue with TUN/TAP support.

I’m trying to use a TUN interface (for an ESP32 networking bridge), but it appears that the kernel does not have TUN enabled.

What I’m seeing

  • Attempting to load the module:
sudo modprobe tun

gives:

modprobe: FATAL: Module tun not found in directory /lib/modules/6.6.51-mpfs-riscv64-r7
  • Checking kernel config:
zcat /proc/config.gz | grep CONFIG_TUN

returns:

CONFIG_TUNE_GENERIC=y
# CONFIG_TUN is not set
# CONFIG_TUN_VNET_CROSS_LE is not set

System details

  • Board: BeagleV-Fire

  • OS: Ubuntu 24.04.2 LTS (prebuilt image)

  • Kernel: 6.6.51-mpfs-riscv64-r7

Questions

  1. Is it expected that the default Ubuntu image for BeagleV-Fire ships without TUN/TAP support?

  2. Are there recommended images or kernels that include CONFIG_TUN enabled?

  3. Any known limitations to enabling TUN?

Context

My use case involves creating a virtual network interface to bridge traffic between Linux and an ESP32 (via UART using GitHub - fabio-d/esp32-tuntap: ESP32 as a wireless dongle · GitHub), so TUN is pretty central to the setup.


Any guidance or pointers would be greatly appreciated.

Here you go: Making sure you're not a bot!

The config is left pretty basic so users can modify as they wish…

https://openbeagle.org/beaglev-fire/BeagleV-Fire-ubuntu/-/blob/v6.6.x-Beagle/04_build_linux.sh?ref_type=heads#L98

Regards,

Hello Robert,

Thanks! I downloaded the rebuilt image from CI and now everything is working as expected. The /dev/net/tun device is present and I’m able to create and use TUN interfaces successfully.