OS: CentOS 6.0 x86_86
Kernel version: 2.6.32-71.29.1.el6.x86_64
1. Download the kernel source from kernel.org.
linuxdba -->wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.tar.gz
linuxdba -->cp linux-2.6.39.tar.gz /usr/src
2. Extract the kernel source and create the symbolic link.
linuxdba -->tar xvf linux-2.6.39.tar.gz
linuxdba -->ln -s linux-2.6.39 linux
linuxdba -->ll
total 93748
lrwxrwxrwx. 1 root root 12 Oct 11 18:13 linux -> linux-2.6.39
drwxr-xr-x. 23 root root 4096 May 19 12:06 linux-2.6.39
-rw-r--r--. 1 root root 95993809 Oct 11 18:12 linux-2.6.39.tar.gz
3. Compile the kernel source.
linuxdba -->cd linux
linuxdba -->make mrproper
linuxdba -->make clean
linuxdba -->vi Makefile
---
EXTRAVERSION =
+++
EXTRAVERSION = .el6.x86_64
linuxdba -->make menuconfig // Create ".config" file.
linuxdba -->make bzImage
linuxdba -->make modules
linuxdba -->make modules_install
linuxdba -->make initrd-2.6.39.el6.x86_64.img 2.6.39.el6.x86_64
4. Install the new kernel
linuxdba -->cp System.map /boot/System.map-2.6.39.el6.x86_64
linuxdba -->cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.39.el6.x86_64
linuxdba -->cp initrd-2.6.39.el6.x86_64.img /boot/
linuxdba -->vi /etc/grub.conf
title linuxdba(2.6.39.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.39.el6.x86_64 ro root=UUID=5caadab1-90a5-4c79-9d99-c1fff1c7149b
initrd /initrd-2.6.39.el6.x86_64.img
5. Reboot and Enjoy!
linuxdba -->reboot //select and boot with this "linuxdba" kernel
linuxdba -->uname -r
2.6.39.el6.x86_64
Reference Page:
http://www.cromwell-intl.com/unix/linux-kernel.html
http://blog.youkuaiyun.com/liuy5277/article/details/6863751
Kernel version: 2.6.32-71.29.1.el6.x86_64
1. Download the kernel source from kernel.org.
linuxdba -->wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.39.tar.gz
linuxdba -->cp linux-2.6.39.tar.gz /usr/src
2. Extract the kernel source and create the symbolic link.
linuxdba -->tar xvf linux-2.6.39.tar.gz
linuxdba -->ln -s linux-2.6.39 linux
linuxdba -->ll
total 93748
lrwxrwxrwx. 1 root root 12 Oct 11 18:13 linux -> linux-2.6.39
drwxr-xr-x. 23 root root 4096 May 19 12:06 linux-2.6.39
-rw-r--r--. 1 root root 95993809 Oct 11 18:12 linux-2.6.39.tar.gz
3. Compile the kernel source.
linuxdba -->cd linux
linuxdba -->make mrproper
linuxdba -->make clean
linuxdba -->vi Makefile
---
EXTRAVERSION =
+++
EXTRAVERSION = .el6.x86_64
linuxdba -->make menuconfig // Create ".config" file.
linuxdba -->make bzImage
linuxdba -->make modules
linuxdba -->make modules_install
linuxdba -->make initrd-2.6.39.el6.x86_64.img 2.6.39.el6.x86_64
4. Install the new kernel
linuxdba -->cp System.map /boot/System.map-2.6.39.el6.x86_64
linuxdba -->cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.39.el6.x86_64
linuxdba -->cp initrd-2.6.39.el6.x86_64.img /boot/
linuxdba -->vi /etc/grub.conf
title linuxdba(2.6.39.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.39.el6.x86_64 ro root=UUID=5caadab1-90a5-4c79-9d99-c1fff1c7149b
initrd /initrd-2.6.39.el6.x86_64.img
5. Reboot and Enjoy!
linuxdba -->reboot //select and boot with this "linuxdba" kernel
linuxdba -->uname -r
2.6.39.el6.x86_64
Reference Page:
http://www.cromwell-intl.com/unix/linux-kernel.html
http://blog.youkuaiyun.com/liuy5277/article/details/6863751