LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiling modules for a running kernel (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-modules-for-a-running-kernel-35511/)

bass 11-15-2002 02:55 AM

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

KevinJ 11-15-2002 11:39 AM

I would do a "make dep" before doing a "make modules"

-K

jrmann1999 11-15-2002 12:09 PM

#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.

bass 11-16-2002 04:24 AM

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


All times are GMT -5. The time now is 10:38 AM.