Compiling the Linux Kernel – CentOS 5.3

Steps:

#yum -y  install kernel-devel kernel-headers

#yum -y groupinstall “Development-Tools”

#cd /usr/src

#wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.2.tar.bz2

#tar -jxvf linux-2.6.30.2.tar.bz2

#cd /usr/src/linux-2.6.30.2/

#make menuconfig

#make clean

*#make dep (is no more necessary)

#make bzImage

#make modules

#make modules_install

#make install

*make install will copy the files: System.map, vmlinuz and the initial ram disk initrd-2.6.30.2.img to /boot. It will also add the lines you will need on grub, now just restart your computer and choose the new kernel on the grub screen.

Have Fun !!!

centos

Advertisements

6 Responses to “Compiling the Linux Kernel – CentOS 5.3”

  1. kezhong Says:

    hehe, we did the same work

  2. BuBEE Says:

    That’s a good step by step.

    Thank you.

  3. Lakshman Says:

    HI
    Thnx. My work done

  4. Esonz Says:

    what should i configure in the “make menuconfig” part??

    please reply ! thanks

  5. Vasu Says:

    I am getting errors when I trying to compile kernel 3.6.6 from 2.6.18 in centos 5.5. Thanks for your post.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: