February 19, 2008 - 9:16 pm
for newbies only. many thanks to azure
links:
kernel.org
mirror for sjtuers: http://ftp.sjtu.edu.cn/sites/ftp.kernel.org
whirlwind trip tips for ubuntu users:
sudo apt-get install build-essentials initramfs-tools
then download kernel source and uncompress, go to uncompressed dir
make defconfig
make
sudo make modules_install install
then go to /boot,
sudo mkinitramfs xxxxx (according to your kernel version) -o initrd.img-xxxxx (any one you like, just a name)
to create a initrd.img
and then, modify /boot/grub/menu.lst
warning: modifying menu.lst is dangerous. take care
add a new entry for your newly compiled kernel. just add one according to the currently working kernel
finally, reboot, choose the new entry you added and pray.
i succeeded. ha ha, though network is not working
test whether you have successfully changed your kernel
less /boot/config
look at the first few lines
what if it failed?
don’t panic. just undo your operations. delete compiled kernel and initrd.img in/boot, delete newly added entry in menu.lst
or, just don’t ever choose the broken kernel

