View Full Version : Compile your own kernel...

February 13th, 2005, 04:29 AM
I have been trying to compile my own kernel under ubuntu (I Have at least done over 50 in my days) but I keep getting errors like it cannot load the filesystem, it gives a bunch of modules.dep error, initrd, and cramfs errors and then kernel panics.

Now i have tried using initrd, not using it, using sources from kernel.org, sources from the apt repositories. using kpkg to roll my own, and just make bzImage , modules, modules_install, and make install and editing the grub menu.lst to boot using the initrd file and not.

I know debian(Ubuntu) uses some new cramfs junk in the initrd or to boot from, but what am i doing wrong? this is getting annoying...

February 13th, 2005, 05:07 AM
It's probably easiest to use make-kpkg and to start with a config from /boot and run make oldconfig on it before running make-kpkg (with --initrd). This tends to mean that you use the kernel-source package.

February 14th, 2005, 02:46 AM
apt-get install build-essential linux-source-2.6 kernel-package initrd-tools

In Ubuntu, the kernel packages are named linux, as in linux-image, linux-source and so forth.

Copy the config for a working kernel from /boot to .config in your kernel source tree and then do

make-kpkg --revision=1 --append-to-version=-4-386 kernel_image (kernel headers are a good ides, too!)

If that kernel boots, then run make menuconfig (libncurses5-dev is needed)

February 17th, 2005, 02:07 AM

the kernel section on this howto works