LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-26-2012, 05:17 AM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
modules, boot process, how, why, where?


Looking for some pointers, this is a follow on from a previous post, but thought it best to have its own thread.

I'm looking on information on how modules are inserted/loaded at boot time, what determines which ones are selected etc etc.

I know I have /lib/modules/[kernel version]
When I build my kernel, does the /lib/modules/[kernel version] filder beomce poulated based on the .config file used to customise the kernel?

I also have /etc/rc.d/rc.modules
What creates this file, is it standard or customised to my system?

I see /etc/rc.d/rc.S runs the above file at boot time, so what determines which modules are available and which should be loaded?

cat /proc/modules only shows:
agpgart 42648 0 (unused)



All help/comments are as always appreciated.
 
Old 03-26-2012, 06:26 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by plisken View Post
I know I have /lib/modules/[kernel version]
When I build my kernel, does the /lib/modules/[kernel version] filder beomce poulated based on the .config file used to customise the kernel?
Yes, the modules directory is created when you launch
Code:
make modules_install
Quote:
I also have /etc/rc.d/rc.modules
What creates this file, is it standard or customised to my system?
I don't know how it is created, but if you have a look at this file you will see that it only should be used if udev is not present or not working correctly (or your hardware needs a special treatment).

Quote:
I see /etc/rc.d/rc.S runs the above file at boot time, so what determines which modules are available and which should be loaded?
It is udev that loads the modules.
 
Old 03-26-2012, 07:00 AM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
My understanding of rc.modules is that it is hand-crafted. I don't know whether its contents are slackware specific or something generic that was originally from upstream somewhere, but the source file can be found in $mirror/slackware/source/k/kernel-modules/rc.modules.new. It hasn't been updated in a long while though, and when Patrick decided to modularise the loop device module he added an etc/rc.d/rc.loop initscript rather than use the traditional rc.modules file. Whether this means rc.modules is 'deprecated' or not I don't know.

Last edited by GazL; 03-26-2012 at 07:06 AM. Reason: clarified.
 
Old 03-26-2012, 08:40 AM   #4
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
I should add that these questions arose from findings on a slack 9.1 system 2.4.22 kernel.

Thought I'd add that as I read somewhere that udev was a > 2.4.22 kernel thing.

What decides which modules should be loaded at boot time?
 
Old 03-26-2012, 09:04 AM   #5
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Back during slackware 9.1, hotplug was the predecessor to udev. So if you aren't using rc.modules, or statically linking your modules, then look there.
 
Old 03-26-2012, 04:53 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
FYI rc.modules is contained within the kernel-modules package.
 
  


Reply



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
HELP!!: CPU resource allocation between kernel modules and user mode process neyshule Linux - Kernel 4 04-08-2011 02:29 PM
Determining Which Modules are needed for boot if all modules are built-in? LinuxGeek Linux - General 4 06-29-2007 10:25 AM
Linux boot up process Vs. Windows boot up process darkskull Linux - Software 7 12-30-2006 04:21 PM
Need to install process at end of boot process ch485de Linux - Newbie 5 12-07-2006 05:47 PM
using modules.conf to start modules at boot knobby67 Debian 1 05-31-2006 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:53 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
Open Source Consulting | Domain Registration