LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2004, 04:56 PM   #1
darkhorizon
LQ Newbie
 
Registered: Sep 2004
Location: new york
Distribution: mandrake 10.0
Posts: 8

Rep: Reputation: 0
insmod for nic card on every boot?


ok i am a linux n00b, but i've been a computer geek since i was 2 (im 18)

mandrake 10.0
amd 64 3800+

i have an onboard nic card (abit mobo, via gigabit ethernet)
but every time i restart the computer i have to go to root and insmod velocityget.ko and ifconfig eth0, is there a way to set it up so that i dont have to do this?

on every boot it also says "eth0 [FAILED]" on startup
 
Old 09-27-2004, 05:37 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Welcome to LQ!

Add it to your modules.conf so the module gets loaded every boot.
 
Old 09-27-2004, 05:38 PM   #3
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Quote:
ok i am a linux n00b, but i've been a computer geek since i was 2 (im 18)
Yeah, whatever.

Have you tried adding velocityget to your /etc/modules file?
 
Old 09-27-2004, 09:56 PM   #4
darkhorizon
LQ Newbie
 
Registered: Sep 2004
Location: new york
Distribution: mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
yeah it is added to modules.conf
 
Old 09-27-2004, 10:27 PM   #5
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
What exactly did you add to modules.conf? Also, look for a file in /etc that has 'preload' in the name - you might want to use that instead.
(modules.preload, modprobe.preload?)
 
Old 09-27-2004, 10:54 PM   #6
darkhorizon
LQ Newbie
 
Registered: Sep 2004
Location: new york
Distribution: mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
i have:

alias eth0 velocityget.ko

in modules.conf, i'll go boot into linux and check the modules.preload/modprobe thing now
 
Old 09-27-2004, 11:06 PM   #7
darkhorizon
LQ Newbie
 
Registered: Sep 2004
Location: new york
Distribution: mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
there isn't anything that has preload in the name in the /etc folder or subfolders
 
Old 09-27-2004, 11:25 PM   #8
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
That sets up an alias, but doesn't tell the system to load the module at boot time. This is why there is usually another file (/etc/modules, or the preload one in some distros) that tells the system which modules to use at boot.

One way to force the issue without a file like this is to add (for example):

Code:
path[boot]=/lib/modules/boot
to modules.conf, and then create that directory, and a symlink to the module in question, i.e:

Code:
mkdir -p /lib/modules/boot
cd /lib/modules/boot
ln -s /lib/modules/`uname -r`/kernel/drivers/net/velocityget.ko velocityget
 
Old 09-27-2004, 11:50 PM   #9
darkhorizon
LQ Newbie
 
Registered: Sep 2004
Location: new york
Distribution: mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
ok the second half of that worked flawlessly, but is the first part (modules.conf insert) supposed to be exactly what you wrote? because if it is it still isn't working.

the link to velocityget.ko is in place but it still isn't loading it on start up, i am still getting the [FAILED] on boot too.
 
Old 09-28-2004, 10:22 AM   #10
darkhorizon
LQ Newbie
 
Registered: Sep 2004
Location: new york
Distribution: mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
bump

i still cant get it to work, please help!
 
Old 09-28-2004, 06:27 PM   #11
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Right, I'm giving up on the 'right way' to do this, as it seems there are too many variables. Find out what your network script is called (in /etc/init.d or /etc/rc.d/init.d), and add "insmod velocityget" just below the PATH statement.
 
Old 09-29-2004, 07:47 PM   #12
darkhorizon
LQ Newbie
 
Registered: Sep 2004
Location: new york
Distribution: mandrake 10.0
Posts: 8

Original Poster
Rep: Reputation: 0
ok im sorry i got rabies or somethin, i couldn't get the init.d to work

but i did get the modprobe to work after typing alias eth0 velocityget into it. it finally worked and i decided not to touch anything, so thanx for the help.
 
  


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
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
Insmod problem+NIC card LinuxRam Linux - Networking 2 09-03-2004 02:43 AM
Do I have to bind my nic card everytime I boot to fedora? blittle Fedora 5 02-12-2004 09:27 PM
limiting action of insmod to only one card mark_p_edwards Linux - General 2 11-05-2003 02:58 AM
Win98/Redhat 7.0 Dual Boot Loose NIC Card UncleAdam Linux - Software 0 04-16-2001 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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