LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   kernel-modules related question (http://www.linuxquestions.org/questions/slackware-14/kernel-modules-related-question-4175458939/)

Captain Pinkeye 04-20-2013 06:30 PM

kernel-modules related question
 
Slackware (64bit) has two kernels (kernel-huge and kernel-generic packages) but only one kernel-modules for both kernels. So, if i understand correctly, the kernel-modules contains ALL kernel modules?
If i recompile kernel from default kernel-source, do i have to do 'make modules' or not?

volkerdi 04-20-2013 08:29 PM

Quote:

Originally Posted by Captain Pinkeye (Post 4935525)
Slackware (64bit) has two kernels (kernel-huge and kernel-generic packages) but only one kernel-modules for both kernels. So, if i understand correctly, the kernel-modules contains ALL kernel modules?
If i recompile kernel from default kernel-source, do i have to do 'make modules' or not?

In the case of huge/generic, one kernel is an exact subset of the other. If you make any significant changes to the kernel config, the modules may no longer be compatible.

In general, if you're compiling your own kernel, it is a good idea to compile your own modules as well.

qweasd 04-20-2013 09:32 PM

Quote:

Originally Posted by Captain Pinkeye (Post 4935525)
Slackware (64bit) has two kernels (kernel-huge and kernel-generic packages) but only one kernel-modules for both kernels. So, if i understand correctly, the kernel-modules contains ALL kernel modules?
If i recompile kernel from default kernel-source, do i have to do 'make modules' or not?

The kernel README is very enlightening and easy to read.

With the default kernel version > 3, make (no args) makes the image and the modules. There is no point running make modules unless you are meaning to skip building the kernel. To install your modules, you need to run make modules_install. Now you have to be careful, because modules get installed into /lib/modules/$(uname -r). If you are building the stock kernel that came with Slackware, then you will collide with the kernel-modules package. An easy workaround is to change CONFIG_LOCALVERSION in the kernel config to something unique. This problem disappears if you are building a kernel version different from the stock.

P.S. Not the current output of uname -r, but what it would say in the future, when the new kernel is running.

Captain Pinkeye 04-21-2013 03:29 AM

OK, things are much clearer now, thank you people.


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