Compiling the Linux Kernel

Compiling your Linux kernel allows you to customize your system and save a lot of resources (memory, cpu, etc..). Nowadays the Linux Operational System has support for everything, but I believe none of us have all of the supported hardware like for example “amateur radio”.

Then a good choice is to remove all the unnecessary modules. Removing unneeded stuff will allow you to have a smooth operational experience once your system will be so much faster just processing what is really need to be processed.

To build the kernel is necessary to have the package kernel-devel (yum install kernel-devel-`uname -r`).

#make oldconfig
Save your old configuration file in the file .config

#make mrproper

#make menuconfig
#make xconfig
Guide you to make the configuration file to be used in the compilation process

#make dep
Make dependencies

#make clean
Clean objects and other stuff leaved by the old kernel

After setting up all of your personal configurations, execute make compile the kernel.

#make modules_install

create initial ram disk image
#mkinitrd -k vmlinuz-2.6.26 -i initrd-2.6.26

Update GRUB
#vi /boot/grub/menu.lst




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: