LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2003, 09:08 AM   #1
ldieter
LQ Newbie
 
Registered: Jun 2001
Location: Avon NY
Distribution: Suse
Posts: 12

Rep: Reputation: 0
How to load aha1542 module?


Environment:

SUSE 8.0, with an installed Adaptec 1542 card (ISA), and a DDS drive attached to that.

I can load the drivers for the devices manually fine (insmod aha1542, insmod st), and everything is fine, but I can't figure out for the life of me how to get these to load automatically.

I've also run into the same thing with a Symbios PCI SCSI adapter as well.

I'm sure that this is probably a FAQ somewhere, but I haven't been able to locate it...any assistance is appreciated.
 
Old 10-24-2003, 02:05 PM   #2
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 33
By automatically, do you mean load at boot time or have the kernel automatically load them when they're needed?
 
Old 10-24-2003, 02:11 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
You will need to add them to your modules.conf file where most other modules are loaded from automatically at boot time.
 
Old 10-24-2003, 02:11 PM   #4
ldieter
LQ Newbie
 
Registered: Jun 2001
Location: Avon NY
Distribution: Suse
Posts: 12

Original Poster
Rep: Reputation: 0
I was thinking at boot time.

I've added the line:

alias scsi_hostadapter aha1542

To modules.conf to see if that does the trick, but I can't reboot the server to try it right now. If it works, I guess my next question would be, how do you know what the second parameter on that line (scsi_hostadapter) would be for a particular card?
 
Old 10-24-2003, 02:25 PM   #5
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 33
alias won't load it automatically...basically, it tells the kernel and the module utilities that the names "scsi_hostadapter" and "aha1542" are interchangeable.

To load at boot, add the necessary insmod command to the init script for the runlevel in which you want to load them.
 
Old 10-24-2003, 02:27 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by Kurt M. Weber
To load at boot, add the necessary insmod command to the init script for the runlevel in which you want to load them.
Actually its better to use the modprobe command in the modules.conf file.

Regards.
 
Old 10-24-2003, 04:04 PM   #7
ldieter
LQ Newbie
 
Registered: Jun 2001
Location: Avon NY
Distribution: Suse
Posts: 12

Original Poster
Rep: Reputation: 0
OK...coupla things...I have:

pre-install st modprobe aha1542

in modules.conf, and put the line:

st:234nce:/sbin/modprobe st > /dev/null 2>&1

in inittab, which works dandy (thanks Kurt), but it seems kind of kludgey...as trickykid suggested, seems like you could put something like "modprobe aha1542" in modules.conf, but it doesn't like that. Not too surprising, since the man page doesn't say that that's a valid keyword.

Guess there's nothing I can put in modules.conf to do what I want? Am I missing something?
 
Old 10-24-2003, 04:11 PM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
You will have to put something like this in your modules.conf file:

alias scsi_hostadapter aha1542
modprobe aha1542

And see if that works.
 
Old 10-25-2003, 11:06 AM   #9
Kurt M. Weber
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 335

Rep: Reputation: 33
Quote:
Originally posted by trickykid
Actually its better to use the modprobe command in the modules.conf file.

Regards.
Ahh...was not aware that could even be done.

Why is it better, exactly?
(not being an asshole, just want to know before I go and do it)

Thanks.
 
Old 10-25-2003, 12:34 PM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by Kurt M. Weber
Ahh...was not aware that could even be done.

Why is it better, exactly?
(not being an asshole, just want to know before I go and do it)

Thanks.
Read the man pages on both and you might understand why. Also take into consideration usually just about every modules.conf type file uses modprobe instead of insmod.

Regards.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Module Auto-Load: module.conf tricks? m_e_perry Linux - Newbie 3 10-07-2004 06:45 PM
module cant load Ryan450 Linux - Hardware 3 08-12-2004 02:33 PM
Need help getting module to load mitchmiller Linux - Hardware 1 05-16-2004 08:50 PM
how to load a module? Mizugori Linux - Software 3 01-19-2004 07:42 PM
why won't this module load? shanenin Linux - Software 1 10-16-2003 10:23 AM


All times are GMT -5. The time now is 02:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration