To compile a kernel module from source you need:
1. to boot into the kernel you want to compile against.
2. install kernel headers for the current kernel
3. a symlink '/usr/src/linux' pointing to the currently installed kernel headers.
Installing the kernel headers manually is not sufficient, because that does not create the necessary symlink.
To accomplish 2 and 3, the easiest way I know of is:
sudo apt-get install module-assistant sudo m-a prepare
the last command will provide both 2 and 3.
Hope this helps someone,
Last edited by xaos52 (2013-07-04 09:16:48)
^Thanks Xaos ... As ever posting kewl, useful and interesting nix things to the Crunch forum. Just got done compiling a kern an hr ago. No problems .. fortunately working fine as expected. Still wanted to say thanks though.
All hail Xaos52 ! hail ! hail ! hail ! and as always Vll! ...
Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.
Vll ! = ( Viva la gnu/Linux !) Vl#!! = ( Viva la #! !) Last but not least, UD ... OD ! = ( Use Debian ... or die !)
+1 for this one. Kernel compiling is a tricky subject, and you're inviting untold questions from a lot of folks regarding the "fun" that can occur with taking control of how things work at a deeper level. Thanks for sharing the easy-track to setting up symlinks.