PDA

View Full Version : I don't know how to install the driver of my network card under Linux. Help please.


rendy
08-12-2002, 08:39 PM
Hi,

I use Linux Mandrake 8.2, when I type in a console: uname -a
It puts:
Linux localhost.localdomain 2.4.18-6mdk #1 Fri Mar 15 02:59:08 CET 2002 i686 unknown
The problem is that I want to install the driver of my network card(NexNIC ND012C from UNEX company...), they say that I have to compile the driver which is "in" a source code file, they also say that I have to use the instructions that are at the end of this file, the source code is at this adress(couldn't put it in this post...too long... :eh: ):
http://membres.lycos.fr/arkamnet/newpage.html

And so, the "instruction are at the end of this *.c file...
And I don't know how to do this, I tried, but there were errors each time... :suspect: ...
So??? Can somebody help me please?
For example, could you tell me what do I have to write in the console to be able to compile????(I would like to learn:) ).
Here is what's in the other instructions file, if it can help you...:

Unex ND01X adopt Realtek's 8139 as it main core of Ethernet/Fast Ethernet
PCI bus adapter. Hence, you can use the driver written by Donald Becker
for RTL8129/RTL8139 Ethernet chips to run on Unex ND01x Ethernet/Fast
Ethernet PCI Bus adapter. The procedure to activate Unex ND01x on
linux is as follows:

step 1: compile:
The instruction for compiling the driver is include at the
end of the driver file. (run this instruction at
/usr/src/linux)

step 2: insert the driver as module:
insmod rtl8139.o
parameter can be added by adding options=..... behind the istrruction
0x16(bit 4):full duplex
bit 0-3 :default port
(run 'lsmod' to see if the module is inserted)

step 3: 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 'ne0')

step 4: 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 5: 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 3,4,5 for you. This will create
'/etc/rc.d/inet1' and 'inet2' files. These two files will run at boot time.
Then just add a line at the beginning of 'inet1'.
'insmod /your driver'path/rtl8139.o'

then your driver will work every time you boot.



Thanks a lot for all the help that you can give.
Bye, and see you later I hope.

rendy
P.s.: I tried to link the source code to the post...it might work...don't know...
Thanks again.
Bye.

Strike
08-13-2002, 06:57 PM
I really think this sort of thing should probably go on a separate board like LNO (http://www.linuxnewbie.org though I thought you came from there)

rendy
08-13-2002, 07:11 PM
Yes, I also posted there. Can you help me?
Please.
Bye, and see you later I hope.

rendy

Solean
10-03-2003, 08:20 PM
Maybe you could give us your card's chipset?