Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-19-2004, 08:25 AM   #1
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Rep: Reputation: 30
Question compile and use driver modules in 2.6.2

I want to compile a driver module, and use it with kernel 2.6.2 which is already installed.
Can anyone explain me how to do this, or redirect me to information about this ?

/etc/modules file seem to be dead in this kernel version ?

Thanks !
Old 04-19-2004, 09:50 AM   #2
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
what driver ?

anyway, the general rule is...........

1)make sure your kernel source is installed, and in the corrrect place.
2) get the driver source code.
3) exctract the source code and cd into it.
4) read anything names README or INSTALL for special instructions.
5) unless told to do otherwise by README or INSTALL read the output from the command './configure --help' if any output is given
6) run './configure PARAMETERS' where parameters are any parameters you read about in ./congihure --help that you would like / need.
7) run 'make'
8) run 'make install'

tadaa... its installed.

now you need to load the kernel modules...
commands you may need are...
* lsmod (list loaded kernel modules
* rmmod (remove a kernel module, but only if kernel supports module unloading)
* insmod (insert a module)
* modprobe (insert a module, and all the other modules on which it depends)
* depmod -a (solve any kernel module dependency's)

for example, to load my alsa drivers i use......
modprobe snd-intel8x0 (alsa driver)
modprobe snd-pcm-oss (backwards compatability layer)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
no modules after kernel compile glorsplitz Slackware 7 09-20-2005 11:26 AM
compile or modules? redjokerx Linux - General 3 01-27-2005 01:08 AM
How to compile individual modules in 2.6 kule Linux - General 0 07-16-2004 07:07 AM
Compile Error- /lib/modules/extra/modules.dep UpChuck Debian 2 01-11-2004 11:20 AM
modules after re-compile kernel skarim Linux - Software 3 10-15-2003 02:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration