View previous topic :: View next topic |
Author |
Message |
gregp01 Tux's lil' helper
Joined: 23 Feb 2004 Posts: 103
|
Posted: Sun Oct 31, 2004 12:05 am Post subject: Pass module arguments when statically compiled? [SOLVED] |
|
|
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 |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Sun Oct 31, 2004 1:54 am Post subject: |
|
|
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 |
|
|
dhalsiim Guru
Joined: 29 Jan 2003 Posts: 486
|
Posted: Sun Oct 31, 2004 3:13 am Post subject: |
|
|
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 |
|
Back to top |
|
|
slobba n00b
Joined: 20 Mar 2004 Posts: 34 Location: Sydney, Australia
|
Posted: Sun Oct 31, 2004 6:56 am Post subject: |
|
|
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 |
|
|
dhalsiim Guru
Joined: 29 Jan 2003 Posts: 486
|
Posted: Sun Oct 31, 2004 12:04 pm Post subject: |
|
|
That's awesome! Thank you for the finding ^^ |
|
Back to top |
|
|
gregp01 Tux's lil' helper
Joined: 23 Feb 2004 Posts: 103
|
Posted: Sun Oct 31, 2004 7:46 pm Post subject: Thanks |
|
|
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 |
|
|
|