Table of Contents

Das “Debian-Kernel-Mini-Howto” von hier http://a.ctdo.de/wiki/doku.php?id=debian-kernel-howto kopiert und fuer mich angepasst.

Vorbereitung

Installation benötigter Debian-Pakete

aptitude install --with-recommends kernel-package libncurses-dev bzip2 module-assistant

Installation Kernel-Sourcen (und evtl. Patches)

cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.tar.bz2
tar xjf linux-2.6.28.tar.bz2
wget http://vserver.13thfloor.at/Experimental/patch-2.6.28-vs2.3.0.36.2.diff
cd linux-2.6.28
patch -p1 < ../patch-2.6.28-vs2.3.0.36.2.diff
cd ..
mv linux-2.6.28 linux-2.6.28-vs2.3.0.36.2

Konfiguration des Kernels

cd linux-2.6.28-vs2.3.0.36.2
cp /boot/config-`uname -a | awk '{print $3}'` .config
make oldconfig

oder (wenns der Kernel unterstützt):

cp /proc/config.gz
cd linux-2.6.28-vs2.3.0.36.2
gunzip ../config.gz

dann noch die .config.old nach .config kopieren

Erzeugen der Kernel-Pakete

cd /usr/src/linux-2.6.28-vs2.3.0.36.2
make-kpkg clean
time make-kpkg kernel_image modules_image --config oldconfig --revision x24ds.01 --append-to-version x24ds.01

Installation der Pakete

cd /usr/src
dpkg -i linux-image-2.6.28*.deb
dpkg -i modules-image-*.deb