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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
10-23-2004, 04:37 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2004
Posts: 17
Rep:
|
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?
|
|
|
|
10-23-2004, 04:41 PM
|
#2
|
|
Guru
Registered: Sep 2003
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,245
Rep: 
|
Hi bjornbjorn, welcome to lq. Could you post the errors? Maybe we can sort where the process fails.
good luck.
|
|
|
|
10-23-2004, 04:43 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2004
Posts: 17
Original Poster
Rep:
|
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?
|
|
|
|
10-23-2004, 04:48 PM
|
#4
|
|
Guru
Registered: Sep 2003
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,245
Rep: 
|
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.
|
|
|
|
10-23-2004, 04:58 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2004
Posts: 17
Original Poster
Rep:
|
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
|
|
|
|
10-23-2004, 05:03 PM
|
#6
|
|
Guru
Registered: Sep 2003
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,245
Rep: 
|
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.
|
|
|
|
10-23-2004, 05:09 PM
|
#7
|
|
LQ Newbie
Registered: Oct 2004
Posts: 17
Original Poster
Rep:
|
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
|
|
|
|
10-23-2004, 05:16 PM
|
#8
|
|
Guru
Registered: Sep 2003
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,245
Rep: 
|
Try this then post the output please.
locate fealnx.o
good luck.
|
|
|
|
10-23-2004, 05:18 PM
|
#9
|
|
LQ Newbie
Registered: Oct 2004
Posts: 17
Original Poster
Rep:
|
nothing...
|
|
|
|
10-23-2004, 05:29 PM
|
#10
|
|
Guru
Registered: Sep 2003
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,245
Rep: 
|
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.
|
|
|
|
10-23-2004, 06:13 PM
|
#11
|
|
LQ Newbie
Registered: Oct 2004
Posts: 17
Original Poster
Rep:
|
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.
|
|
|
|
10-23-2004, 06:24 PM
|
#12
|
|
Guru
Registered: Sep 2003
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,245
Rep: 
|
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.
|
|
|
|
10-23-2004, 06:28 PM
|
#13
|
|
LQ Newbie
Registered: Oct 2004
Posts: 17
Original Poster
Rep:
|
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.
|
|
|
|
10-23-2004, 06:44 PM
|
#14
|
|
Guru
Registered: Sep 2003
Location: Danville, VA Approx. N 36°36.434' W 79°24.342' Accur. 100' or so.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,245
Rep: 
|
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.
|
|
|
|
10-23-2004, 06:46 PM
|
#15
|
|
LQ Newbie
Registered: Oct 2004
Posts: 17
Original Poster
Rep:
|
just edited my last message... you posted your when i was writing... 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:41 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|