Originally Posted by henry_shadowjet
I am running Fedora 9.
To compile kernel, usually I use the following steps (as normal user):
- Download kernel.tar.bz2
- extract on /tmp (issue command: tar -xjvf /path/to/kernel.tar.bz2)
- cd kernel
- make mrproper
- copy .config file from earlier kernel, if you don't have one, try to download the kernel-devel package file, it should be in there.
- make oldconfig (as you know, you may need to answer a few questions here)
- make clean
- make bzImage
- make modules
Now the following steps would be done as root:
- su (then type root password)
- cd /usr/src/kernels
- mv /tmp/kernel .
- cd kernel
- make modules_install
- cd /boot
- (assuming version 220.127.116.11) mkinitrd initrd-18.104.22.168.img 22.214.171.124
- cp /usr/src/kernels/kernel/arch/x86/boot/bzImage ./bzImage-126.96.36.199
- cp /usr/src/kernels/kernel/System.map ./System.map-188.8.131.52
- cd grub
- nano grub.conf (and make changes as necessary to boot 184.108.40.206)
VOILA! You're done!
thanks for the details and thanks much.
yes in CentOS i didn't have to do make bzImage and - cp /usr/src/kernels/kernel/arch/x86/boot/bzImage ./bzImage-220.127.116.11
since make install does all the necessary new kernel vmlinuz and system map into /boot.
where do we copy .config file to....
i found mine now in /usr/src/kernels/..
does it contain all the old config informations?
what is the purpose of make oldconfig?
would be glad to hear.