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? |
Hi bjornbjorn, welcome to lq. Could you post the errors? Maybe we can sort where the process fails.
good luck. |
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? |
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. |
Quote:
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 |
Quote:
modprobe fealnx good luck. |
Quote:
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 |
Try this then post the output please.
locate fealnx.o good luck. |
nothing...
|
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. |
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. |
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. |
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 |
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. |
just edited my last message... you posted your when i was writing... :)
|
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. |
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. |
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.... |
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. |
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? |
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. |
Try from root: dhcpcd eth0
|
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. |
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.
|
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) |
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. |
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. |
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 :)
|
Post the file name of the file you downloaded.
good luck. |
I downloaded modutils 2.4.18, the file they discussed, but i also downloaded the latest version of the file.
|
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. |
It's a "src.rpm" file.
|
First you have to rpmbuild filename.src.rpm, then once it's done, try upgrading the package, rpm -U filename.rpm.
good luck. |
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. |
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. |