LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compile and use driver modules in 2.6.2 (https://www.linuxquestions.org/questions/linux-newbie-8/compile-and-use-driver-modules-in-2-6-2-a-172005/)

TroelsSmit 04-19-2004 07:25 AM

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 !

qwijibow 04-19-2004 08:50 AM

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)


All times are GMT -5. The time now is 09:24 PM.