LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-20-2001, 04:13 AM   #1
Marcel
LQ Newbie
 
Registered: Jun 2001
Posts: 7

Rep: Reputation: 0
Loading moduls at startup?


I've setup my tv-card on RedHat 7.1.
The module is inserted like this: insmod bttv card=2
How do i set up my system so that this is loaded at bootup?
I saw modules.conf but i didn't really understand the alias parts.

Thanks
 
Old 06-20-2001, 07:20 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
What distro are you using? On Slackware you would edit /etc/rc.d/rc.modules and put it in there. Also you probably want to use modprobe not insmod as modprobe will also load any dependencies that the module has.

cheers.

Jamie...
 
Old 06-20-2001, 01:16 PM   #3
Marcel
LQ Newbie
 
Registered: Jun 2001
Posts: 7

Original Poster
Rep: Reputation: 0
I use RedHat 7.1
 
Old 06-24-2001, 10:48 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Did you set dependency

I think you did not do depmod -a
 
Old 06-24-2001, 02:31 PM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Depmod shouldn't have any effect on loading a module at startup... it just lists the modules that need to be loaded first.

Jamie...
 
Old 06-25-2001, 01:04 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Oh



I thought it wrote them to the depfile.



I think you have to put them in /lib/modules/2.x.xwhatever/kernel/somefolder/

every thing under the /kernal folder is a module.

this is what I am going by I know it's not a network card but it is a module and it is RedHat


C. Installation guide using Redhat 5.XX
=======================================

Step 1 : Copy tulip.o into the latest kernel's modules:
cp tulip.o /lib/modules/2.0.XX/net/tulip.o
Where the XX is the version number of the latest kernel.

Step 2 : Update kernel's module dependencies:
/sbin/depmod -a


on 7.1 our modules are in the kernel folder



2.4.2-2enterprise
|-- build -> ../../../usr/src/linux-2.4.2
|-- kernel
| |-- arch
| | `-- i386
| | `-- kernel
| | |-- cpuid.o
| | |-- microcode.o
| | `-- msr.o
| |-- drivers
| | |-- atm
| | | |-- ambassador.o
| | | |-- atmtcp.o
| | | |-- eni.o



Your driver options should go in the /etc/modules.conf file

The alias is the module like bttv

the device name is hardware like eth0 or sound_slot_0 or parport_lowlevel

so it would go like this

alias devicename driver

alias eth0 tulip

options tulip options=x debug=x

you will probably have to check around to see how to do it

maybe something like

alias devicename bttv

options bttv options=card=2

I Have no Idea if this will work. You will have to check for the device name also.

Maybe just take the easy way out and put the command to load it in /etc/rc.d/rc.local


Let us know what you do, We are learning here





Last edited by DavidPhillips; 06-25-2001 at 02:28 AM.
 
Old 06-25-2001, 02:43 AM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Re: Oh

Quote:
Originally posted by DavidPhillips

I thought it wrote them to the depfile.
It does create the dependencies that are stored in the depfile (AFAIK) but this won't actually force the module to be loaded at boot time, which was the original question "How do i set up my system so that this is loaded at bootup?". Clearly if you're trying to use modprobe then it may not work without the dependencies wether loading at boot time or not, so its a valid comment to make... I just didn't want to add to the confusion by letting it sound like depmod controlled when modules got loaded.

As you suggested, editing something like /etc/rc.d/rc.local is a winner in this situation... I didn't want to guess at the names of the rc files as I can't remember their names off the top of my head in Redhat.

cheers!

Jamie...
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
module not loading at startup kysen Debian 3 04-17-2004 08:04 PM
Java loading at startup Redeye2 Mandriva 0 03-03-2004 09:38 PM
postfix not loading on startup cjpsparks Linux - General 2 11-07-2003 11:43 AM
dhclient loading on startup externalgreenfu Linux - Networking 0 07-25-2003 02:47 PM
Loading startup applications? Goonie Linux - General 1 06-28-2003 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration