LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   drivers for my ethernet card (https://www.linuxquestions.org/questions/linux-newbie-8/drivers-for-my-ethernet-card-246457/)

bjornbjorn 10-23-2004 04:37 PM

drivers for my ethernet card
 
My version didn't seem to support my ethernet card, but I have drivers available. But how I install them? On the floppy with the drivers i have the following files:

fealnx.c
fealnx.o
readme.txt

The redame file says:
=============================
Installation:

1. copy the source code fealnx.c to Linux,

2. compile the source code, the instruction for compiling the driver is
as follows:

#gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
-Wstrict-prototypes -O6 -c fealnx.c

3. insert the driver as module,

#insmod fealnx.o

4. bind your card to an IP address

#ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}

5. add your card to IP routing table,

#route add -net ${NETWORK} netmask ${NETMADK} eth0

6. now, you should be able to ping local network.
=============================

But if I follow the readme instructions i only get errors. What should I do?

Peacedog 10-23-2004 04:41 PM

Hi bjornbjorn, welcome to lq. Could you post the errors? Maybe we can sort where the process fails.
good luck.

bjornbjorn 10-23-2004 04:43 PM

thanks!

well... first of all it seems that gcc doesn't exists. and as far as i know that is a compiler program? but it would be good if someone could tell me just how to install the drivers. imagine that i don't have a readme-file... what should i do then?

Peacedog 10-23-2004 04:48 PM

You'll need to install the development packages first. A few questions, what distro and kernel are you running? Have you searched your system for the driver, there may be no need to install the downloaded driver? What is the output from /sbin/lspci -v, and /sbin/lsmod? Is the card an onboard, or a separate pci card?
good luck.

bjornbjorn 10-23-2004 04:58 PM

Quote:

Originally posted by PEACEDOG
You'll need to install the development packages first. A few questions, what distro and kernel are you running? Have you searched your system for the driver, there may be no need to install the downloaded driver? What is the output from /sbin/lspci -v, and /sbin/lsmod? Is the card an onboard, or a separate pci card?
good luck.

I'm running redhat on 2.4.18-14

I don't know how to search for it or where to serach, but there is no support for the card when i'm trying to configure a card.

/sbin/lspci -v find the card and recognize it's name...

lsmod lists a lot of things, but i don't know what could be according to the card.
nls_iso8859-1
ide-cd
cdrom
cs45xx
ac97_codec
soundcore
autofs
ipt_REJECT
iptable_filter
ip_tables
mousedev
keybdev
hid
input
usb-uhci
usbcore
ext3
jdb

it's a separate pci card

Peacedog 10-23-2004 05:03 PM

Quote:

/sbin/lspci -v find the card and recognize it's name
The output would've been helpful, but try this from the command line as root or su -.

modprobe fealnx

good luck.

bjornbjorn 10-23-2004 05:09 PM

Quote:

Originally posted by PEACEDOG
The output would've been helpful, but try this from the command line as root or su -.

modprobe fealnx

good luck.

01:0a.0 Ethernet controller: MYSON Technology Inc SURECOM EP-320X-S 100/10M Ethernet PCI Adapter

Subsystem: Surecom Technology: Unknown device 1320
Flags: bus master, medium devsel, latency 64, IRQ 6
I/O ports at d800 [size=256]
Memory at de800000 (32-bit, non prefetchable) [size=1K]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [88] Power Management version 2

modprobe fealnx say:

modrpobe: Can't locate module fealnx

Peacedog 10-23-2004 05:16 PM

Try this then post the output please.

locate fealnx.o

good luck.

bjornbjorn 10-23-2004 05:18 PM

nothing...

Peacedog 10-23-2004 05:29 PM

Alright, it was worth a shot. That driver has been implemented since somewhere around kernel 2.4.5, so I thought you may have a precompiled version on your system, apparently you don't.

You've got a couple of options, The easiest of which will probably be to install the development packages, and compile the driver you've downloaded, another option would be a kernel recompile to include support for the card. I'd only suggest a kernel recompile if you're very comfotable with that, as it tends to break things if you don't know what you're doing.


Once you get the development packages, get them from your install cd's btw, the instructions you have from the readme should suffice.
good luck.

bjornbjorn 10-23-2004 06:13 PM

ok, i've installed gcc... but when i'm trying to run the commandline the readme wants me to run

#gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -c fealnx.c

the answer i get is that the file or directory can't be found... i'm in the right directory i think.

Peacedog 10-23-2004 06:24 PM

If /usr/src/linux/net/inet, doesn't exist, you may need to create it. As root or su -.

cd /usr/src/linux/net
mkdir inet

Then try it.
good luck.

bjornbjorn 10-23-2004 06:28 PM

it exists. but it still wont work... :(

EDIT:
changed to caps in FEALNX.C:

#gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall -Wstrict-prototypes -O6 -c FEALNX.C

and now i get:
gcc: installation problem, cannot exec 'cc1plus': The file och directory don't exist

Peacedog 10-23-2004 06:44 PM

Try copying or moving the downloaded files to that directory, then cd to that directory before running the command, and please post any errors verbatim.
good luck.

bjornbjorn 10-23-2004 06:46 PM

just edited my last message... you posted your when i was writing... :)

Peacedog 10-23-2004 06:56 PM

This

cannot exec 'cc1plus'

means you didn't install your c++ compiler. Install all of the development packages, even the ones you don't think you'll need, you can always get rid of them later. Once that's done, try it again.
good luck.

Peacedog 10-23-2004 07:00 PM

I have to go for the evening, the wife calls.;-) If noone picks this up, I will be back tomorrow, rest assured we'll get this fixed, I'll stay here as long as you stay with me to get it sussed.
good luck.

bjornbjorn 10-24-2004 03:51 AM

thanks for trying yo help me :)

i've installed all of the packages now, and the compiler seems to run when i type the command. but i get a whole bunch of warnings and errors (i'm not going to post them here, too much work. linux is runnings on another computer).

and if i'm trying to insert the driver as module, fealnx.o still can't be found....

Peacedog 10-24-2004 01:34 PM

It's possible the driver didn't build properly, without the errors, I nor anyone else will be able to help you. It could be simple like installing your kernel source or something.
good luck.

bjornbjorn 10-24-2004 03:50 PM

if I use red hat's network configuration, there is a device listed, but it's inactivated. and if i try to activate it, I just get "Cannot activate network device eth0".

Any suggestions?

bjornbjorn 10-24-2004 04:42 PM

well, if you want to. just forget everything! and help me with another thing instead...

i've put in another adapter. it's detected and seems to work. but when i try to activate it in red hat's network configuration it don't work.

comprookie2000 10-24-2004 05:42 PM

Try from root: dhcpcd eth0

Peacedog 10-24-2004 05:43 PM

What is the output from lspci -v, and lsmod, from the current configuration? I feel like we were pretty close to a solution on the first problem. Putting in another card, could cause a whole new set of problems. In any event, I'll stay in the thread, as long as you stay with me, until we find a solution.
good luck.

bjornbjorn 10-28-2004 02:12 PM

Ok, the old card is back again. When i put in the other, a configuration automatically started when linux were booting. This did not happen with this card. What should I do? The commands gices the same results as the last time.

bjornbjorn 10-28-2004 02:53 PM

when i typed "insmod FEALNX.O" (i must use caps in fealnx.o) finally something happened. but:

"The module you are trying to load (FEALNX.O) is compiled with gcc version 2 compiler, while the kernel you are running is compiled with a gcc version 3 compiler. This is known to not work.

i put the fealnx.o-file that came along with the downloaded drivers in the directory (usr/src/linux-2.4.18-14/net/inet)

Peacedog 10-28-2004 05:26 PM

I had that error once with a sound driver. I cannot recall how I solved it. At this point, I believe you've got two choices, one is upgrade all of your development packages to a gcc version 3 compatible compiler, or a kernel recompile with the current gcc.

The catch is if you recompile the kernel it would probably be simpler to enable support for you nic, than to go through all of this again.

Don't do anything yet, I seem to recall reading somewhere that you can edit the makefile to overcome this, but, I can't find it just yet. Let me get back to you, I'm going to investigate.
good luck.

Peacedog 10-29-2004 01:27 PM

I may have found something. This thread explains a process that may overcome the problem.

http://www.nvnews.net/vbulletin/arch...hp/t-1398.html

good luck.

bjornbjorn 10-30-2004 06:49 AM

so i must install the modutils-package? i have downloaded it, but i can't understand how to get it working. please explain it in a better way :)

Peacedog 10-30-2004 10:17 AM

Post the file name of the file you downloaded.
good luck.

bjornbjorn 10-30-2004 04:09 PM

I downloaded modutils 2.4.18, the file they discussed, but i also downloaded the latest version of the file.

Peacedog 10-30-2004 05:08 PM

Is it an rpm, or src.rpm? It makes a difference on how you go about installing it. I know this has been aggrivating, and frustraing for you, but, hang in there. I'll stay in this thread as long as you stay with me.
good luck.

bjornbjorn 10-31-2004 03:40 AM

It's a "src.rpm" file.

Peacedog 10-31-2004 01:19 PM

First you have to rpmbuild filename.src.rpm, then once it's done, try upgrading the package, rpm -U filename.rpm.
good luck.

bjornbjorn 10-31-2004 03:05 PM

I write:
rpmbuild modutils-2.4.19-1.src.rpm

They tell me:
error: File //modutils-2.4.19-1.src.rpm does not appear to be a specfile.

Peacedog 11-01-2004 06:35 AM

Try this.

rpm --rebuild filename.src.rpm

Remember to be root or su -.
good luck.


All times are GMT -5. The time now is 12:33 PM.