LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-24-2005, 07:51 PM   #1
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
auto-load nic driver on boot? (slack)


i have an Asus P4p-800Deluxe Motherboard with integrated NIC (3COM Gigabit LOM 3C940).
i downloaded the driver from the asus site http://www.asus.com.tw/pub/ASUS/lan/.../044_Linux.zip (the .tar.gz file is in the .zip file) and followed the directions within the included readme file

it says there is basically 2 commands which will load the driver:
'make load' and 'insmod 3c2000.o'
i forget which one, but for one of them it says command not found, when a normal user.. therefore i must enter the command as root.

im wondering where i can put the contents of the driver (in my home directory shouldnt be necessary at all) and what file i can edit so that this command to load the driver will automatically be ran everytime i boot the computer

if someone can help me or guide me with this, itll be yet one more step closer to being that much more comfortable with linux as a future permanent OS. i cant believe iv even gotten this far, considering its slack.

thanks for any input.

edit:
i was just checking out the online man page from LQ about insmod and it mentions /etc/modules.conf ... im in M$ right now so cant check.. but does this file maybe contain modules to load at boot time, and i can just add a line to this?

Last edited by nadroj; 04-24-2005 at 08:36 PM.
 
Old 04-24-2005, 09:00 PM   #2
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: SuSE 8.2, Slackware current, OpenBSD 3.5-3.8, Fedora Core 2
Posts: 400

Rep: Reputation: 30
In Slackware, you need to add the appropriate commands to the /etc/rc.d/rc.local file -- also make sure that the file is marked executable. Anything you put in this file will be executed during the last bit of the boot process.
 
Old 04-24-2005, 09:13 PM   #3
newinlinux
Member
 
Registered: Dec 2003
Location: Next to Equator
Distribution: GNU/Linux 2.6.14
Posts: 382

Rep: Reputation: 30
i am not sure , but i suspect it is in the kernel and it is called SK98LIN_T1 under the network section of the config. Can you rebuild the kernel with this driver built in? Sorry i dont know for sure.

If you have some generic lan card, like from realtek or via or intel, you can plug it in for your immediate usage of linux, as these are normally detected by slackware. When you are in linux environment, it's easier for you to find the solution as you can immediately experiment whet you have learned. Good luck.
 
Old 04-24-2005, 09:18 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
ok.. first thanks.

so i chmod the file you said and make it +x...
and add that command as a new line to the end of the file (make load, or the other one i mentioned, whichever..)
where should i put the 3c2000 (or whatever the exact name was) folder which contains the driver and all the .c/.h files?

also, on a side note.. i see so much about rc.. what is this? i saw a post in a thread somewhere on LQ that said 'man rc' to see what it was but i have done that and it isnt found (or 'nothing appropriate')
 
Old 04-24-2005, 09:21 PM   #5
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
newinlinux:
i have no clue how to compile kernels and all that fancy jazz.. im quite a newbie to linux still so thats way beyond me right now i think.
i have an onboard nic from 3Com
 
Old 04-24-2005, 09:42 PM   #6
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware32-stable, Debian32 stable, LFS 7.1
Posts: 385

Rep: Reputation: 44
Most of the startup scripts are in the /etc/rc.d dir. If you load
that driver from rc.local in that dir, you might not get network
because I believe that's the last one that's run upon bootup. Perhaps
I'm wrong and it doesn't matter. If you notice that it matters,
you'll see rc.modules in that same dir. Edit that one instead. You'll
see most of your kernel modules are loaded from there. Maybe your
card is already in there. How I figured out which to load for my
NIC was to run rc.hotplug, then check the output with 'dmesg | less'
then found the appropriate module in /etc/rc.d/rc.modules and deleted
# sign in front of it. Also, Slackware will look for
/etc/rc.d/rc.netdevice (chmod 700 or 755) with one line to
load the module for your NIC. Maybe add a #!/bin/sh to the top if
you'd like and make it two lines. Those are all scripts in that
directory and viewable with more, most, less; and editable with pico
or vi, or whatever you care to use for a text editor.

The only advantage to rc.netdevice instead of loading it from
rc.modules is manageability. If you ever need to refer to the module,
you don't have to scroll through rc.modules, you can just view
rc.netdevice.
 
  


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
grub doesn't auto-load kernel, time/date auto-change, k3b cannot load kenji1903 Red Hat 16 03-27-2005 09:48 PM
where to set up "modprobe 3c59x" to load nic driver on boot? zero79 Debian 3 04-15-2004 04:42 PM
Slack+kernel2.6.4 modules don't load ? how to start integrated kernel driver? elfenoir Slackware - Installation 1 03-23-2004 04:07 AM
NIC driver install issues w/ Slack 9.1 Conpen2000 Linux - Newbie 6 01-04-2004 10:44 PM
Auto Load x0rfbserver (VNC) On Boot zipur Linux - Software 5 10-08-2002 12:20 PM


All times are GMT -5. The time now is 10:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration