LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   kernel: modules enabled? (http://www.linuxquestions.org/questions/linux-software-2/kernel-modules-enabled-375958/)

newbie9500 10-23-2005 01:29 AM

kernel: modules enabled?
 
i was trying to compile some source code, and a message appeared indicating that "kernel modules were not enabled" and that modules should be enabled and the kernel recompiled. how can i check whether modules are enabled or not for the kernel? i tried "lsmod" and can see modules that have been loaded. i was also able to do an "insmod" before, so how come i got an error indicating that modules were not enabled?

Kahless 10-23-2005 02:47 AM

go back into menuconfig and see if you unchecked module support. recheck it, and go threw the steps again.

newbie9500 10-23-2005 09:24 PM

where is menuconfig? i'm using kde 3.x and a standard linux distro.
is there an option to enable or disable module support without recompiling the kernel?

is there a command line way to find out if modules are enabled, and if they are not enabled, to enable them?

thx

jtshaw 10-23-2005 10:48 PM

your kernel source is typically found in /usr/src/linux. If it isn't there it should be somewhere else in the /usr/src directory (maybe linux-<version>). You have to have the source to build modules.. what is likely the problem is your source isn't configured so it thinks you have no module support. If you have no kernel source you are going to need to get the kernel source package from your distribution.

cd /usr/src/linux (or whatever directory you need to be in) and type make menuconfig. I don't remember exactly where the option is in 2.4 kernels, but in 2.6 kernels it is under the third option on the main menu (Loadable Module Support).

newbie9500 11-05-2005 08:48 PM

thx.
I did check in menuconfig, and loadable module support was builtin. I assume that this means that I should not have received the error that I had.
I was able to get past that build error, though another error came up that seems to be unrelated to the first error. It looks like this driver that I was building may not have been developed very well, or maybe it was developed for a different kernel configuration.

1) is there a command line command that will tell me if modules are enabled?
2) where is there more documentation on "menuconfig" and its various options (are these unique to a particular kernel version)?

thx.


All times are GMT -5. The time now is 04:05 AM.