LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   where is the snd-mixer-oss.o? (https://www.linuxquestions.org/questions/linux-software-2/where-is-the-snd-mixer-oss-o-229972/)

ayiiq180 09-13-2004 04:17 AM

where is the snd-mixer-oss.o?
 
when i want modprobe the snd-mixer-oss.o,that show "can't find the module",I search the /lib/modules/2.6.8/sound,that have't the module,but in the /usr/src/linux-2.6.8/sound,that is there.I want cp the module in the /lib/modules/2.6.8,where is the right place I cp?
thx!

UsualTuxpect 09-13-2004 05:53 AM

try the command ---> insmod

ayiiq180 09-13-2004 12:19 PM

I want to know the 2.6.x kernel's modules struct.
who can tell me the 2.6.x kernel's /lib/modules struct about sound?

UsualTuxpect 09-13-2004 12:54 PM

compiling kernel modules for the kernel 2.6:

If you want to compile the sum-module , follow these steps:

Create the Makefile in your directory with the sum-module.c

obj-m := sum-module.o

KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

Now do a

#make

... and the sum-module.ko is built.

Install it with install.sh:

#!/bin/sh
install -m 644 sum-module.ko /lib/modules/`uname -r`/kernel/drivers/sum-module.ko
/sbin/depmod -a

(adjust the /lib/modules path according to your needs)

Now make a

# modprobe sum-module


Or if you don't want to install the module, do this:

# insmod ./sum-module.ko


All times are GMT -5. The time now is 11:12 PM.