Building Kernel Modules

Onload User Guide (UG1586)

Document ID
UG1586
Release Date
2023-07-31
Revision
1.2 English

The kernel must be built with the following options enabled, where supported:

  • CONFIG_NETFILTER
  • CONFIG_KALLSYMS
  • EFRM_KALLSYMS_ALL
  • CONFIG_FIB_RULES
  • CONFIG_IP_MULTIPLE_TABLES.

Standard distributions will already have these enabled, but they must also be enabled when building a custom kernel. These options do not affect performance.

The following commands can be used to install kernel development headers.

  • Debian based Distributions - including Ubuntu (any kernel):
    apt-get install linux-headers-$(uname -r)
  • For RedHat/Fedora (not for 32 bit kernel):
    • If the system supports a 32 bit kernel and the kernel is PAE, then:
      yum -y install kernel-PAE-devel
    • otherwise:
      yum -y install kernel-devel
  • For SuSE:
    yast -i kernel-source