LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   asound pci ethernet card / fealnx.c (https://www.linuxquestions.org/questions/linux-networking-3/asound-pci-ethernet-card-fealnx-c-19672/)

lost_newbie 04-28-2002 02:13 PM

asound pci ethernet card / fealnx.c
 
Hi everyone,

I'm new to linux, and completely lost.. I just installed a "Asound 10/100 MBPS Fast Ethernet card".. On the box it said that it "includes linux drivers"...

The driver that came with it is fealnx.c , the installation instructions say to compile it using

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

When I try this I get pages of error messages flying by, and that's it?

My system is RH 7.1 Kernel 2.4.2-2

I found several different fealnx.o files on the net and tried insmod fealnx.o but all gave error messages..

If someone could point me in the right direction I would be very gratefull!

Thank you!

Leo

bbenz3 04-29-2002 03:46 AM

try getting the latest version of the gcc compiler first. I know that at one point in time Redhat had a lot of problems with that. The reason that you can't get the other *.o files to work is they weren't compiled for your kernel.

lost_newbie 04-29-2002 06:16 AM

I'm on a lousy dialup, so downloading anything more than 1MB or so is a true pain (plus I can't connect with my linux box yet :()..

I did some more searching around last night and found the newer versions of RH include the needed file, so I broke down and bought a copy of RH 7.2 unleashed (I need a good reference book anyway) and an external modem..

Hopefully that will get me cooking :D

Thanks for your help!

Leo

lost_newbie 05-03-2002 05:44 PM

<sigh>
 
Well, just did a fresh install of RH 7.2

I finally have my modem setup and working, I can get online fine..

The problem is it still won't detect my ethernet card..

When I try modprobe fealnx it says it can't be found...?

I've tried colmpiling fealnx.c, but I get about 4 pages of errors and it fails every time...

What should I do? Dump this card and get something better, and save myself the aggrevation?

Leo

nematocyst 06-12-2002 10:33 PM

First, recognize I'm a newbie user myself, but this worked for redhat 7.2. (I have mandrake 8.2 stuff below)

Install the linux kernel-source RPM from the distro disk-- using package manager, you can search for kernel-source, or alternatively for file fealnx.c.

Find the source file, fealnx.c and cd there. For me, this was: /usr/src/linux-2.4.7-10/drivers/net

gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c fealnx.c

I'm too new to know if both of the following are required. I suspect that copying the module into the net modules section is the only important one and that the insmod simply loaded it for the current session. Anyway, I did both.

/sbin/insmod fealnx.o
cp ./fealnx.o /lib/modules/2.4.7-10/kernel/drivers/net

Reboot. You'll get some warning about an unresolved external when fealnx.o loads. Doesn't seem to
have any ill effects on my system.

Kudzu will now detect the new hardware and allow you to configure networking.

Frankly, I wish I had just bought a supported card, but at least this works.
-------------------------------------------------------------------------------------------------------------------------
For mandrake 8.2, the thing to do is:
/sbin/modprobe fealnx

You'll want that in rc.local or something.

If you haven't yet installed or intend to re-install, then you can get it loaded prior to network configuration by issuing the modprobe. To do that, simply ctrl-alt-F2 to a console, do it, and then ctrl-alt-F7 back to the graphical installer.



All times are GMT -5. The time now is 02:03 AM.