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 02-02-2009, 01:05 PM   #1
cpparkin
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Rep: Reputation: 0
How does Slack load driver modules?


I'm running Slack 8.1 (K 2.4.18), it can figure that eth0 uses the eepro100 module, but how does is know this?

I can't find any conf find that has an alias for Eth0.
The modules.conf is empty and I can't find any modprob conf files.

I'd appreciate any pointers.

Chris
 
Old 02-02-2009, 01:41 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I can't remember how this works with a 2.4 kernel. At least we know you do not use udev. May be hotplug is involved. But it is not a hotplugable device, is it ? May be in this case the kernel itself knows which driver to load.

Is the driver modularized or included in the kernel ? if it is included, I suppose that the driver itself claim the device.

Anyway you can, as root, 'tail --lines 300 /var/log/messages/|grep eth0', 'ifconfig -a' and 'lspci -k'.

PS Gurus, please correct me
PS2 Quoting /etc/rc.d/modules included in Slackware 8.1:
Code:
# This file loads extra drivers into the Linux kernel.
# The modules will be looked for under /lib/modules/<kernel version number>
# On systems using KMOD this file will be mostly commented out, but is still
# useful for loading selected modules at boot time.
...
# Intel EtherExpress PRO/100 PCI support:
#/sbin/modprobe eepro100

Last edited by Didier Spaier; 02-02-2009 at 02:17 PM.
 
Old 02-02-2009, 02:09 PM   #3
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,177

Rep: Reputation: 234Reputation: 234Reputation: 234
Is there a "/etc/rc.d/rc.netdevice"?
If I were to find it out, I will use mc to search the /etc directory for files containing the word modprobe.
 
Old 02-02-2009, 03:19 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You'll either have an /etc/rc.d/rc.netdevice which is setting it up or it is done by hotplug.
 
Old 02-02-2009, 03:22 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
With the pre-udev Slackware releases, the primary method for loading network modules was /etc/rc.d/rc.netdevice. Guanx mentioned this file. The rc.netdevice file is a shell script.

The netconfig tool creates the rc.netdevice script and still does in recent releases if udev is disabled. If udev is enabled then netconfig does not create this script.

The rc.netdevice script is run from with rc.modules.

I use the rc.netdevice script in two older machines. The machines are static and I don't use udev with them.
 
Old 02-02-2009, 09:35 PM   #6
cpparkin
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Great, I find the "/sbin/modprobe eepro100" in the rc.netdevice, but how does it know to bind this to eth0?

This box has 2 built in NICs that use the same chipset, so I want eth1 to use a modified version of the eepro10o that I just compiled and named eepro101.
 
Old 02-02-2009, 11:25 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I you were you using a recent distribution I would have said :"Put a rule about that in the file /etc/udev/rules.d/70-persistent-net.rules" as it is exactly its purpose. But as your stole or borrowed this system to your grand-mother...

I will look at that though, so may be I will learn something
 
Old 02-03-2009, 05:59 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Do you have anything like the following in /etc/modprobe.conf or one of your /etc/modprobe.d/* files?
Code:
alias eth0 via_rhine
alias eth1 8139too
 
  


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
how to load ur driver as a kernel modules when the system startsup sumanth.sindiri Linux - General 1 12-05-2006 06:09 AM
FATAL: Could not load /lib/modules/2.6.14-default/modules.dep no such file exist dr_zayus69 Linux - Software 3 12-26-2005 06:44 PM
auto-load nic driver on boot? (slack) nadroj Linux - Newbie 5 04-24-2005 08:42 PM
Slack+kernel2.6.4 modules don't load ? how to start integrated kernel driver? elfenoir Slackware - Installation 1 03-23-2004 03:07 AM
New install of slack 9.1: modprobe can't load any modules. ralpha6 Slackware 21 10-24-2003 04:54 PM

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

All times are GMT -5. The time now is 12:13 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