SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-07-04 09:16:07

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Compiling kernel modules from source: prerequisites.

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,

Happy crunching  smile

Last edited by xaos52 (2013-07-04 09:16:48)

Offline

Help fund CrunchBang, donate to the project!

#2 2013-07-04 10:10:15

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,865

Re: Compiling kernel modules from source: prerequisites.

^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 ! wink 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 !) tongue

Offline

#3 2013-07-04 10:15:23

DebianJoe
#! Code Whisperer
From: The Bleeding Edge
Registered: 2013-03-13
Posts: 1,207
Website

Re: Compiling kernel modules from source: prerequisites.

+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.

Offline

#4 2013-07-04 10:18:04

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: Compiling kernel modules from source: prerequisites.

Vll! Vl#!! Vll!
wink

Offline

#5 2013-07-04 19:15:50

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Compiling kernel modules from source: prerequisites.

+1 Thanks for this.


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo