Build Kernel

https://help.ubuntu.com/6.10/ubuntu/installation-guide/i386/kernel-baking.html
http://www.falkotimme.com/howtos/debian_kernel2.6_compile/
http://www.mactel-linux.org/wiki/Kernel_Configuration_Guide

— enable devfs module
http://loox.oktava.info/index.php/Build_a_kernel
/usr/share/e2fsprogs/initrd.ext3-add-journal

— ext3-add-journal.sh error
https://bugs.launchpad.net/ubuntu/+source/initrd-tools/+bug/8086

download linux source into /usr/src/ or apt-get install linux-source-2.6.20
patch -p1 —dray-run < xxx.patch
make xconfig (or make menuconfig)

make-kpkg clean
fakeroot make-kpkg —revision=custom.1.0 kernel_image

//.config (ata_piix module)
CONFIG_SCSI_ATA_PIIX=m

cd /boot/
mkinitrd -o /boot/initrd.img-2.6.16 2.6.16
update-grub

http://lists.debian.org/debian-amd64/2005/10/msg00848.html
http://lists.debian.org/debian-amd64/2005/10/msg00854.html
http://linux.derkeiler.com/Mailing-Lists/Debian/2005-11/0743.html

CentOS

http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
http://wiki.centos.org/HowTos/Custom_Kernel

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License