#cd /usr/src
#wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.36.tar.bz2
#tar -xvjf linux-2.6.34.1.tar.bz2
#ln -s linux-2.6.34.1 linux
#cd linux
#make clean && make mrproper
#cp /boot/config-`uname -r` ./.config
#make menuconfig
*Make menuconfig requires ncurses library, to install it (CentOS):
#yum install ncurses-devel
Choose Load An Alternate
.config
Exit
Save
To install new kernel on CentOS, you must to configure this option in .config file to prevent kernel panic at boot time
CONFIG_SYSFS_DEPRECATED_V2=y
#make all
#make modules_install
#make install
To make sure the new kernel is boot at first, edit /boot/grub/menu.lst; find defaults=1 and change to defaults=0
#shutdown -r now
No comments:
Post a Comment