I have been given an assignment where I have to recompile a 64-bit kernel without any modifications and make the new kernel as the default kernel in grub. I am doing this on an Ubuntu 14.04.2 64-bit system with kernel 3.16.0-60-generic
.
I executed the following instructions (some part followed from here and some from here) -
apt-get source linux-image-$(uname -r)
sudo apt-get build-dep linux-image-$(uname -r)
cd linux-lts-utopic-3.16.0/
cp /boot/config-3.16.0-60-generic .config
make
make modules
make modules_install
sudo make install
I can boot into the kernel and everything but the kernel version (uname -r
) appears as 3.16.7-ckt22
. How did the version change if I compiled the kernel from 3.16.0-60
sources?
EDIT: I did not follow the complete instructions from https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel because they overwrite the current kernel image with the new one. I wanted an image with modified suffix like -3.16.0-60-recompiled or something similar and appear alongside the original image in grub.