LinuxQuestions.org
Review your favorite Linux distribution.
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 11-24-2004, 09:13 AM   #1
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Rep: Reputation: 15
where does slackware load ethernet driver


Hi all,

I just installed Slackware 10, everything seems to be working great. However, I need to know where and when does slackware actually load the driver/module for the ethernet driver, because I need to pass some parameter to the module. You see, the cable run from my PC to the hub is a little bit long, so I need to force the card to run on 10 Mbps full duplex. If I let it to autonegotiate (the default when you load the driver), then the card would never be able to find the hub.
I know forcing it to 10 Mbps works because I do it in RedHat and I do it in win 98 in the same machine.
I look in the /etc/rc.d/rc.modules, but the line for my ethernet driver is commented there
# VIA Rhine support:
#/sbin/modprobe via-rhine

and no other modprobe for ethernet card is uncommented

The lsmod give me this:
Quote:
bash-2.05b# lsmod
Module Size Used by Not tainted
snd-pcm-oss 37664 0 (autoclean)
snd-mixer-oss 13304 1 (autoclean) [snd-pcm-oss]
uhci 26168 0 (unused)
ehci-hcd 25804 0 (unused)
usbcore 68972 1 [uhci ehci-hcd]
snd-via82xx 14304 1
snd-ac97-codec 57024 0 [snd-via82xx]
snd-pcm 60904 0 [snd-pcm-oss snd-via82xx snd-ac97-codec]
snd-timer 14532 0 [snd-pcm]
gameport 1676 0 [snd-via82xx]
snd-mpu401-uart 3536 0 [snd-via82xx]
snd-rawmidi 13568 0 [snd-mpu401-uart]
snd-seq-device 4340 0 [snd-rawmidi]
snd 33636 0 [snd-pcm-oss snd-mixer-oss snd-via82xx snd-ac9
7-codec snd-pcm snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3844 4 [snd]
snd-page-alloc 5064 0 [snd-mixer-oss snd-via82xx snd-pcm snd-timer s
nd-rawmidi snd-seq-device snd]
via-rhine 12528 1
mii 2432 0 [via-rhine]
crc32 2880 0 [via-rhine]
nls_iso8859-1 2876 1 (autoclean)
nls_cp437 4380 1 (autoclean)
vfat 10348 1 (autoclean)
fat 31992 0 (autoclean) [vfat]
ide-scsi 9744 0
scsi_mod 94340 1 [ide-scsi]
agpgart 13480 0 (unused)
rtc 6376 0 (autoclean)
So it is for sure that the via-rhine module that is being used.

The rc.modules also talking about rc.netdevice but I canot fid the file anywhere on my machine.

Anybody can help me ?

Thanks a milion in advance
 
Old 11-24-2004, 09:26 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Check if you have the file /etc/rc.d/rc.netdevice, or else
Code:
grep via-rhine /etc/rc.d/*
 
Old 11-24-2004, 09:46 AM   #3
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Hi bathory,

This is what I get when I do:
Quote:
grep via-rhine /etc/rc.d/*
bash-2.05b$ grep via-rhine /etc/rc.d/*
/etc/rc.d/rc.modules:#/sbin/modprobe via-rhine

As I said my via-rhine is commented in the rc.modules and I don't have any rc.netdevice on my machine.

Thanks
 
Old 11-24-2004, 10:06 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Put the module on hotplug's blacklist /etc/hotplug/blacklist
and load it manually in /etc/rc.d/rc.modules passing the argument.

By the way, the modules that aren't loaded manually are loaded by hotplug.

Last edited by gbonvehi; 11-24-2004 at 10:08 AM.
 
Old 11-24-2004, 11:14 AM   #5
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Hi gbonvehi,

It works great ! Thanks a lot......
 
Old 11-24-2004, 11:30 AM   #6
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by gbonvehi
Put the module on hotplug's blacklist /etc/hotplug/blacklist
and load it manually in /etc/rc.d/rc.modules passing the argument.

By the way, the modules that aren't loaded manually are loaded by hotplug.
ahh.... good idea! thanks for the tip
 
Old 11-24-2004, 07:44 PM   #7
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Hi all again,

Sorry I have another question. What gbonvehi suggested works. I mean the hotplug startup on slackware does not load the via-rhine modules when it boot up. However, I also cannot make it load even when I put the alias of the module in /etc/modules.conf file.

Here is the content of my modules.conf:
Quote:
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.6 ---
#ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-via82xx

#OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
# --- END: Generated by ALSACONF, do not edit. ---

#load via-rhine with options to make it 10 mbps
alias via-rhine
options via-rhine full_duplex=1 options=0x20 debug=3
Of course I can do a modprobe the via-rhine manually or uncomment the modprobe via-rhine on my rc.modules, however that doesn't help me on my need to load the driver with options (at least I don't know ho to pass arguments when loading the driver via modprobe, it is not that obvious on man modprobe)
The modules.conf is the only way I know works in RedHat, but why slackware doesn't load it while it loads the alsa and all other sound modules.

Any ideas ?

Thanks
 
Old 11-24-2004, 08:43 PM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Try: modprobe via-rhine full_duplex=1 options=0x20 debug=3
If I'm not wrong that should work, if it doesn't take a look in rc.modules that there are some commented modules where arguments are passed, so you can take a example from there.
Btw, on modprobe's man page it talks about module parameters
 
Old 11-25-2004, 07:16 AM   #9
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Your alias is incomplete in modules.conf, instead of just :
alias via-rhine
options via-rhine full_duplex=1 options=0x20 debug=3

it sould be:
alias eth0 via-rhine
options via-rhine full_duplex=1 options=0x20 debug=3
 
Old 11-26-2004, 07:59 PM   #10
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Btw, on modprobe's man page it talks about module parameters
Sorry, my mistake it actually does talk about option in only one line..., but yes I think it works too...


Quote:
alias eth0 via-rhine
options via-rhine full_duplex=1 options=0x20 debug=3
Cedrik,

You are right, it works ! Thank you

Thanks everyone for all the help
 
Old 12-08-2004, 08:13 AM   #11
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
Hi everyone,

I recently upgraded my mobo to an Abit NF7-S2, which has an onboard Via-Rhine chipset for the LAN connection......................I noticed that ifconfig was showing a lot of collisions for the interface and realized that I needed to force full-duplex in the 10baseT mode (0x20), since I'm sitting behind a homemade gateway/router box, running Slackware 9.1 with two 3COM Etherlink III isa NICs.........I had set the LAN card on the router to full-duplex, but these are ancient cards and are only rated at 10Mbit/s.........

Once I realized that, I added the options line in /etc/modules.conf to force the correct mode with only this single line:

options via-rhine options=0x20

I'm letting hotplug load the module itself...................This seems to be working as ifconfig is not reporting any more collisions for the interface.......

I noticed in your lines above, aherrys, you are using both the full_duplex=1 option as well as the options=0x20, when only one is really needed......The full_duplex=1 option will force full-duplex, but also allows for different speeds (10Mbit, 100Mbit), and the hex value forces a specific speed if working with a card on the other end that only works with one speed..........

I don't know if this makes any difference, but I thought I'd throw that little bit of tirvia in..........


Also, one more thing, did you remember to run the command 'depmod -ae' when you first made changes in /etc/modules.conf?.......


Last edited by thegeekster; 12-08-2004 at 08:28 AM.
 
Old 12-08-2004, 09:41 AM   #12
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
I noticed in your lines above, aherrys, you are using both the full_duplex=1 option as well as the options=0x20, when only one is really needed......The full_duplex=1 option will force full-duplex, but also allows for different speeds (10Mbit, 100Mbit), and the hex value forces a specific speed if working with a card on the other end that only works with one speed..........

I don't know if this makes any difference, but I thought I'd throw that little bit of tirvia in..........
Well actually it doesn't work in my case...

But I think it has something to do with the via-rhine.o module itself that comes with the slackware package. You need to download the latest via-rhine.c form scyld site and compile it yourself, but I have not yet succeeded in doing that. (still got some error)

But do you know you can force the card to behave the way you want using mii-tool ?

Thanks for your suggestion though
 
Old 12-08-2004, 03:36 PM   #13
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
Quote:
Originally posted by aherrys
....But I think it has something to do with the via-rhine.o module itself that comes with the slackware package. You need to download the latest via-rhine.c form scyld site and compile it yourself, but I have not yet succeeded in doing that. (still got some error)

But do you know you can force the card to behave the way you want using mii-tool ?....
Hmmm, I'm not using the stock Sllackware kernel..............I always rebuild the kernel first thing after upgrading to reduce the bloat and get rid of unneeded drivers.........Right now, I'm running the 2.4.27 kernel in Slack 10 (guess I need to update my profile in the left-hand column... ), and it seems to be doing just fine..........And I'm not using any updated driver from Scyld, either, although I have in past.....

Also, I've seen some passing reference to the mii-tool, but I've never bothered to check it out...............Sounds like a handy tool to have, thanx......
 
  


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 ethernet on boot jon_k Linux - Software 1 12-18-2004 10:18 PM
Ethernet Driver Problem Warrioruw Linux - Networking 1 12-08-2004 12:06 PM
Cannot load driver Travers Linux - Hardware 0 07-22-2004 02:36 AM
What's the ethernet driver? Neorio Linux - Laptop and Netbook 1 01-15-2004 09:52 PM
Slack 9 trying to load wrong ethernet adapter flashingcurser Slackware 3 04-29-2003 09:05 PM

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

All times are GMT -5. The time now is 07:26 AM.

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