iptables kernel modules are not being included in rootfs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iptables kernel modules are not being included in rootfs

106 Views
Iribe18
Contributor II

Hello, 

I am adding iptables to an image built with https://github.com/Freescale/fsl-community-bsp-platform/tree/rocko.

To modify the kernel config I use "bitbake -c menuconfig linux-imx" and enable the required netfilter modules, I also added iptables and kernel-modules in my local.conf file:

PACKAGE_CLASSES ?= "package_ipk"

CORE_IMAGE_EXTRA_INSTALL += " kernel-modules"

IMAGE_INSTALL += " \

    kernel-modules \

    iptables

"

The kernel modules for netfilter are not added to the rootfs and the packages are not generated in tmp/deploy/ipk

The kernel version is 4.9.11.

Seems related to: https://community.nxp.com/t5/i-MX-Processors/ip-tables-does-not-get-included-in-kernel-modules/td-p/...

Could be related to the rocko version of fsl-community-bsp-platform?.

Thanks for your help.

 

 

Tags (3)
0 Kudos
1 Reply

38 Views
Iribe18
Contributor II

Solution:

To enable any kernel module, in this case ip_tables, follow the next steps:

execute:

bitbake -c menuconfig linux-imx
 
Enable any kernel modules that you need to include in the image, in this case iptables (netfilter), and select save.
Use M to select the module to be included.

Then execute:

bitbake linux-imx -f -c compile
 
then build your image:
 
bitbake core-image-minimal
 
This will include the kernel modules in the rootfs
0 Kudos