Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-15-2002, 03:55 AM   #1
LQ Newbie
Registered: Apr 2002
Posts: 23

Rep: Reputation: 15
compiling modules for a running kernel

i'm running slackware 8.1. my question is: can i compile modules from source without reompiling the whole kernel. my suggestion is:
in /usr/src/linux
1. make menuconfig
2. marking the needed modules with "m"
3. make modules
4. make modules_install

am i right or is there anything left to do like "make clean, dep etc."

Old 11-15-2002, 12:39 PM   #2
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
I would do a "make dep" before doing a "make modules"

Old 11-15-2002, 01:09 PM   #3
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
#1, why recomple modules when slackware default comes with all of them precompiled? Make sure you really need to do it(source update or something similar).
#2, make sure it's the exact same version of your RUNNING kernel. Make sure that your modules compile against the exact same static configuration as you are RUNNING - else they *shouldn't* load.
#3, Yes, it's fine to do it following the above two suggestions.
Old 11-16-2002, 05:24 AM   #4
LQ Newbie
Registered: Apr 2002
Posts: 23

Original Poster
Rep: Reputation: 15
thanks for quick reply! i have to recompile them because i recompiled the kernel once and left out all the modules i thought i would not need ;-). but they are the same version because they come from the same source shipped with slackware. do i have to make a "make dep" or not???



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
compiling kernel modules axr0284 Programming 2 11-26-2005 04:08 PM
Modules in Kernel Compiling SlackwareInAZ Slackware 1 07-29-2005 06:10 AM
need some help in Compiling Kernel modules bharat83 SUSE / openSUSE 1 01-07-2005 08:21 AM
Compiling Modules for 2.6.6 kernel! Bigg Mike Linux - Newbie 9 06-09-2004 10:04 PM
Compiling kernel modules? jrjarrett Linux - Software 0 09-09-2003 11:24 AM > Forums > Linux Forums > Linux - Newbie

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

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