Compile and install a 3rd party kernel module in debian

KVER=$(uname -r | sed 's,-.*,,g')
aptitude install linux-headers-$(uname -r) linux-source-$KVER build-essential
cd /usr/src
tar jxf linux-source-$KVER.tar.bz2
ln -s /usr/src/linux-source-$KVER /lib/modules/$(uname -r)/source

Download the required module source and unpack it
Enter module source directory

make
make install
To make the module visible to your running kernel, you may like to run
depmod -a
modprobe modulename

Original from: Alien Glow

http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Subscribe without commenting