Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pass module arguments when statically compiled? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gregp01
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2004
Posts: 103

PostPosted: Sun Oct 31, 2004 12:05 am    Post subject: Pass module arguments when statically compiled? [SOLVED] Reply with quote

How do I pass in what would normally be module parameters, if the module is compiled into the kernel?

I'm trying to get LIRC working with my SB Live! with the IR-enabled LiveDrive. According to this post I need to pass 'enable_ir=1' to the ALSA EMU10K1 module. However, I've compiled ALSA and the EMU module statically into my kernel. How do I pass in the argument, then?


Last edited by gregp01 on Sun Oct 31, 2004 7:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Sun Oct 31, 2004 1:54 am    Post subject: Reply with quote

Can you just pass the parameter to the kernel like any other kernel paramter? Or does this not work?
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
dhalsiim
Guru
Guru


Joined: 29 Jan 2003
Posts: 486

PostPosted: Sun Oct 31, 2004 3:13 am    Post subject: Reply with quote

I thought boot arguments were to the kernel, like root=xx video=xx ether=xx and etc. Perhaps the only way to go about your problem is compiling them as modules? Unless there's another way, then I would really want to know too!

Then I'd compile all my modules statically 8)
Back to top
View user's profile Send private message
slobba
n00b
n00b


Joined: 20 Mar 2004
Posts: 34
Location: Sydney, Australia

PostPosted: Sun Oct 31, 2004 6:56 am    Post subject: Reply with quote

From /usr/src/linux/Documentation/kernel-parameters.txt:

Code:
Module parameters for loadable modules are specified only as the
parameter name with optional '=' and value as appropriate, such as:

        modprobe usbcore blinkenlights=1

Module parameters for modules that are built into the kernel image
are specified on the kernel command line with the module name plus
'.' plus parameter name, with '=' and value if appropriate, such as:

        usbcore.blinkenlights=1

Assume it works but I've never tried it.
Back to top
View user's profile Send private message
dhalsiim
Guru
Guru


Joined: 29 Jan 2003
Posts: 486

PostPosted: Sun Oct 31, 2004 12:04 pm    Post subject: Reply with quote

That's awesome! Thank you for the finding ^^
Back to top
View user's profile Send private message
gregp01
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2004
Posts: 103

PostPosted: Sun Oct 31, 2004 7:46 pm    Post subject: Thanks Reply with quote

I don't know if it made my IR port work (I found another solution that doesn't involve lirc*), but the knowledge should come in handy in the future...

*use livetools:

> emerge livetools
> liveird

Then enable the XMMS plugin that the emerge installed, and you're good to go.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum