Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-04-2011, 06:29 AM   #1
Registered: Aug 2008
Posts: 590

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


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, 02:08 PM   #2
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 109Reputation: 109
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, 12:57 PM   #3
Registered: Aug 2008
Posts: 590

Original Poster
Rep: Reputation: 33
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.


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

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration