-----Ubuntu 10.04 linux kernel upgrade form 2.6.32-21-generic to 3.18.0 --------
P.S. Commands marks as purple.
1.
Download linux kernel from https://www.kernel.org/
Choose file: linux-3.18.tar.xz
2.
sudo apt-get install xz-utils
tar Jxvf linux-3.18.tar.xz
3.
sudo apt-get install libncurses5-dev
sudo apt-get install kernel-package
cd linux-3.18
sudo cp /boot/config-2.6.32-21-generic .config
make menuconfig
fakeroot make-kpkg --initrd --revision huang.001 --append-to-version -20141208 kernel_image
4.
double click and install "linux-image-3.18.0-20141208_huang.001_i386.deb"
5.
check new linux kernel module name:
ls /lib/modules/
2.6.32-21-generic 3.18.0-20141208
6. create initrd:
cd /boot
sudo makinitramfs -k -o initrd.img-3.18.0-20141208 3.18.0-20141208
sudo update-grub2
sudo reboot
P.S. if you doesn't do step6 will occur "kernel panic - not syncing : VFS : unable to mount root fs on unknown block (0,0)".
7.
When Ubuntu reboot, long press SHIFT will into GRUB menu,
Select new kernel "3.18.0-20141208", done.