Comments on How To Compile A Kernel - The CentOS Way

How To Compile A Kernel - The CentOS Way Each distribution has some specific tools to build a custom kernel from the sources. This article is about compiling a kernel on CentOS systems. It describes how to build a custom kernel using the latest unmodified kernel sources from www.kernel.org (vanilla kernel) so that you are independent from the kernels supplied by your distribution. It also shows how to patch the kernel sources if you need features that are not in there.

8 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Glutoneer

Are you serious?

Even the kernel's README says NOT TO use /usr/src/linux!


By: Adam Jakab

This comment is for anyone who is about to compile their new kernel.

Thanks for this tutorial - good stuff - but i think the comment above is appropriate. I am nobody as far as kernels go but i think Linus Torvalds knows something about this stuff and in year 2000 he says "do NOT use /usr/src/linux symlink". Here is a link to the e-mail he wrote ... I suggest you read it:

http://linuxmafia.com/faq/Kernel/usr-src-linux-symlink.html

adam

 

By:

Also don't forget to install rpm-build as well or you will get an error during the build process

By: dmpopoff

Don't forget to install ncurse lib to make avaliable to run menuconfig

By: Anonymous

This page is referenced from the CentOS wiki with clear instructions NOT to do it this way!

By:

One more thing but i am not 100% sure that use of make mrproper.What i read so far is mrproper ignores the existing .config, and is usefull if we want to configure everything from scratch... it's a clean config not using nothing of the old config.

 But here you mentioned to copy .config back?

 make clean && make mrproper

cp /boot/config-`uname -r` ./.config

Please correct me if i am wrong?? 

By: diogo serra

At the and of the installshould i uncomment it ?

# alias scsi_hostadapter1 mptscsi

 

thank you

By: Ranchu

 Hello falco,

Thanks for this tutorial!But why download kernel from www.kernel.org ? Is that a CentOS kernel ?

Isn't it better to use yum install kernel-devel ?

Regards,

Ranchu