Get kernel-source-x.x.x package. It might contains several patches not
available on standard kernel, but required by many new machines. (Such
as UDMA IDEs).
extract kernel source
cd /usr/src
tar xvfI kernel-source-2.x.x.tar.bz2
or
tar xvfZ kernel-source-2.x.x.tar.gz
then make symlink from /usr/src/kernel-source-2.x.x to /usr/src/linux
copy stock configuration from /boot/config-2.x.x to
/usr/src/linux/.config
make oldconfig
make menuconfig or make xconfig
change kernel version to indicate your own attempt, edit
/usr/src/linux/Makefile, add something on EXTRAVERSION= line.
This will avoid overwriting Debian's kernel.
make dep
make bzImage modules modules_install
copy from /usr/src/linux to /boot:
arch/i386/boot/bzImage -> /boot/vmlinuz-2.x.x-{$EXTRAVERSION}
replace {$EXTRAVERSION} with string you put on previous
step
.config -> /boot/config-2.x.x-{$EXTRAVERSION}