How To Update Kernel
How To Update Kernel
6
by nixcraft · 102 comments
Compiling custom kernel has its own advantages and disadvantages. However, new Linux user /
admin find it difficult to compile Linux kernel. Compiling kernel needs to understand few things
and then just type couple of commands. This step by step howto covers compiling Linux kernel
version 2.6.xx under Debian GNU Linux. However, instructions remains the same for any other
distribution except for apt-get command.
Now you can start kernel configuration by typing any one of the command:
• $ make menuconfig - Text based color menus, radiolists & dialogs. This option also
useful on remote server if you wanna compile kernel remotely.
• $ make xconfig - X windows (Qt) based configuration tool, works best under KDE
desktop
• $ make gconfig - X windows (Gtk) based configuration tool, works best under Gnome
Dekstop.
You have to select different options as per your need. Each configuration option has HELP
button associated with it so select help button to get help.
It will install three files into /boot directory as well as modification to your kernel grub
configuration file:
• System.map-2.6.25
• config-2.6.25
• vmlinuz-2.6.25
initrd images contains device driver which needed to load rest of the operating system later on.
Not all computer requires initrd, but it is safe to create one.
Remember to setup correct root=/dev/hdXX device. Save and close the file. If you think editing
and writing all lines by hand is too much for you, try out update-grub command to update the
lines for each kernel in /boot/grub/menu.lst file. Just type the command:
# update-grub
Neat. Huh?