LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 04-20-2013, 07:30 PM   #1
Captain Pinkeye
Member
 
Registered: Oct 2012
Location: The Czech Republic
Posts: 201

Rep: Reputation: Disabled
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?
 
Old 04-20-2013, 09:29 PM   #2
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 877

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
Originally Posted by Captain Pinkeye View Post
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.
 
1 members found this post helpful.
Old 04-20-2013, 10:32 PM   #3
qweasd
Member
 
Registered: May 2010
Posts: 486

Rep: Reputation: Disabled
Quote:
Originally Posted by Captain Pinkeye View Post
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.

Last edited by qweasd; 04-20-2013 at 10:38 PM.
 
1 members found this post helpful.
Old 04-21-2013, 04:29 AM   #4
Captain Pinkeye
Member
 
Registered: Oct 2012
Location: The Czech Republic
Posts: 201

Original Poster
Rep: Reputation: Disabled
OK, things are much clearer now, thank you people.
 
  


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
Question about old added kernel modules when compiling a new kernel Alpha90 Linux - Kernel 6 09-13-2012 04:03 PM
kernel 2.6.9-89.0.9.ELsmp related question - drop_caches amit shukla Linux - Kernel 2 10-10-2009 10:22 PM
kernel 2.6.9-89.0.9.ELsmp related question amit shukla Linux - General 2 10-09-2009 10:00 AM
mkinitrd kernel-related question Tino27 Slackware 1 03-27-2004 12:14 AM
module related question when compiling kernel taoweijia Linux - Newbie 1 02-10-2004 05:31 PM


All times are GMT -5. The time now is 03:08 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration