compile new kernel

1. download the fresh kernel and put it in /usr/src
2. extract it using
#tar xvfz #if the kernel end with tar.gz file
3. cd to the directory
4. enter the menu of kernel….
#make menuconfig
change what necessary, usually the processor to make it faster
5. compiling
#make
6. compiling the modules (if any when u were changing in module menu)
#make modules
7. finishing for the module
#make modules_install
8. finishing for the linux
#make install

for lilo user
9. copy the bzImage to /boot/vmlinuz(version)
#cp /usr/src/linux-2.6.18/arch/i386/boot/bzImage /boot/vmlinuz-2.6.18
10. copy system map
cp /usr/src/linux-2.6.18/System.map /boot/System.map-2.6.18
11. edit lilo.conf in /etc/lilo.conf
#nano /etc/lilo.conf
#add this line according to your linux version that u created in vmlinuz
image=/boot/vmlinuz-2.6.18
label=”kernel-baru”
root=/dev/hda7 #the partition of the linux
read-only

12. activate lilo again
#lilo
13.
#init 6
or reboot

for grub user
9. reboot

that’s it.
thanks to http://onnienux.blogs.friendster.com/my_blog/2006/10/kernel_ku_ga_pi.html

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.