Load module Permanently in Fedora 13 (/etc/modprobe ?)
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.