AnsweredAssumed Answered

module TUN is missing in build_t4240rdb-64b

Question asked by Elliot Black on Feb 20, 2019
Latest reply on Feb 21, 2019 by bpe

Hello,

1. I built a new t4240rdb-64b kernel image using the QorIQ-SDK-V2.0-yocto.

2. I copied over fsl-image-full-t4240rdb-64b.tar.gz onto my SD card and untarred it.

3. I copied the uImage-t4240rdb.dtb into the boot folder of the SD card.

4. I brought up the NXP board to the linux prompt with the SD card.

 

However when I try to add a tunnel device I see -

root@t4240rdb:~# mkdir /dev/net
root@t4240rdb:~# mknod /dev/net/tun c 10 200
root@t4240rdb:~# chmod 0666 /dev/net/tun
root@t4240rdb:~# modprobe tun
modprobe: FATAL: Module tun not found.

 

I believe the kernel does not have the tun/tap module loaded. When I grep for CONFIG_TUN in /proc/config.gz I see this -
root@t4240rdb:~# zgrep CONFIG_TUN /proc/config.gz
# CONFIG_TUN is not set

 

Please tell me how to include the TAP/TUN module in the kernel image.

So far I have been adding all the packages I need by modifying conf/local.conf file in build_t4240rdb-64b directory, like this -
CORE_IMAGE_EXTRA_INSTALL += "openvpn htop nmap"

The tap/tun is a module not a package so it is not as straightforward.

Thanks,

Sincerely,

Elliott

Outcomes