Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-26-2007, 01:38 AM   #1
Registered: Nov 2004
Location: Turkey
Distribution: Slackware
Posts: 145

Rep: Reputation: 16
Passing module parameters to kernel

Hi, I know we can pass options to a module by using modeprobe.conf
I would like to know how can I pass options to a module that is statically compiled into kernel?
I want to compile my sound card(snd_hda_intel) into kernel but I have to pass "option model=lenovo" parameter to work correctly.

Any ideas?
Old 12-26-2007, 03:30 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,855

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
I don't think that will work. It's a feature of modprobe that lets you pass options when loading a module. I could be wrong, but I think this is the case. Also, it used to be advised to build all sound drivers as modules to insure proper operation -I'm not sure if this advice still holds, but that's what they used to say -basic sound support hard-linked in the kernel, but individual drivers as modules.
Old 12-26-2007, 07:52 AM   #3
Registered: Nov 2004
Location: Turkey
Distribution: Slackware
Posts: 145

Original Poster
Rep: Reputation: 16
OK,if there is no solution I have to compile my sound card as a module.
Old 12-26-2007, 08:21 AM   #4
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Um, it's possible, but you have to basically pass them to the kernel at boot time, which is unpleasant to say the least. Collect enough of these and what you type to lilo just to get the machine to boot could become a small novella.

The drivers for Intel HDA in particular are currently undergoing "heavy flux" (which is a nice way of saying "changing like mad") and compiling them statically is nowhere close to a useful thing to do. Don't bother.

If you're having trouble with Intel HDA sound, the only thing that's actually likely to work is to upgrade your kernel. The only worrisome part is that since kernel 2.6.23.x is using ALSA 1.0.15 as it's base, and not ALSA 1.0.14 (which is the version of the libraries and so forth that Slackware ships) you might wind up needing to upgrade all the ALSA userspace stuff--then again you might not. At the very least check the ALSA changelog for anything relating to the chipset variant you have or just try the latest 2.6.22.x kernel, since it still uses the same userspace stuff as what Slackware ships. If that sorts it you can stop there instead of having to try 2.6.23.x.

(FWIW, I am using on my laptop for this very reason.)

Last edited by evilDagmar; 12-26-2007 at 08:27 AM.


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
need help passing parameters in C++ hedpe Programming 1 10-21-2007 10:58 AM
passing $_SESSION parameters in PHP lemainer Programming 1 02-22-2006 06:50 PM
Passing parameters to a shell script neocookie Linux - General 5 10-20-2005 11:44 AM
Passing parameters to bash script Kamikazee Programming 4 10-01-2005 06:41 AM
Passing kernel parameters at boot with LILO Crashedfiesta Linux - Laptop and Netbook 2 12-16-2003 08:51 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:19 PM.

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