LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Load module Permanently in Fedora 13 (/etc/modprobe ?) (http://www.linuxquestions.org/questions/linux-software-2/load-module-permanently-in-fedora-13-etc-modprobe-837335/)

prayag_pjs 10-11-2010 01:54 AM

Load module Permanently in Fedora 13 (/etc/modprobe ?)
 
Hi,

Where to get the modules installed Permanently in /etc/modprobe directory in Fedora13?

sem007 10-11-2010 02:30 AM

Quote:

Originally Posted by prayag_pjs (Post 4123575)
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,

prayag_pjs 10-11-2010 02:43 AM

modprobe <modulename> works

but when system restarts it doesnt list it under "lsmod"

hurryi 10-11-2010 03:20 AM

hi,

check this out

http://www.cyberciti.biz/faq/linux-h...-at-boot-time/

prayag_pjs 10-11-2010 03:39 AM

Hi Please tell me for fedora13.In Fedora 13 there is no modprobe.conf

sem007 10-11-2010 04:21 AM

Quote:

Originally Posted by prayag_pjs (Post 4123658)
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,

sem007 10-11-2010 04:25 AM

You can also use

Code:

echo "modprobe [modulenamehere]" >> /etc/rc.local
Regards,

prayag_pjs 10-12-2010 06:11 AM

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?

GrapefruiTgirl 10-12-2010 06:27 AM

Quote:

Originally Posted by prayag_pjs (Post 4124814)
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.

prayag_pjs 10-12-2010 06:41 AM

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.

GrapefruiTgirl 10-12-2010 06:47 AM

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.

prayag_pjs 10-12-2010 07:04 AM

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"

GrapefruiTgirl 10-12-2010 07:17 AM

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.

prayag_pjs 10-12-2010 07:31 AM

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

GrapefruiTgirl 10-12-2010 07:34 AM

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.


All times are GMT -5. The time now is 06:57 AM.