LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2004, 04:17 AM   #1
ayiiq180
Member
 
Registered: Sep 2004
Posts: 39

Rep: Reputation: 15
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!
 
Old 09-13-2004, 05:53 AM   #2
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
try the command ---> insmod
 
Old 09-13-2004, 12:19 PM   #3
ayiiq180
Member
 
Registered: Sep 2004
Posts: 39

Original Poster
Rep: Reputation: 15
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?
 
Old 09-13-2004, 12:54 PM   #4
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
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
 
  


Reply


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
snd-emu2k1 module missing after installing Intel sound driver snd-azx comatosebuddha Linux - Software 15 01-25-2006 12:39 AM
OSS sound question: no mixer device LaoNiu Linux - Newbie 1 11-17-2004 04:15 PM
Issue with snd-pcm-oss and snd-mixer-oss; OSS load failed EnigmaX Slackware 3 07-26-2004 03:26 PM
Is there an OSS mixer? needforspeed Linux - Software 2 06-15-2004 07:26 PM
snd-seq-oss problem CuteAndFluffy Linux - Hardware 1 01-16-2003 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:05 AM.

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