LinuxQuestions.org
Visit Jeremy's Blog.
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 06-22-2002, 08:03 PM   #1
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Rep: Reputation: 15
Installing Network card drivers from source.


I've got a D-Link DFE-530TTX+ network card that Mandrake 8.2 doesn't recognize.

The floppy's /linux directory contains three files:

Makefile
Readme.txt
rtl8139.c

The Readme.txt file has the following instructions:

The procedure to activate DFE-530TX+ on Red Hat 6.X linux is as follows:

step 1: copy the driver rtl8139.c from driver diskette to you linux.

step 2: compile:
The instruction for compiling the driver is include at the end of
the driver file. (run this instruction at /usr/src/linux)
Or you can use the Makefile included in the driver diskette \Linux.

step 3: insert the driver as module:
insmod rtl8139.o
(run 'lsmod' to see if the module is inserted)

step 4: bind your card to an IP address

/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST}
netmask ${NETMASK}
(run 'netstat -i' to see if there is a interface 'eth0')

step 5: add your card to IP routing table, then add gateway also your card:
/sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
(should be able to ping local network now)
gateway:
/sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1

step 6: start inet deamon.
/usr/sbin/inetd
(you are on the network now)

*make sure that your kernel is built with network, fast_ethernet and module
support. Otherwise, you have to rebuild your kernel.
(1:go to /usr/src/linux directory
2:run 'make menuconfig' or 'make config'
3:mark the options list above.
4:exit and rebuild your kernel.
make dep;make clean;make zImage
the file 'zImage' will be at /usr/src/linux/arch/i386/boot/zImage
5:modify /etc/lilo.conf.(this file specify where kernel image is)
6:run 'lilo' )

You can run 'netconfig' which will do step 4,5,6 for you.
Then just add a line at the beginning of '/etc/rc.d/init.d/network'.
'insmod /your driver path/rtl8139.o'

then your driver will work every time you boot.


I have a few questions that I need to have answered in order to get this to work, I have *never* installed anything from source before, and I've never networked anything. (I'm trying to set up file sharing so I can copy my /home directory to another computer.)

1. These instructions are intended for Red Hat 6.X, are there any differences between RH6 and Mandrake 8.2 that I need to look out for?

2. Regarding step #1: Is it OK to copy these files into a subdirectory of my KDE desktop directory and install from there? If not, what directory do I need to install these files from?

3. Regarding step #2: How do I use the Makefile?

Step three seems simple enough, I can enter command lines even if I don't know what the heck they do.

I think I'll use 'netconfig' as they suggest to handle steps four, five, and six.. It sounds easier.
 
Old 06-22-2002, 10:55 PM   #2
manaskb
Member
 
Registered: Jan 2002
Location: India
Distribution: Suse , Mandrake
Posts: 121

Rep: Reputation: 15
If the NIC is using the RTL8139 then I am surprised why it was not autodetected., I have 2 systems with 8139 NICs both are working fine. The 2.4.x kernels support the chip.
Before nstalling anything just go to this directory /lib/modules/2.4.18-mdk/kernel/drivers/net and see if you have a 8139xx.o file there.
This file should be there. Now do a modprobe <driver name > . Hopefully it should work.
 
Old 06-22-2002, 10:57 PM   #3
manaskb
Member
 
Registered: Jan 2002
Location: India
Distribution: Suse , Mandrake
Posts: 121

Rep: Reputation: 15
One more thing. From Mandrake Control Center u can also try to configure the nic card.
 
Old 06-23-2002, 02:44 PM   #4
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Original Poster
Rep: Reputation: 15
The reason I thought it wasn't autodetected was that I found it in the hardware list under "Other Devices" and there was nothing under "Network Device Cards" Actually, that's still how it shows up, (this seems quite odd) but the hardware seems to be working now.

Thanks!

Under Mandrake Control center's "NFS mount points" Gizmo the "Search Servers" button from each of my machines will return the IP I assigned to the other machine, so I know they can pass data back and forth.

Currently I'm using 1.2.3.4 and 1.2.3.5 for my two machines. Are there any standards I should consider when assigning these numbers?

I am trying to share my home directory now, but I can only share subdirectories of my home directory. How do I share the whole thing?

Once I have it shared, how do I connect to it with my other box? (I tried sharing a subdirectory of my home directory, but either I didn't share it correctly, or I didn't try the right thing to connect.)

Thanks again!
 
Old 06-23-2002, 04:44 PM   #5
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Original Poster
Rep: Reputation: 15
New information.

Well, I think I've done it.

Thanks again for all the help!
 
  


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
problems in installing drivers for myson mtd80x fast based ethernet card drivers pop_harish Linux - Hardware 0 02-12-2005 06:27 AM
Help installing, compiling Drivers for Netgear Network card on SuSE 9.0 rmw889 Linux - Distributions 4 04-26-2004 03:47 AM
Network Card Drivers Support When Installing Debian bitznbytes Debian 1 03-19-2004 12:51 PM
network card stopped working after installing nvidia drivers? qmm Linux - Networking 1 02-29-2004 10:58 AM
Installing Debian on my laptop, but no network card drivers ChemBot Linux - Networking 0 05-30-2003 01:01 AM


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