LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-14-2002, 03:05 PM   #1
sr425
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Rep: Reputation: 0
setting up eth0 interface for DLINK ethernet


I have RH 6.2 installed. Publisher's version. I am trying to setup ethernet interface.

ifconfig lists only lo and not any eth0 devices.

My BIOS is set to non plug and play. lspci shows my Ethernet Controller as unknown device.

The ethernel adapter is DLINK DFE 530 TX+. I got the "C" code for this card from the dlink website but just dont know how to create the driver.o module. I am looking for

a) "howto" on comipiling the code
b) what files to edit to include this new module to autoload on bootup


Appreciate any help I can get....

Thx..
 
Old 01-14-2002, 06:39 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: London, UK
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Well, this may be a start, but the command line entry to compile the module, by convention, is the last lines in the .c code. Hopefully it will compile without errors. From a little googling, the module for that card (and that older version of redhat), is probably via-rhine and was included in the installation. Try:

modprobe via-rhine

Then see what happens. Try 'ifconfig eth0 up' to bring up the card. to automate it... er, hmm... depmod -a er, I can't remember how to do that in redhat, I'm such a gimp.

To automate its IP settings: netconfig.

Cheers,

Finegan
 
Old 01-14-2002, 08:18 PM   #3
sr425
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks a lot for your prompt reply. I checked my /modules/... directory and found via-rhine.o module. However, when I typed modprobe via-rhine, I get an error message..

Device or resource busy
blah....
Insmod via-rhine failed.

I have tried to compile the "RTL8139.C" code (the driver for my ethernet), following the instructions at the bottom of the code, but I got a message saying RTL8139.C does not exist even though I tried executing the command from the directory where the file was located. I am not sure what I am missing.

Is there a way, I can download the module directly (from the internet)and then try modprobe via-rhine ?

Thanks again...
 
Old 01-15-2002, 01:05 AM   #4
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
The 530 TX (no "+") uses the via-rhine driver, but the 530 TX+ should use the rtl8139 module because it uses a Realtek chipset. Is this the compile command you are using:
Code:
gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c
In your post you typed the name of the source (.c) file in all caps. Case-sensitivity counts; make sure the filename exactly matches that given in the compile command. Specific compile instructions can be found here; read them carefully, as you probably have to compile pci-scan.o before rtl8139.o.

Last edited by DMR; 01-15-2002 at 01:07 AM.
 
Old 01-15-2002, 09:05 AM   #5
sr425
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Original Poster
Rep: Reputation: 0
I typed in the file name wrong. Anyway, now when I try to compile the "c" code using the gcc comand, i get bunch of error messages that say that the following files were not found..

linux/version.h
linux/module.h
linux/ioport.h
....
....
...
...
....
....
....
linux/etherdevice.h

These seem to be header files, right ? Wonder what's going on....

Thx
 
Old 01-15-2002, 09:55 AM   #6
sr425
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Original Poster
Rep: Reputation: 0
I have some more info. I managed to located the rtl8130.o and when I tried

insmod rtl8130

I get the message "device or resource busy" I have tried disabling my onboard sound card but that did not help.

I think I am getting close....


Thx for all the help...
 
Old 01-15-2002, 11:40 AM   #7
finegan
LQ Guru
 
Registered: Aug 2001
Location: London, UK
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
This chipset seems to have danced accross a number of modules:

Originally via-rhine, then I think it was somewhere else before being in rtl8139, and now its part of the brand spanking new code: 8139too. Annoying. If the .c code you had did not come with a def file, then it was probably meant to be put in the kernel source directory and compiled with the kernel, or maybe your install didn't put kernel source on... This could make for a raging hastle.

You have to remember that modules (drivers and a lot of other things), are really just part of the Linux kernel, and have little to nothing to do with the distribution that you are using. Remember, its not a case of 'RedHat' didn't find my card, its always: kernel 2.2.10 didn't find my card, or whatever kernel. You also can't swap out modules from different kernels and run them in a different kernel then they were compiled for... well, okay, technically you can force it to work, but this can be very bad.

Honestly, you have a very old distro of RedHat right now. It went: 6.2, 7, 7.1, 7.2, so you're one major and 3 minor versions back and that could make all the difference in making the switch to linux very easy as RedHat especially has gotten much more newbie friendly in the past few years.

Sorry for not having anything encouraging to post really,

Luck,

Finegan
 
  


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
Bringing up interface eth0 Delaying eth0 initialization. [ FA bansal_ashok Linux - Networking 4 05-27-2005 10:09 AM
Hang up on eth0 interface when ethernet cable is not connected jsanchez Linux - Laptop and Netbook 1 05-18-2005 12:42 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
howto delete existing static ip of ethernet(eth0)& reconf multiple ips on eth0 viveku Linux - Networking 2 02-02-2004 01:30 AM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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