How to install built kernel?
Nils Kassube
kassube at gmx.net
Sat Apr 7 21:48:20 UTC 2012
Alfred Zhong wrote:
> However, after I type $ sudo make-kpkg kernel-image
> and built the kernel. I tried to look for the deb package. I search
> the whole computer and can't find something like
> kernel-image-2.6.15_10.00.Custom_i386.deb...
IIRC, the package should be in the directory above your current
directory. But shouldn't the package name be "linux-image-something"?
> So I know basically, I need to copy something to the /boot and update
> the grub config file. On my linux source root directory, there is a
> vmlinux ~ 171M I don't know if this is useful. But nothing in /boot
> is that larger, other like /boot/vmlinuz-3.0.0-12 is 4.6M.
>
> There are also /arch/x86/boot/vmlinuz.bin 4.5M /arch/x86/boot/bzImage
> 4.5M
>
> How do I rename the kernel and install it and update the grub.cfg?
Go to the directory where you compiled your custom kernel and copy
"arch/x86/boot/bzImage" to "/boot/vmlinuz-your-kernel-name", copy
"System.map" to "/boot/System.map-your-kernel-name" and copy ".config"
to "/boot/config-your-kernel-name". Then run the command
sudo update-initramfs -c -k your-kernel-name
sudo update-grub
Replace "your-kernel-name" above with the actual kernel version.
Nils
More information about the Ubuntu-devel-discuss
mailing list