Thursday, November 8, 2012

Kernel Upgradation from 2.6.32-71.el6.x86_64 to 3.6.6X86_64 in Centos


Jai Guru Dev
****************************************************
 Kernel Upgradation  from 2.6.32-71.el6.x86_64 to 3.6.6X86_64
****************************************************
1.       cd /usr/src/

2.       wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.6.6.tar.bz2

3.       tar xvjf linux-3.6.6.tar.bz2

4.       ln -s linux-3.6.6 linux

5.       wget http://www.kernel.org/pub/linux/kernel/v3.0/patch-3.6.6.bz2

6.       cd /usr/src/linux

7. make menuconfig
http://www.fogonacaixadagua.com.br/wp-content/gallery/cache/30__320x240_kernel-01.png
http://www.fogonacaixadagua.com.br/wp-content/gallery/compilando-kernel-no-centos-redhat/kernel-01.png

As this is a custom compilation, I suggest you to add a custom tag that will identify the new kernel, to accomplish this, do that:
http://www.fogonacaixadagua.com.br/wp-content/gallery/compilando-kernel-no-centos-redhat/kernel-02.png
Select Local version – append to kernel release

http://www.fogonacaixadagua.com.br/wp-content/gallery/compilando-kernel-no-centos-redhat/kernel-03.png

Give the string value as  x86_64

7.       make bzImage
*The compilation will start, it will take a looong time.

8.       make modules

* The compilation will start, take a loooong  break
10. make modules_install
11. make install

*make install will copy the files: System.map, vmlinuz and the initial ram disk initrd-3.6.6X86_64.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.
12.  Edit the /etc/grub.conf and change the default kernel value as 0
13. Reboot

                                                                        Have Fun !!!



No comments:

Post a Comment