LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   drivers for my ethernet card (http://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... :)


All times are GMT -5. The time now is 09:47 PM.