LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-24-2003, 09:22 PM   #1
tenn_eric
LQ Newbie
 
Registered: May 2001
Distribution: FC3
Posts: 21

Rep: Reputation: 15
loading modules


What is the best way to load modules at boot time? I got LFS installed, rebooted, it couldnt find my netcard(Netgear FA310TX), i checked lsmod and tulip wasnt loaded, i loaded tulip, brought the interface up and it worked. Please help a poor newbie!
 
Old 08-24-2003, 10:01 PM   #2
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
I'm not sure about LFS, but in Slack you edit the /etc/rc.d/rc.modules file.
--Taj
 
Old 08-24-2003, 10:03 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Just modify a startup script. I believe the path is /etc/rc.d

You should see a lot of scripts that you installed with LFS. I would suggest going to the script responsible for the network interface (I can't remember the name off-hand), and simply add the command to load the module(s) in the "start" portion of the script.

If you nit-pick (like me), you might want to add the commands to unload the modules in the "stop" portion, but isn't extremely necessary.
 
Old 08-26-2003, 10:37 PM   #4
tenn_eric
LQ Newbie
 
Registered: May 2001
Distribution: FC3
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks, putting it in the script worked.

Eric
 
Old 09-01-2003, 05:48 AM   #5
citro
LQ Newbie
 
Registered: Jul 2003
Posts: 17

Rep: Reputation: 1
well, I'd suggest a much cleaner way:
put a line in /etc/modules.conf
alias eth0 <modulename>

where eth0 is the interface name and <modulename> is the name of the kernel module you'd like to load, for 3com Ethernet cards for example this would be: 3c59x.o

This option loads the modules automatically when you try to activate / use eth0, thus it's marked with an "autoremove" option (what doesn't make sense for network cards) where the kernel can remove the module automatically when it isn't used to save memory.
I recommend this because it's easier to check /etc/modules.conf if you want to compile a new kernel - most modules you use are in there - than to check every script in /etc/rc.d/init.d whether it loads a module or not.
And, imho, it's easier to play around with modules, let's say if you want to test a new driver.

cu, citro
 
  


Reply



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
loading modules danimalz Debian 2 10-18-2005 10:22 PM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
loading modules priller Linux - Newbie 1 06-03-2004 09:09 AM
modules are loading that shouldn't in my rc.modules thrice Slackware 3 05-11-2004 10:35 PM
loading modules w/o rc.modules e1000 Slackware 3 01-09-2004 02:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:53 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