LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2007, 12:54 PM   #1
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
how to compile/install a kernel module?


I understand that you can install a single kernel module without having to recompile the kernel.

The fact is that I have manually compiled and installed kernel 2.6.20.1 on Slackware and I have forgotten to select a few modules which I need... I'm particulary interested in usb_storage to be able to download some photos off my digital camera.

Can I install a module without recompiling and reinstalling the whole kernel? Can somebody point me to a good tutorial/howto?

I tried googleing, searching the tutorials both on lq and on linux.org, and I looked at the documentation in the kernel source (which doesn't have very suggestive file names, at least for me), but I couldn't find a particular guide for this.

I considered it to be quite a newbie question, as I am quite new to kernel modules. If it is not, then please move it...

Thanks for reading. Any info/suggestion you have is welcomed.
 
Old 07-11-2007, 08:32 AM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Hi, if it is to be loaded as a module you can simply run

make menuconfig (or however you want to select the module)
and then
make modules_install

It will not recompile the whole thing,will take alot less time this way and with quite a few steps less.

Hope it helps some.
 
Old 07-11-2007, 08:43 AM   #3
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Original Poster
Rep: Reputation: 30
thanks, this should save quite a bit of time.

And I don't have to copy systemmap and config to /boot? I'll have to try it...
And will I have to reinstall the Nvidia driver afterwards?
 
Old 07-11-2007, 08:47 AM   #4
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
No copying needed and no you should not have to reinstall Nvidia. I believe you should only have to do that when a new kernel is installed, as you are only installing a driver you should be fine.
 
Old 07-11-2007, 09:09 AM   #5
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Original Poster
Rep: Reputation: 30
ok, thanks! that will save me countless hours of having to reinstall the whole kernel for a module I forgot...
 
  


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
Why can't I compile this kernel module? (kernel: 2.6.8-powerpc Debian sarge) Lannix Linux - Hardware 5 05-01-2007 12:29 PM
how to compile a 2.6 kernel module? NeoMagic Linux - Kernel 1 07-18-2006 10:07 AM
Install ati-drivers fails with "Failed to compile kernel module" erpe Debian 2 06-13-2006 05:09 AM
Compile in kernel or module? maginotjr Slackware 4 06-30-2005 11:54 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 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
Open Source Consulting | Domain Registration