LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-01-2005, 01:07 PM   #1
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Rep: Reputation: 15
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.
 
Old 02-01-2005, 05:25 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
you just need to add an entry to modules.conf, try "alias char-major-195 nvidia"
 
Old 02-01-2005, 07:35 PM   #3
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
It doesn't work. Maybe you know in which file Linux stores all the information about loaded modules.
 
Old 02-01-2005, 09:52 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
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.
 
Old 02-01-2005, 11:18 PM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
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.
 
Old 02-02-2005, 04:09 AM   #6
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
Thumbs up 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!
 
Old 02-02-2005, 07:45 AM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 115Reputation: 115
Interesting.

My modprobe.preload file does not contain the nvidia information, but my modprobe.conf file does.
 
Old 02-02-2005, 11:22 AM   #8
Mistreated
Member
 
Registered: Aug 2004
Location: Latvia, Riga
Distribution: Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
I think if you rewrite the nvidia information from /etc/modprobe.conf to /etc/modprobe.preload nothing will change.
 
  


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
Tool to identify memory leak in loadable kernel module appas Programming 3 06-05-2012 10:56 AM
Loadable "ne" module for kernel 2.6 ? jayseye Slackware 5 06-04-2005 07:45 PM
RedHat 9 (2.4.20-8) kernel rebuild without loadable module support RedHatDude Linux - Software 4 09-09-2003 10:32 PM
RedHat 9 (2.4.20-8) kernel rebuild without loadable module support RedHatDude Red Hat 1 09-09-2003 10:20 PM
loadable kernel module brajesh Linux - General 2 01-17-2003 01:54 AM


All times are GMT -5. The time now is 01:26 AM.

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