This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Initialization of kernel modules by default



Hi Experts,

I am new bee to linux kernel. Previously I used desktop Ubuntu linux to develop device drivers as the loadable kernel module.

Here I try to configure the kernel using make menuconfig and save it in .config file.

During configuration assume that I opt to compile some of the drivers to be part of linux kernel. These default selected drivers are initialized by default during system initialization or we need to forcefully initialize it ?

In case of loadable kernel modules it will be loaded automatically on hotplugging or manually my modprobe.

  • Hi Lyf,

    It depends on your filesystem.

    If your filesystem supports auto loading "modules" then it is possible.

    Else you need to insert manually the module driver through "modprobe" or "insmod"

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules

    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules_install INSTALL_MOD_PATH=<filesystem location>