Rebuild stock Ubuntu kernel

Thomas Kaiser ubuntu at kaiser-linux.li
Tue Jul 4 17:04:19 UTC 2006


Hey

How can I rebuild the kernel image which gets installed when I do "sudo 
apt-get install linux-image-2.6.15-25-amd64-generic"

I did "sudo apt-get install linux-source-2.6.15" to get the Ubuntu 
kernel source. Changed to /usr/src and unziped the source. Copied 
/boot/config-2.6.15-25-amd64-generic to /usr/src/linux-source-2.6.15.
Run "sudo make menuconfig" and saved the config without changing 
anything. Now I run "sudo make-kpkg binary-arch" and got 2 .dep 
packages, kernel-headers-2.6.15.7-ubuntu1_10.00.Custom_amd64.deb and 
kernel-image-2.6.15.7-ubuntu1_10.00.Custom_amd64.deb

But I was expecting something like "image-2.6.15-25", not 2.6.15.7?!

When I look inside kernel-image-2.6.15.7-ubuntu1_10.00.Custom_amd64.deb, 
the kernel image is called vmlinuz-2.6.15.7-ubuntu1 and is 7 Bytes 
smaller than the stock kernel from linux-image-2.6.15-25-amd64-generic.dep.

So, what do I miss?

Regards, Thomas

-- 
http://www.kaiser-linux.li




More information about the ubuntu-users mailing list