LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-11-2010, 01:54 AM   #1
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Thumbs up Load module Permanently in Fedora 13 (/etc/modprobe ?)


Hi,

Where to get the modules installed Permanently in /etc/modprobe directory in Fedora13?
 
Old 10-11-2010, 02:30 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by prayag_pjs View Post
Hi,

Where to get the modules installed Permanently in /etc/modprobe directory in Fedora13?
Sorry but i am not getting your point.

Do you want load module permanently ?

What command or method you tried ?

Regards,
 
Old 10-11-2010, 02:43 AM   #3
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159

Original Poster
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
modprobe <modulename> works

but when system restarts it doesnt list it under "lsmod"
 
Old 10-11-2010, 03:20 AM   #4
hurryi
Member
 
Registered: Apr 2010
Distribution: RHEL
Posts: 77

Rep: Reputation: 8
hi,

check this out

http://www.cyberciti.biz/faq/linux-h...-at-boot-time/
 
Old 10-11-2010, 03:39 AM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159

Original Poster
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi Please tell me for fedora13.In Fedora 13 there is no modprobe.conf
 
Old 10-11-2010, 04:21 AM   #6
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by prayag_pjs View Post
Hi Please tell me for fedora13.In Fedora 13 there is no modprobe.conf
create modprobe.conf file manually and place module entry in file.
OR
create file in /etc/modprobe.d/ dir and place entry in that file

Regards,

Last edited by sem007; 10-11-2010 at 04:23 AM. Reason: typo
 
Old 10-11-2010, 04:25 AM   #7
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
You can also use

Code:
echo "modprobe [modulenamehere]" >> /etc/rc.local
Regards,
 
Old 10-12-2010, 06:11 AM   #8
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159

Original Poster
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi,

Surfing on net and consulting some of the developers i came to know that there is some kconfig file in kernel source directory, where i can add the the module. I don't know how to start.Can some one shower some light?
 
Old 10-12-2010, 06:27 AM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by prayag_pjs View Post
Hi,

Surfing on net and consulting some of the developers i came to know that there is some kconfig file in kernel source directory, where i can add the the module. I don't know how to start.Can some one shower some light?
Sounds like what you're talking about here, is recompiling your kernel and making the module be statically-compiled right into the kernel, rather than as a separate module. This would mean the module would always be 'plugged in' at boot, and remain 'plugged in' all the time.

Simply editing kconfig file(s) will not do it - you need to rebuild the kernel if this is indeed what you want.
 
Old 10-12-2010, 06:41 AM   #10
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159

Original Poster
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Ya I need to do the same.

I will try to elaborate more on it.

I have this module which i compiled and intalled using modprobe (cx24120)

[root@localhost ~]# lsmod |grep -i cx24120
Quote:
cx24120 13077 0
i2c_core 20553 17 cx24120,mt312,stv0297,bcm3510,lgdt330x,nxt200x,mt352,stv0299,b2c2_flexcop,cx24123,cx24113,s5h1420,i2 c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
I want it to be statically-compiled right into the kernel.

Note:Its SkyStar S2 Data (Technisat) http://www.technisat-daun.de/downloa...-2008_6611.zip driver for conexant 24120.
 
Old 10-12-2010, 06:47 AM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hi

You don't need to elaborate more on what you want - I believe we are clear now. You need to rebuild your kernel, or I suppose, download a pre-compiled kernel for your OS, that already has the module statically compiled..

Does this module come with the kernel? I.e. is it an in-tree kernel module, or is this some module that goes with a piece of hardware but the driver is not included with the kernel? If the driver is included with the kernel, no biggie - rebuild the kernel.

If this driver is not included with the kernel, you would have a lot more work if you plan to incorporate it into the kernel. I'd say, don't bother. In that case, I would do one of the suggestions above, such as using:
/etc/rc.d/rc.local
file to insert the module during boot. That would be MUCH easier, and virtually guaranteed to work, rather than trying to incorporate an out-of-tree module into the kernel.
 
1 members found this post helpful.
Old 10-12-2010, 07:04 AM   #12
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159

Original Poster
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Some queries

If a module is shown in lsmod.

Does that mean the module is loaded correctly?

Also note that "driver is not included with the kernel"
 
Old 10-12-2010, 07:17 AM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
If driver is shown in `lsmod` then yes, it is loaded. Doesn't necessarily mean it's going to work, but if it's the right driver for the hardware, and it loads and unloads correctly, then that's as right as it can be.

If driver is "not included with kernel" then I repeat what I wrote above: simplest thing is to use rc.local and/or /etc/modprobe.conf or /etc/modprobe.d/some-file to tell the kernel to load this module when it encounters your device. Myself, I would use rc.local.
 
Old 10-12-2010, 07:31 AM   #14
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159

Original Poster
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Hi Celine,

Thanks for clearing my doubts.Ya module loads correctly using (adding insmod)/etc/rc.local.I need to connect the DVB stream now and check if the card works correctly.

Reagrds,

Prayag
 
Old 10-12-2010, 07:34 AM   #15
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hi,

yes, good idea to test it out and make sure it works!

Also, whenever possible, you should use `modprobe` rather than `insmod`, because `modprobe` is the newer method, and will do dependency checking when you insert/remove the module, whereas `insmod` does not do this.
 
  


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
Trying to load module "ndiswrapper" with modprobe; modprobe ndiswrapper doesn't work! Benjamin Linux - Wireless Networking 30 05-25-2008 07:04 AM
how to load dvb module at boot - modprobe.conf? stevod333 Linux - Software 0 08-14-2007 09:47 PM
What modprobe module should I load for my netgear nic card? abefroman Linux - Hardware 1 11-25-2005 01:07 PM
Load module permanent (modprobe) Beuzekom Linux - Newbie 2 01-24-2004 09:05 AM
modprobe: modprobe can't locate module ppp0 in redhat 7.1 while shutting down. cyberdude3k Linux - Networking 1 09-08-2003 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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