not sure why people are making a rocket science out of kernel compilation, below steps will help you to create a second bootable kernel, so just in case you will get kernel panic you can still come back to your old kernel and recompile 2.6.x
EVERYTHING IS DONE THROUGH SHELL
1. download new kernel source (at this moment 2.6.21)
curl
http://www.kernel.org/pub/linux/kern...-2.6.21.tar.gz -o linux-2.6.21.tar.gz
2. extract this newly downloaded source
tar -xzvf ~/linux-2.6.21.tar.gz
3. move this kernel to your /usr/src/ dir
mv ~/linux-2.6.21 /usr/src/linux-2.6.21
4. change symbolic link for @linux to linux-2.6.21 in /usr/src/
cd /usr/src/
rm /usr/src/linux
ln -s /usr/src/linux-2.6.21 linux
*5. if you dont want to build your kernel from scratch then follow this step, otherwise skip it
cp /boot/config /usr/src/linux/.config (now if you have config-2.6.x in /boot directory use that one instead of just 'config')
cd /usr/src/linux
make oldconfig
(now this will image your old kernel, and since in new kernel developers added new drivers and features, it will ask you what do you want to do with those features Y- to install M-to make it as a module N-ignore if you will answer N to all of those new features you should be safe, you can just experiment your self, nothing in there that you can select, that will brake your system)
6. compiling KERNEL (assuming your current directory is /usr/src/linux/)
make bzImage
(it will take a while so you can start watching a movie or something
)
make modules
make modules_install
7. copying images (assuming your current directory is /usr/src/linux/)
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.21
cp System.map /boot/System.map-2.6.21
cp .config /boot/config-2.6.21
8. add newly created image into your boot loader (i am including instructions only for lilo, since that is the one that i use, sorry grub users
)
add this entry in your /etc/lilo.conf
all the way to the buttom place
image=/boot/vmlinuz-2.6.21
root=/dev/sda1
label=linux-2.6.21
read-only
#then save this file close it, once you are back at shell type
lilo
Added Linux*
Added Linux-2.6.21
#if it didnt then read through above instruction once again, because you messed up somewhere
9. Reboot your computer and select new option from your lilo "linux-2.6.21"
THE END
NB!!!
1. if you are using ipw2200 or any intel wireless card, and you installed firmware, ieee80211, and ipw drivers, they will have to be reinstalled, so you have to rerun make for ieee80211 and ipw2200+, also make sure that firmware is in place.
2. if you are using SATA make sure you are selected proper SATA controller from your kernel "make menuconfig" Device Drivers -> Serial ATA (prod) -> Your Controller . also make sure that you are including it into your kernel and not making it as a module, otherwise you will get an error message at boot that is saying that kernel cannot mount your drive. (we are not gonna go into initrd)
-------------------
Penguin Powah