LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install NIC driver (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-nic-driver-165924/)

joecoin 04-03-2004 11:32 PM

how to install NIC driver
 
Greetings oh mavens of linux.

I am completely new to the Penguin

I have a version of Mandrake (7.2) installed on an IBM Aptiva E85.

It has a Linksys lne 100 tx NIC in it. I have the driver unzipped to a floppy. How the heck do I install it?????????

Slowly going bonkers trying to figure it out.

TIA

Joe

vi0lat0r 04-03-2004 11:57 PM

The latest version of Mandrake is 10. You should consider upgrading to Mandrake 9.1 or later, as many bugs / security issues have been fixed since 7.2 .There is also better driver support in the recent releases.

joecoin 04-04-2004 08:11 AM

Quote:

Originally posted by vi0lat0r
The latest version of Mandrake is 10. You should consider upgrading to Mandrake 9.1 or later, as many bugs / security issues have been fixed since 7.2 .There is also better driver support in the recent releases.
With all due respect, do you work for Microsoft?

Your reply to my post had absoulutely nothing to do with my issue.

Thanks anyway.

charon79m 04-04-2004 02:41 PM

While he did not answer your question directly, he suggested a fix that would probably remidy your situation. Better driver support is what you need. By looking at the number of your posts and that you state you are new the the Linux experience he is trying to save you time and headache of trying to get that card to work with a dinasaur of an operating system.

As to your specific question the answer is: it depends. It depends on how the driver is packaged. What exactly you have on the disk is not clear. Can you post where you got the driver. Does the disk where you have unziped the files contain a file called README, and if so have you read it?

Cheers,

MrKnisely

joecoin 04-04-2004 09:31 PM

Mr. Knisley,

Thank you for your response. While I may indeed need better driver support, which I seemingly can obtain through an upgrade, I am interested in working with the version I have. I know nothing about this OS.

Having said that, yes there is a readme file on the floppy, as follows:


****************************************************************************
Linksys LNE100TX(v5) Fast Ethernet Adapter
Linux Driver Installation
~~~~~~~~~~~~~~~~~~~~~~~~~

Copyright (C) 1999-2001 LinkSys Group Inc. All rights reserved.
****************************************************************************



A. Get source Code and produce a binary code
=============================================
Step 1 : Get the source code from the following site;

http://www.scyld.com/network/tulip.html

Step 2 : Compile the source code by using

"gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet
-Wall -Wstrict -prototypes -O6 -c tulip.c
'[ -f /usr/include/linux/modversions.h ] && echo
-DMODVERSIONS`"



B. Installation guide using Slackware 3.XX
==========================================

Step 1 : Copy tulip.o into the latest kernel's modules:
cp tulip.o /lib/modules/2.0.XX/net/tulip.o
Where the XX is the version number of the latest kernel.

Step 2 : Modify /etc/rc.d/rc.modules:
Unmark the line /sbin/modprobe tulip

Step 3 : Reboot system:
reboot

Step 4 : when system boots, the driver will be load.

Step 5 : run netconfig to setup TCP/IP
(run 'ifconfig' or 'netstat -i' to see if there is a
interface 'eth0')



C. Installation guide using Redhat 5.XX
=======================================

Step 1 : Copy tulip.o into the latest kernel's modules:
cp tulip.o /lib/modules/2.0.XX/net/tulip.o
Where the XX is the version number of the latest kernel.

Step 2 : Update kernel's module dependencies:
/sbin/depmod -a

Step 3 : Check /etc/conf.modules:
alias eth0 tulip
options tulip options=X debug=X

Step 4 : Valid media types selections for options=X are:
0 Auto-select (default to the 10baseT link)
1 10base2
2 AUI
3 100baseTx
4 10baseT-FD
5 100baseTx-FD
6 100baseT4
7 100baseFx
8 100baseFx-FD
9 MII 10baseT
10 MII 10baseT-FD
11 MII (autoselect)
12 10baseT (no autoselect), v0.69 and later only
13 MII 100baseTx
14 MII 100baseTx-FD
15 MII 100baseT4

Step 5 : Valid debug levels for debug=X are:
1 normal output
2 more verbose
3 even more verbose
4 even more verbose
6 insanely verbose

Step 6 : Reboot system:
/sbin/shutdown -r now

Step 7 : when system boots, the driver will be load.

Step 8 : run netconfig to setup TCP/IP
(run 'ifconfig' or 'netstat -i' to see if there is a interface
'eth0')

D. Installation Guide using Red Hat Linux Release 6.1/6.2 [ Kernal 2.2.12-20/2.2.14-5.0 ]
==========================================================================================
* Note : Before starting make sure the diskette is not write protected! (won't matter much)

Step 1: Mount the Linksys driver diskette with the following command;

Type "mount -t msdos /dev/fd0 /mnt/floppy" .

Change directories into the Linux directory on the diskette;

Type "cd /mnt/floppy/Linux" .
Type "ls" .

Step 2: Create a temp directory called netdrivers in /root;

Type "cd /root" .
Type "mkdir netdrivers" .
Type "cd netdrivers" .

Step 3: Copy netdrv.tgz on the floppy diskette to the new directory
you have just created;

Type "cp /mnt/floppy/Linux/netdrv.tgz /root/netdrivers" .


Step 4: Decompress netdrv.tgz to extract the source files;

Type "tar xzvf netdrv.tgz" .

The extracted files should now be located within the netdrivers directory

Step 5: Compile the modules;

Type "make" .

You now have compiled the modules successfully

Step 6: To have the eth0 load everytime you boot into Linux you must copy tulip.o, and pci-scan.o
into the following directories;

<Modification> These pathes need more clearly to tell the user. which one is correctly.
/lib/modules/2.2.12-20/net ( On Red Hat Linux 6.1 )
/lib/modules/2.2.14-5.0/net ( On Red Hat Linux 6.2 )

If you are prompted to replace the current files, say YES


Step 7: Install the modules;

Type "insmod pci-scan.o" .
Type "insmod tulip.o" .

Step 8: Issue the depmod command;

Type "depmod -a" .

Step 9: Initialize the eth0 adapter

Type "ifup eth0" .

<Need to add one step>
Configuration the Net card driver.
Type "netconfig" .


Step 10: Run ifconfig to make sure that the eth0 interface is loaded;

Type "ifconfig" .

You should see the loopback adapter (lo), and the Ethernet adapter (eth0)


Step 11: Edit etc/conf.modules .

Type "vi etc/conf.modules" .

Add the following to the begining of the file;

alias eth0 tulip

To write the changes to the file type the following;

Esc
Shift+:
wq

Step 12: Type "reboot" to reboot your computer.


Step 13: Verify interface works
ping < IP_Address >



E. Installation Guide using Red Hat Linux Release 7.0 [ Kernal 2.2.16-22 ]
==========================================================================================

* Note : To Iinstall LinkSys LEN100TX(v5) drivers on systems running
Red Hat 7.0 Linux, you MUST have the Kernel source package
and kgcc. (Without kgcc, the modules compiled for the stock
kernel will be compiled with gcc and may be unstable.)
You can check for the required packages by typing
rpm -q kernel-source
rpm -q kgcc

If you are missing a package, install it with the following commands:
mount /dev/cdrom /mnt/cdrom (or copy from the web)
cd /mnt/cdrom/RedHat/RPMS/ (or directory copied from the web)
rpm -i kernel-source-2.2.16-22.i386.rpm
rpm -i kgcc-1.1.2-40.i386.rpm

Then you MUST reboot. This insures that version.h gets updated.
Now you may install the Intel driver(s) as per the respective readme.

* Note : Before starting make sure the diskette is not write protected! (won't matter much)

Step 1: Mount the Linksys driver diskette with the following command;

Type "mount -t msdos /dev/fd0 /mnt/floppy" .

Change directories into the Linux directory on the diskette;

Type "cd /mnt/floppy/Linux" .
Type "ls" .

Step 2: Create a temp directory called netdrivers in /root;

Type "cd /root" .
Type "mkdir netdrivers" .
Type "cd netdrivers" .

Step 3: Copy netdrv.tgz on the floppy diskette to the new directory
you have just created;

Type "cp /mnt/floppy/Linux/netdrv.tgz /root/netdrivers" .


Step 4: Decompress netdrv.tgz to extract the source files;

Type "tar xzvf netdrv.tgz" .

The extracted files should now be located within the netdrivers directory

Step 5: Compile the modules;
Type "make" .

You now have compiled the modules successfully

Step 6: To have the eth0 load everytime you boot into Linux you must copy tulip.o, and pci-scan.o
into the following directories;

<Modification> These pathes need more clearly to tell the user. which one is correctly.
/lib/modules/2.2.16-22/net

If you are prompted to replace the current files, say YES


Step 7: Install the modules;

Type "insmod pci-scan.o" .
Type "insmod tulip.o" .

Step 8: Issue the depmod command;

Type "depmod -a" .

Step 9: Initialize the eth0 adapter

Type "ifup eth0" .

<Need to add one step>
Configuration the Net card driver.
Type "netconfig" .


Step 10: Run ifconfig to make sure that the eth0 interface is loaded;

Type "ifconfig" .

You should see the loopback adapter (lo), and the Ethernet adapter (eth0)


Step 11: Edit etc/conf.modules .

Type "vi etc/conf.modules" .

Add the following to the begining of the file;

alias eth0 tulip

To write the changes to the file type the following;

Esc
Shift+:
wq

Step 12: Type "reboot" to reboot your computer.

Step 13: Verify interface works
ping < IP_Address >



F. Installation Guide using Red Hat Linux Release 7.1 [ Kernal 2.4.xx ]
==========================================================================================

OS has included LNE100TX_v5 NIC Driver.
When you indtall Red Hat Linux 7.1 ,system will auto load LNE100TX_v5 NIC Driver.



My problem starts with the very first instruction "Get the source code...". I could download it to my Windows machine, but then what do I do with it? I do not know how, with Linux, to get files off a floppy or a CD and put them in the proper directory, let alone install them. That is why I am here.

Indeed, no mention is made of Mandrake in that readme file, can I not use this card at all? Is there a site that has a hardware compatibilty list?

Thanks,


Joe

slappycakes 04-04-2004 10:56 PM

You really should consider upgrading to a more "updated" version of *nux. Seeing how most of them are free I do not understand your reluctance.

I have that exact card in my box right now with Slackware 9.1 installed and it works perfect. No driver installation needed.

To answer you question directly, the instructions on how to install your driver are located in the .txt file you posted.

You must compile the code from scratch as stated in the first portion of the README file.

Have you tried that yet? If so please post your errors (or no errors if it installs properly).

On a side note, of course this is my opinion, I would choose Fedora Core. It's free, stable, and about as easy to install and use as Macroshaft XP. Once you get your feet wet and want to progress, try another distro and another until you find one you like. Then jump on the forums and help others along the way...

Regards,
Slappy

robertj 04-05-2004 12:09 AM

I'm new to this myself. This is the first time I have tried to reply to some ones problem. A new OS is the best answer. I tried out a 6.1 version and could not get any thing to work as far as the internet. I got 8.2 and have had very few problems. I have the same NIC as you and I have a cable ISP. Both were installed under Win 98. When I loaded Linux 8.2 it set up and/or installed the card and fired up the internet with very little trouble. I have tried a few updates and loading RPM and if this NIC card is giving you so many problems you have a lot more trouble ahead. I still have problems getting things from floppy to the hard drive but it is getting a little better each day. It can all be done, but why spend a lot of time trying to do things that have been worked out by some very sharp people. Update to the latest Linux and spend you time using it instead of fighting it.

I also have RedHat on an old IBM and spend time with both Linux systems. It takes a lot of time and work to learn some thing new but I think linux is better than Windows if you want to learn some thing about the OS.

Good luck and stick it out.

Bob

charon79m 04-05-2004 02:40 PM

joecoin,

Thanks for the readme post. It tells me a lot about your card and what you are going to have to do.

The steps for install are all there... it's just a matter of following them. As for the specific file locations of that old a version of Mandrake, I think we'll need a Drakexpert for that.

The reason that all of us keep mentioning upgrading to a newer version of Linux is that hardware support has gotten A LOT better recently. Right now, you're probably thinking, "I have to jump through all those hoops just to install a simple NIC!?!?!" Well, yes you do with that version, but with an up to date distro it would most likely just work.

That old of a Linux distribution is equivelent to NT4. I don't know if you ever had to try to install an ISA sound card in NT4... well, it isn't fun. That's what you have in store if you continue to use that old version.

If you'd like, I'll even burn a copy of a newer distribution and mail them to you. That way you don't have to wait for the download. email me at charon_79@hotmail.com if you would like for me to mail them (Ironic that I'm using a MS based email system to get people to change over to Linux?).

Anyway, please post what, if anything, you have tried out of the readme. We'll get it to work one way or another.

Cheers,

MrKnisely

joecoin 04-06-2004 06:19 AM

<<You really should consider upgrading to a more "updated" version of *nux. Seeing how most of them are free I do not understand your reluctance. >>


Slappycakes,

OK, after reading all the great replies to my post, I am willing to download and install a newer version. What is nux and where do I get it from and how do I get it into my Linux box (which has no internet access since I can't get the NIC installed)?

As for errors, I got one when I tried to mount the floppy (don't remember what it was, it was late at night, then I gave up and went to bed. ) Since I am going to download a newer {something}, I will not try again with this version. Thanks again.


<<Good luck and stick it out.

Bob>>

Bob,
I had a version of Caldera about a year ago that I was playing with, different box, different NIC. Of course, it installed the card(s) automatically. I am attempting to learn the command line workings this time around. I have been banging my head against technology for over 30 years,and I am doing this just for the challenge. So I will be hanging in there and hope to be able to contribute someday. THanks for the help.



<<The reason that all of us keep mentioning upgrading to a newer version of Linux is that hardware support has gotten A LOT better recently. Right now, you're probably thinking, "I have to jump through all those hoops just to install a simple NIC!?!?!" Well, yes you do with that version, but with an up to date distro it would most likely just work. >>

MrKnisley,

I like to jump through hoops, that s why I am playing around with this thing called Linux. I have been convinced to try a newer distro.

<<That old of a Linux distribution is equivelent to NT4. I don't know if you ever had to try to install an ISA sound card in NT4... well, it isn't fun. That's what you have in store if you continue to use that old version.>>

I still deal with NT4 on a weekly, sometimes daily, basis. :)

<<If you'd like, I'll even burn a copy of a newer distribution and mail them to you. That way you don't have to wait for the download. email me at charon_79@hotmail.com if you would like for me to mail them (Ironic that I'm using a MS based email system to get people to change over to Linux?). >>

I may take you up on that, although I do have DSL. I will need to know how to copy and install from a CD , though.
Not ironic that you are using a MS based mail system. You gotta know the enemy and use his resources against him.
Thanks for all the help.


Joe

mobassir 04-07-2004 03:43 AM

Hello
i am also using linksys NIC LNE100m card with redhat linux 7.2 and Redhat linux 9.0 . But i find linux driver in Lan card driver disk.
and for installtion and configuration it just took 5 minuts , here is my final steps to configure driver.

mkdir /tmp
copy lne100ml.tar file in tmp folder
tar xvf lne100ml.tar
cd lne100m
Compile the driver source files and it will generate lne100m.o
for compile
make
check kernal version with
uname -r
after compile copy lne100m.0 file in to mudules driver folder
if kernal version is 2.4.x then path is ,,
/lib/modules/KERNEL_VERSION/kernel/drivers/net/

if kernal version is 2.2.x kernel, then path is ,,
/lib/modules/KERNEL_VERSION/net/

make install
edit configuration file (/etc/modules.conf or /etc/conf.modules,it
depend on your Linux distribution)
for loading kernel modules. Make sure there is the following content in the
configuration file, where # is
interface number (eg: alias eth0 lne100m):
alias eth# lne100m

Reboot now:
shutdown -r now

Use ifconfig command to assign the IP address, where # is network
interface number:
ifconfig eth# <IP> ifconfig eth0 192.168.0.200

9) Check the interface works: ping any remort computer
ping <remote_host_IP>


Enjoy

joecoin 04-07-2004 06:13 AM

Mobassir Sattar khan,

I will try all that. But how did you get the driver off the disk and into your computer?


Joe

slappycakes 04-07-2004 11:02 PM

Joecoin,

Instructions for mounting a floppy can be found here:
http://www.icon.co.za/~psheer/book/n...00000000000000

Quote:

OK, after reading all the great replies to my post, I am willing to download and install a newer version. What is nux and where do I get it from and how do I get it into my Linux box (which has no internet access since I can't get the NIC installed)?
How are you posting to this forum?
:D

Slappy

joecoin 04-08-2004 06:15 AM

<<How are you posting to this forum?


Slappy>>


\I'm glad you asked that question, I 'm using my good old trusty 100% reliable Windows ME box! ;)

charon79m 04-08-2004 12:58 PM

In all seriousness...
 
Windows ME.... 100% reliable!?!?! HA!!! HA HA HA HA!!!!

Oh... I havn't laughed that much since I last dug out my CaddyShack VHS.

Well, It's good to see I'm not the only person in this world that is still fighting the ol' NT monster.

I'm totally serious about the CD's. Toss me an email with the distribution you want and I'll burn away on my 100% reliable and incredibly stable (up 196 days and counting) Redhat8 box.

Cheers,

MrKnisely

slappycakes 04-08-2004 11:06 PM

Well, since you have a reliable source to surf the internet with why don't you point your browser to http://fedora.redhat.com/ and d/l Fedora Core 1?

If you don't have a fast internet connection I suggest you browse over to http://www.linuxcd.org/ and order a copy for next to nothing--and while your waiting on your shinny new Linux distro in the mail you can :study: --> Study up on how to use Linux.

LinuxQuestions.org is a great resource but it's not a substitute for studying on your own.

Regards,
Slappycakes


All times are GMT -5. The time now is 07:49 AM.