Chmara.net
Chmara.net
Search:
Linux | Kernel

Adding modules to the Kernel

In a terminal as root type:

cd /usr/src/linux
(The location of your kernel source maybe different than above)
make menuconfig

You will be presented with a graphical interface that lists many options. Scroll down to a module that you would like to install. If you see an * next to the item it means that the item is already built into the kernel. If you see an "M" next to the item it means that the item was built as a module. If there is nothing inside the marker next to the item it means that support was not built. To add it to the build press the space bar. The first time you hit it you will see an "M" the second time you hit it you will see an *.

<SIDE NOTE>
A module that is built into the kernel will always be started and active on your system.
A module that is built as a module must be activated by some other means. Normally a modprobe or some other script.
</SIDE NOTE>

After you have selected all the modules you want to have installed exit saving your changes.

Building the kernel

After running the above steps in the same directory type:

make && make modules_install

After a brief compilation time your kernel should provide a bzImage (/usr/src/linux/arch/x86_64/boot). Copy this image to /boot/ Give it a name that makes sense to you (kernel-2.6.26-multimedia). When that is complete you must add the image to your boot loader.

Page last modified on December 24, 2008, at 04:27 PM EST