个人工具

UbuntuHelp:Forum/software/CustomKernel

来自Ubuntu中文

跳转至: 导航, 搜索

You may grab the latest kernel source from Linus at kernel.org and compile your own kernel. It is easier to just make a package for your kernel image. Install fakeroot and kernel-package. Also, install linux-tree. Linux-tree is the linux source, packaged by Ubuntu. It is a better starting point because it contains a lot of patches, bugfixes and configuration you need for ubuntu. You can make menuconfig and remove the options you do not need. cd to the top of the linux tree and do

fakeroot make-kpkg --revision=1 --append-to-version=MyCustomKernel --initrd kernel_image kernel_headers

That will compile and build a kernel-image package that you can install with dpkg -i.

sudo dpkg -i ../kernel-image-2.6.5.10MyCustomKernel_1

It is easier to install and remove that way. It also guarantees that your system is not left unbootable (by not screwing up your BootLoader and leaving you other options).

See also