LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-04-2011, 05:29 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Rep: Reputation: 35
Question Recompiling kernel required to add modules?


Hello

I only have basic experience recompiling a Linux kernel, and I have a question about adding dynamic modules.

In case I want to add a brand new module, do I need to recompile the kernel to include a reference to that new module, or is simply compiling a kernel with generic support of dynamic modules all it takes to add whatever modules I need later on, without recompiling the kernel and rebooting the host?

Thank you.
 
Old 01-04-2011, 01:08 PM   #2
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 110Reputation: 110
If you have the complete kernel build tree for your currently running kernel, configured correctly, and it has support for dynamically loaded modules, you shouldn't need to rebuild your kernel to build different modules / add new modules. BE CAREFUL THOUGH! I specifically used the word "shouldn't." Some modules have options which change header files, or object location definitions which can break kernel linkage. When in doubt, it's not too much hassle to rebuild the whole thing; the only impact is the time it takes to reboot.
 
Old 01-05-2011, 11:57 AM   #3
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Thanks for the tip. I kind of understood that, provided a kernel had been compiled with support for dynamic modules and its header files were available, it was possible to compile and load a new module without having to compile a new kernel and reboot with it.
 
  


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
modify kernel source without recompiling modules? scottbiker Linux - Kernel 6 05-22-2008 01:39 AM
Does recompiling the kernel overwrite the modules ? ankit4u1 Linux - General 10 07-20-2007 12:33 PM
word to the wise: when recompiling same kernel version, watch your /lib/modules/! stabu Slackware 7 04-03-2007 11:07 AM
forget to install modules after recompiling kernel janos SUSE / openSUSE 3 05-28-2006 07:17 AM
recompiling kernel goes fine, problem with make modules fritex Linux - Software 4 11-07-2002 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:47 PM.

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