custom kernel snippets

Custom kernel for Debian Etch

Tagged linux, debian, custom kernel, kustomoitu kerneli, kustomiserad kernel, deb  Languages bash

Sometimes you just need a kernel that is newer than the package manager has to offer. For me it was the bug fixes for the driver of the sound card in x61s. Here's how to do it "the debian way".

tar xjvf linux- -C /usr/src
rm /usr/src/linux && ln -s /usr/src/linux- /usr/src/linux
cd /usr/src/linux
zcat /proc/config.gz > .config
make xconfig

Now turn on and configure the new features you are looking for in the new kernel, save the configuration and finally quit.

make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom-13.10.2007 kernel_image kernel_headers
cd ..
sudo dpkg -i linux-image-
sudo dpkg -i linux-headers-

The --append-to-version parameter appends the given value into the kernel signature, so that it is easily recognized. If you compile a kernel with the exactly same name as a previous kernel you have then you must move away the directory /lib/modules/your-kernel-name-here.