LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 04-11-2004, 03:27 AM   #1
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Rep: Reputation: 15
Loading a Module at boot time


Just wanted to know what I would do to continuously load a module at boot time in Fedora Core 1, instead of modprobing it each time I log in.
 
Old 04-11-2004, 03:56 AM   #2
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
There should be a file called modules.rc or rc.modules in /etc/rc.d
add the line
/sbin/modprobe <modulename>
 
Old 04-11-2004, 11:58 PM   #3
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
fedora core 1 doesn't have a /etc/rc.d/rc.modules file I was told to use the rc.local file which will work if I want to boot into init 3 mode because the module loads after all the scripts. I want to boot into init 5 and be able to load the module early on, but I don't know where to put my modprobe command at to do this.
 
Old 04-12-2004, 01:22 PM   #4
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
nobody can tell me where to load a module durring early boot time? I don't want to have to re-compile the kernel with the module compiled in.
 
Old 04-12-2004, 11:57 PM   #5
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
well...I gave it a shot. Was hoping someone would be able to help. I think that I'll go back to using Debian. I don't care for the package manager, but I did have everything working with it.
 
Old 04-13-2004, 08:47 AM   #6
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
Ok just did a search of the forums and fedora uses /etc/modules.conf to load its modules at boot
 
Old 04-13-2004, 04:37 PM   #7
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
Well the modules.conf file is confusing. The module I'm trying to load early in the boot process (before rc.sysinit file) is the evdev which is the driver for my touchscreen. I want to be able to load in graphical boot (run level 5), but the screen hangs because I can't load this module early enough. I've tried putting this into the /etc/modules.conf file

alias /dev/input/event* evdev

but it does not load. If I boot in run level 3 and have the line

modprobe evdev in my /etc/rc.d/rc.local file, X comes up just fine after I login because the script gets run before I ever enter into anything graphical.

I'm stumped and really don't want to recompile the kernel which is
2.4.22 and have to upgrade to 2.6.3 which I heard is hard to get working with any distro. I really appreciate any help and am thankful for these forums. I do have some other little questions because I'm so used to using Slackware and I know that each distro has its own way of doing certain things.

FOR fedora Core 1:
where is the best place to put my own alias's
where do I change my command prompt (/etc/profile ?? /etc/bashrc ??)
when compiling a 2.6.x kernel, do I have to 'make dep'
 
Old 04-14-2004, 01:50 AM   #8
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
why not put /sbin/modprobe evdev in /etc/modules.conf?
 
Old 04-14-2004, 07:12 PM   #9
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
that command will not work in that file. The format of the commands in the modules.conf file I don't really understand but I've tried using /sbin/modprobe evdev and /sbin/modprobe evdev.o in the file, niether work.
 
  


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
loading the USB module at boot time marc1978 Linux - Hardware 2 10-31-2005 06:11 PM
Kernel module not loading at boot tweak1313 Fedora 2 12-04-2004 04:17 PM
module loading at boot vasco1984 Linux - General 4 05-11-2004 06:39 AM
Loading module at boot time. fei Linux - General 1 02-27-2004 09:05 PM
Module not loading at boot sbadelt Linux - Hardware 2 12-18-2003 11:34 AM


All times are GMT -5. The time now is 07:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration