LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-15-2002, 02:55 AM   #1
bass
LQ Newbie
 
Registered: Apr 2002
Posts: 23

Rep: Reputation: 15
compiling modules for a running kernel


Hi!
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."

bass
 
Old 11-15-2002, 11:39 AM   #2
KevinJ
Member
 
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"

-K
 
Old 11-15-2002, 12:09 PM   #3
jrmann1999
Member
 
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, 04:24 AM   #4
bass
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???

bass
 
  


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

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

All times are GMT -5. The time now is 02:55 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