You are not logged in.

#1 2008-08-22 22:33:06

Boris Bolgradov
Member
From: Bulgaria
Registered: 2008-07-27
Posts: 185

Auto-loading modules from /etc/modprobe.conf gives error

Hi. I'm not sure if this is the right place to post this.

Anyway, here are the modules I load manually, and I need them to auto-load at boot:

# modprobe cx88xx card=27 tuner=59
# modprobe cx8800

The lines I added to /etc/modules.conf:

# Load modules for PlayTV Pro
options cx88xx card=27 tuner=59
options cx8800

The error I get:

WARNING: /etc/modprobe.conf line 3: ignoring bad line starting with 'options'

I don't know how to auto-load these modules. Someone please help me with this! hmm

Offline

#2 2008-08-22 22:37:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Auto-loading modules from /etc/modprobe.conf gives error

You don't need the second "options" line because you're not specifying any options for cx8800. That's why line 3 is a "bad line". smile

Offline

#3 2008-08-22 22:53:42

Boris Bolgradov
Member
From: Bulgaria
Registered: 2008-07-27
Posts: 185

Re: Auto-loading modules from /etc/modprobe.conf gives error

tomk wrote:

You don't need the second "options" line because you're not specifying any options for cx8800. That's why line 3 is a "bad line". smile

Thanks.
But how do I load the module then ? If the line is "cx8800" only, it gives me "... ignoring bad line starting with 'cx8800'".

The module "cx8800" must be loaded after "cx88xx". Will it load properly if I add it ("cx8800") to MODULES in /etc/rc.conf ?

Last edited by Boris Bolgradov (2008-08-22 22:54:42)

Offline

#4 2008-08-23 00:00:08

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: Auto-loading modules from /etc/modprobe.conf gives error

i think it should load fine in rc.conf. Just put them in the order that you want and it will load by that order. About the option you need, i just don't know.

Offline

#5 2008-08-23 06:41:44

Boris Bolgradov
Member
From: Bulgaria
Registered: 2008-07-27
Posts: 185

Re: Auto-loading modules from /etc/modprobe.conf gives error

Alright, thanks for the help guys. I finally got them to auto-load smile
I have "options cx88xx card=27 tuner=59" in /etc/modprobe.conf and "MODULES=(... cx88xx cx8800)" in /etc/rc.conf.
I found that the "options" line in /etc/modules.conf does not load the module, but adds these options to it when you load it, something like aliases (from the man page). roll

Offline

#6 2009-04-30 22:51:39

Neo_The_User
Member
From: The Matrix
Registered: 2009-03-30
Posts: 96
Website

Re: Auto-loading modules from /etc/modprobe.conf gives error

I seem to be having a similar problem. I'm trying to follow the dri building guide but archlinux doesn't have /etc/modules.conf so what do I do?

2.6.x kernels:

pre-install <drm module> /sbin/modprobe "-k" "agpgart"
pre-install agpgart /sbin/modprobe "-k" "<agp chipset driver>"

Thats what I'm trying to do. For more info go here:

http://dri.freedesktop.org/wiki/Buildin … 16c0c945a7

I don't know if I should make a /etc/modules.conf or add what to what. Specific instructions would be great. Btw i have a via chipset (vt8237) and an ati radeon (9800 pro) graphics card. Thanks in advance.

btw correct me if I'm wrong:

/etc/rc.conf:

LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="America/Chicago"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

#not sure if a line in MODULES=(...) should be made or not

MOD_AUTOLOAD="yes"
MODULES=(pre-install radeon /sbin/modprobe "-k" "agpgart"
pre-install agpgart /sbin/modprobe "-k" "via_agp")

USELVM="no"

HOSTNAME="archie"

eth0="eth0  192.168.0.10 netmask  255.255.255.0 broadcast  192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(gateway)

DAEMONS=(!syslog-ng !netfs !crond network hal fam alsa gdm)

Now what do I put in /etc/modprobe.conf (if anything) because I'm really confused

Last edited by Neo_The_User (2009-04-30 22:58:58)


AMD Phenom II X4 955 with Optimized Kernel
5 GB DDR2 RAM
320 GB SATA Hard Drive + 160 GB SATA Hard Drive
ATi RadeonHD 5830 GIGABYTE

Offline

#7 2009-05-01 08:56:15

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Auto-loading modules from /etc/modprobe.conf gives error

modules.conf is only valid for 2.4 kernels, and modprobe.conf does not support the pre-install command. Just list the modules in the rc.conf MODULES array in the correct order.

For future reference - please do not post in threads that have been inactive for more than 6 months. Start a new thread, with a reference to the old one if necessary.

Offline

Board footer

Powered by FluxBB