You are not logged in.

#1 2005-05-09 01:18:26

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

how to set options for modules at boot-time? [SOLVED]

Hi all,

I have just compiled the zc030x kernel module for my Creative Webcam NX Pro from http://zc0302.sourceforge.net/zc0302.php and it works. /dev/video0 is created and all I need to do is to get it work with applications such as gtkam.

But the problem lies with this: to get the webcam working i need to use an option whilst loading the zc030x module. I can do it manually with this command:

insmod zc030x.ko sensor=HV7131B

Basically the extra option specifies the sensor for my webcam. How can I specify this option at boot-time though? Am I forced to always manually run this command?

Also, does the command insmod do exactly the same as modprobe?

Thanks


There is no spoon in Arch...

Offline

#2 2005-05-09 01:31:13

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: how to set options for modules at boot-time? [SOLVED]

If you load the module using modprobe, you can specify options on a seperate line.

options snd-via82xx index=0 dxs_support=3

"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-05-09 01:48:05

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: how to set options for modules at boot-time? [SOLVED]

sorry cactus but I'm confused... what do you mean by that code line? That goes in rc.conf?

sorry but I'm really new to adding options to modules...


There is no spoon in Arch...

Offline

#4 2005-05-09 02:07:46

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: how to set options for modules at boot-time? [SOLVED]

hang on! I'm such an idiot... you meant to put that line in /etc/modprobe.conf right?

if thats it, I should've known... :oops:


There is no spoon in Arch...

Offline

#5 2005-05-09 02:22:43

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: how to set options for modules at boot-time? [SOLVED]

Yes he does.

Offline

#6 2005-05-09 02:35:05

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: how to set options for modules at boot-time? [SOLVED]

just tested it out and all works great. Cheers cactus!


There is no spoon in Arch...

Offline

#7 2005-05-09 21:08:57

DarkPath
Member
Registered: 2004-11-15
Posts: 50

Re: how to set options for modules at boot-time? [SOLVED]

As an aside, I had the same problem a while ago but found another solution...

The acerhk module needs two parameters to have it work with my notebook. I found that just enclosing the entire module + parameters in ' marks works just fine in my rc.conf. Here's my MODULES line from rc.conf:

MODULES=(agpgart b44 !usbserial !ide-scsi fglrx evdev 'acerhk poll=1 autowlan=1' ipw2200)

now if only I'd take the time to work phrakture's wireless scripts into my system, I could actually get wireless itself working. wink

Offline

#8 2005-05-09 23:51:36

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: how to set options for modules at boot-time? [SOLVED]

nice DarkPath. That looks like a great way, especially if you want to test certain options for modules

Cheers wink


There is no spoon in Arch...

Offline

Board footer

Powered by FluxBB