Kernel modules
Hi,
I'm using Slack 10.2 with a custom kernel. When you download/install/compile a custom kernel, where do the kernel modules come from? Many thanks, Mark. |
Quote:
If you're asking where the code comes from, it's part of the kernel source. |
If using 2.6 kernels the correct commands is
make Bulid the kernel and modules make modules_install The make now does the kernel image and modules both with the single command. In 2.4 kernels you would do a make to build the kernel make modules to build the modules make modules_install to place them in /lib/modules Brian |
Quote:
|
Old habits, over 10 years in linux and I still do some of the simpliest things the old fashion way
|
Quote:
|
Hiya all,
The reason I as is that after compiling 2.6.18.3, my /lib/modules/2.6.18.3/kernel folder is empty. Shouldn't it have a drivers folder which is full of goodies that I've compiled? M. |
Did you skip the "make modules_install" step? Sounds like it. just go to the kernel source directory and run the command. If it's already been compiled it should go ahead and install the modules.
|
Hiya Masonm,
No I didn't skip that step... I always make sure I run that. I'm stumped http://images.linuxquestions.org/que...milies/mad.gif :mad: Mark. |
make modules_install
^ didnt leave the underscore out did you ?? |
Hi synapse,
No, definately got the underscore in there. I'm wondering, am I barking up the wrong tree here? If I compile everyting into the kernel directly (which I tend to do) and not as modules, then will I see anything in the /lib/modules/2.6.18.3/kernel folder? Mark. |
To get a list of compiled modules that should be under your /lib/modules/2.6.18.3 directory, run the following command:
Code:
grep -i '=M' /usr/src/linux-2.6.18.3/.config Code:
find /lib/modules/2.6.18.3 -type f -name '*.ko' Code:
find /lib/modules/2.6.18.3 -type f -name '*.ko' | wc -l Of course, if the first command doesn't show any compile options selected as modules, then it makes sense that the directory structure was created by 'make modules_install', but no actual modules were placed there. Good luck |
Quote:
M. |
If you compiled everything into the kernel instead of as modules you have your answer.
|
hmmm ... maybe, but it is still pretty much. I thin, I would not reach 300 when I would compile everything in modules.
|
All times are GMT -5. The time now is 04:06 PM. |