skip to main |
skip to sidebar
Compiling a Custom Kernel for Ubuntu
- Install necessary packages:
- apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
- Download the kernel sources from www.kernel.org
- Extract them
- ln -s linux-kernel-version linux
- change directory into "linux"
- Copy the current kernel's config:
- cp /boot/config-`uname -r` ./.config
- Start the GUI kernel configuration
- make menuconfig
- Save the config
- Start the compile
- make-kpkg clean
- fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
- After it's done compiling, which may take 30 minutes or much more you will have to .deb packages in the /usr/src directory, install them
- dpkg -i kernel-image-2.6.23-custom_10.00.Custom_i386.deb
- dpkg -i kernel-headers-2.6.23-custom_10.00.Custom_i386.deb
- verify that the entries are in grub
- vi /boot/grub/menu.lst
- reboot
No comments:
Post a Comment