SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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
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.
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 ?
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......
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.