LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to add new loadable module to kernel? (https://www.linuxquestions.org/questions/linux-software-2/how-to-add-new-loadable-module-to-kernel-284953/)

Mistreated 02-01-2005 12:07 PM

how to add new loadable module to kernel?
 
I want to add nvidia module to load at startup. I've loaded it with modprobe command and it worked, but after rebooting it wasn't there, so i have to do it again and again after each startup. I wander where Linux stores all the information about modules to load. I've checked /etc/modprobe.conf, but there was only sound modules.. :(
Red Hat have nice utility called ntsysv, but my current distro is Mandrake 10.1 (official). Can anyone help me? Thanks.

acid_kewpie 02-01-2005 04:25 PM

you just need to add an entry to modules.conf, try "alias char-major-195 nvidia"

Mistreated 02-01-2005 06:35 PM

It doesn't work. :( Maybe you know in which file Linux stores all the information about loaded modules.

foo_bar_foo 02-01-2005 08:52 PM

we are currently in a situation where different distros are dealing with this issue in different ways

i think in mandrake 10.1
Edit the file /etc/modprobe.preload and add the word nvidia to it.

jiml8 02-01-2005 10:18 PM

I had this problem back in 9.0. Since that time I have done an upgrade to 9.2 and later an upgrade to 10.0 Community. I have not subsequently done a clean install.

So, I don't know if 10.1 handles things the way 9.0 did.

To solve my problem in 9.0, I added the line "video_adapter" (without the quotes) to the file /etc/modules, and I added the line "probeall video_adapter nvidia" to the /etc/modules.conf file.

That fixed it, for me, back then. As I look now on my 10.0 system, my /etc/modules file still has the video_adapter line and my /etc/modules.conf still has the probeall video_adapter nvidia line.

So give it a try.

Mistreated 02-02-2005 03:09 AM

it worked!
 
Finally it worked, ndidia module is loaded at the startup. And according to the comment in /etc/modprobe.preload: "this file is for module-init-tools (kernel 2.5 and above) ONLY for old kernel use /etc/modules". Next time i'll study all comments in configuration files more carefully. :) But i'm still curious where the other modules are stored, cause my etc/modprobe.preload have got only 2 modules (including nvidia).
Thanks for help guys!

jiml8 02-02-2005 06:45 AM

Interesting.

My modprobe.preload file does not contain the nvidia information, but my modprobe.conf file does.

Mistreated 02-02-2005 10:22 AM

I think if you rewrite the nvidia information from /etc/modprobe.conf to /etc/modprobe.preload nothing will change.


All times are GMT -5. The time now is 03:33 AM.