This is how i compile kernel 2.6.36 on Centos 5.5:
- Backup /boot & /usr/src/kernels
- Download kernel 2.6.36 and extract on /usr/src/kernels
- Download patch and run bzip2 -dc /usr/src/patch-2.6.36.bz2 | patch -p1 --dry-run
- cd /usr/src/kernels/2.6.36
- make clean && make mrproper
- make menuconfig
- name it -basic1 on General Setup > Local Version
- Set the option and save to config-2.6.36-basic1, then exit and save
- cp /boot/config-2.6.36-basic1 .config
- vi .config and set CONFIG_SYSFS_DEPRECATED_V2=y
- make rpm
- cd /usr/src/redhat/SRPMS
- rpm -ivh kernel-2.6.36basic1-1.src.rpm
- cd /usr/src/redhat/RPMS/x86_64/
- rpm -ivh kernel-2.6.36basic1-1.x86_64.rpm
- mkinitrd /boot/initrd-2.6.36-basic1.img 2.6.36-basic1
- vi /boot/grub/menu.lst and set the vmlinuz & initrd of the new kernel
- reboot
ref:
http://www.howtoforge.com/kernel_compilation_centos
http://forum.linux.or.id/viewtopic.php?f=41&t=6299&start=0
http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
note:
Actually this compilation result is not stable, so i use kernel-2.3.18-194.26.1.el5.
I ran: yum install kernel kernel-headers kernel-devel
and the rest is yum's business...
No comments:
Post a Comment