LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 09-14-2011, 08:54 PM   #1
DJ Shaji
Member
 
Registered: Dec 2004
Location: India
Distribution: Debian Squeeze, Fedora 17
Posts: 431
Blog Entries: 15

Rep: Reputation: 75
Unhappy Build a single (oss) kernel module on Squeeze


I'm running Squeeze, and I've recently been fiddling around, and I found that I can build specific modules with module-assistant. But, it will only let me build certain modules, and not others.

Specifically, I'm looking for the old "sb" oss module (100% soundblaster compatible). I was planning to download the new 3.01 with the corresponding rt patch and build a whole new kernel. But, woe, kernel.org is down

So, until it comes back up again, I want to make do with something. Is it at all possible for me to build a single kernel module against the version I'm running (2.6.32-5-686) ? Is there a debian way to do this?
 
Old 09-16-2011, 12:28 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
You should be able to get the sources from the Debian website. I don't know of any debian way, but the kernel.org way seems pretty clean to me. I just reviewed a 2.6.32 kernel source tree, and the OSS Soundblaster module seems to be still part of it.
You should be able to simply add the driver(s) of choice to the kernel config file (make menuconfig), and then 'make modules; make modules install', to add them to the installed modules on your host (assuming the kernel source tree matches the installed kernel).

--- rod.
 
Old 09-17-2011, 01:04 AM   #3
DJ Shaji
Member
 
Registered: Dec 2004
Location: India
Distribution: Debian Squeeze, Fedora 17
Posts: 431
Blog Entries: 15

Original Poster
Rep: Reputation: 75
I finally did that yesterday. Actually, I was waiting for kernel.org to come up back online again, but then I discovered that the kernel was also available on github, so I downloaded it from there and maked it.

I was just wondering that since oss4 modules could be built via module-assistant, I thought that perhaps something similar could be done with the old oss modules.

Even though the old oss modules are still a (deprecated) part of the kernel tree, no current distro ships them, and they're really not much useful anyway, except in a rare case like mine. ALSA is better in every way, and without limitations. oss4 drivers (at least the free ones) only go up to 48000 @ 16 bits. Not much fun at all. Even on my SoundBlaster I use the snd-ca0106 driver; but apparently the older oss modules need to be sitting there for the card to initialize.
 
  


Reply

Tags
build, kernel, module, single


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
Rebuilding a single kernel module kmand Linux - Kernel 7 08-18-2009 06:33 PM
How to build a pre compiled kernel with source as a single rpm? sundarhere Linux - Kernel 0 10-26-2006 02:27 AM
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
How do you rebuild a single kernel module? rollo Linux - General 3 01-29-2006 01:19 AM


All times are GMT -5. The time now is 10:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration