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 10-23-2004, 04:37 PM   #1
bjornbjorn
LQ Newbie
 
Registered: Oct 2004
Posts: 17

Rep: Reputation: 0
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?
 
Old 10-23-2004, 04:41 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
Hi bjornbjorn, welcome to lq. Could you post the errors? Maybe we can sort where the process fails.
good luck.
 
Old 10-23-2004, 04:43 PM   #3
bjornbjorn
LQ Newbie
 
Registered: Oct 2004
Posts: 17

Original Poster
Rep: Reputation: 0
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?
 
Old 10-23-2004, 04:48 PM   #4
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
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.
 
Old 10-23-2004, 04:58 PM   #5
bjornbjorn
LQ Newbie
 
Registered: Oct 2004
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 10-23-2004, 05:03 PM   #6
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
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.
 
Old 10-23-2004, 05:09 PM   #7
bjornbjorn
LQ Newbie
 
Registered: Oct 2004
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 10-23-2004, 05:16 PM   #8
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
Try this then post the output please.

locate fealnx.o

good luck.
 
Old 10-23-2004, 05:18 PM   #9
bjornbjorn
LQ Newbie
 
Registered: Oct 2004
Posts: 17

Original Poster
Rep: Reputation: 0
nothing...
 
Old 10-23-2004, 05:29 PM   #10
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
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.
 
Old 10-23-2004, 06:13 PM   #11
bjornbjorn
LQ Newbie
 
Registered: Oct 2004
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 10-23-2004, 06:24 PM   #12
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
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.
 
Old 10-23-2004, 06:28 PM   #13
bjornbjorn
LQ Newbie
 
Registered: Oct 2004
Posts: 17

Original Poster
Rep: Reputation: 0
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

Last edited by bjornbjorn; 10-23-2004 at 06:45 PM.
 
Old 10-23-2004, 06:44 PM   #14
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
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.
 
Old 10-23-2004, 06:46 PM   #15
bjornbjorn
LQ Newbie
 
Registered: Oct 2004
Posts: 17

Original Poster
Rep: Reputation: 0
just edited my last message... you posted your when i was writing...
 
  


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
Proprietary nvidia drivers vs. generic intel sound and ethernet drivers vharishankar Linux - Hardware 2 02-22-2005 05:32 AM
problems in installing drivers for myson mtd80x fast based ethernet card drivers pop_harish Linux - Hardware 0 02-12-2005 05:27 AM
Installing drivers into the kernel for a Via Gigabit Ethernet card duhasst0 Linux - Networking 0 08-24-2004 03:53 PM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
Just bought a Cnet ethernet card But I can't install drivers enigma Z Linux - Networking 0 10-01-2003 11:01 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration