module TUN is missing in build_t4240rdb-64b

cancel
Showing results for 
Search instead for 
Did you mean: 

module TUN is missing in build_t4240rdb-64b

Jump to solution
852 Views
bipin_nair
Contributor I

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

Labels (1)
0 Kudos
1 Solution
650 Views
bpe
NXP TechSupport
NXP TechSupport

To add a module, you have to change the kernel configuration. The course
of actions is as follows:

1. Study the kernel documentation to identify the configuration options
   needed for your module.
   
2. Follow instructions at the link below to configure the kernel:

    https://nxp.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-8C4D9C9C-BC81-488D-B2E8-B6494908CF5D

3. Re-build and redeploy.   

View solution in original post

0 Kudos
1 Reply
651 Views
bpe
NXP TechSupport
NXP TechSupport

To add a module, you have to change the kernel configuration. The course
of actions is as follows:

1. Study the kernel documentation to identify the configuration options
   needed for your module.
   
2. Follow instructions at the link below to configure the kernel:

    https://nxp.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK/GUID-8C4D9C9C-BC81-488D-B2E8-B6494908CF5D

3. Re-build and redeploy.   

View solution in original post

0 Kudos