[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Compiling a Debian kernel The Debian Way



After reading a post here asking for help about a kernel that was not
compiled correctly, I went to the link the OP posted and read that.

http://www.howtoforge.com/kernel_compilation_debian

Here is what I did in the past:


make menuconfig/xconfig/gconfig/oldconfig
make-kpkg clean
make-kpkg --initrd kernel_image (some options omitted or added like
--append-to-version=foo)
dpkg -i some_kernel_img.deb

the above link says to use yaird to make the initrd.

Recently, while playing with Xen, I had to compile the Xen kernel and
did it like this:

make menu
make all
make modules modules_install
make install
cd /boot
mkinitramfs -o  initrd.img-new_kernel_name
(edit grub to boot new kernel)

The questions:  What is The Debian way as of now?  I have just used
kernel-package for years.

Why use yaird or mkinitramfs?  Which is the preferred method and why?

Is kernel-package still considered good (there is a bug against it:
kernel-packaged eaten by bit rot).

I have not kept up on "current" methods, I just stuck with one that
worked.




-- 
Damon L. Chesser
damon@damtek.com
http://www.linkedin.com/in/dchesser


Reply to: