LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Gigabit NIC Driver problem (https://www.linuxquestions.org/questions/linux-networking-3/gigabit-nic-driver-problem-99137/)

BlackRabbit 10-01-2003 04:10 PM

Gigabit NIC Driver problem
 
Hi,

I have a SMC9462TX

RedHat 8.0 does not support it by default, so I downloaded the driver from the site.

I did the following:
"insmod smc94x2.o" (file included in downloaded ZIP)
Message:
Quote:

smc94x2.o was compiled for kernel version 2.4.2-2 while this kernel version is 2.4.18-14smp.
So I tried to make a new driver, for my kernel:

Quote:

root@Jupiter 2_4]# make all
cc -D__KERNEL__ -DSMC_SMC94X2TX -DMODULE -DCLONE -D__NO_VERSION__ -D_DUMP -DSINGLE_PACKET -D_DP83820_ -DINTR_HOLDOFF -DMEMMAPPED_IO -D_DBG -DPHY_INTR -DFAILURE_MESSAGES -DSTATISTICS -DASSERTION -DCHECKSUM -DERRDEBUG -O -Wall -I/usr/src/linux-2.4.2/include/ -g -w -c -o sp.o sp.c
make: cc: Command not found
make: *** [sp.o] Error 127
As you see, I get more errors :(

What should I do to solve my problem? Could anyone (with the same kernel) compile the driver for me? Or just explain me what he problem is and what I should do?

Thanks

hakcenter 10-01-2003 04:16 PM

copy your linux kernel source to /usr/src/linux

ex:
your kernel src is
/usr/src/linux-2.4.18-14smp

so

cp -R /usr/src/linux2-4.18-14smp /usr/src/linux

then try Make all

BlackRabbit 10-03-2003 10:01 AM

Quote:

Originally posted by hakcenter
copy your linux kernel source to /usr/src/linux

ex:
your kernel src is
/usr/src/linux-2.4.18-14smp

so

cp -R /usr/src/linux2-4.18-14smp /usr/src/linux

then try Make all

Ok thanks, I tried it but didn't work..

Anyway, I installed Slackware 9.1 now, and still have a problem (though it's another one :-) )

This time I was able to do "make all", but when I tried an "insmod smc94x2.o" I get the message:
Quote:

"Warning: loading smc94x2.o will taint the kernel: no license
See [ url ] for information about tainted modules"
And SlackWare crashed :) (can't type anything anymore, reacts on nothing)

After rebooting (hardware reboot, CTRL-ALT-DEL didn't work), "insmod smc94x2.o" gives an error: not a valid ELP file (or something)

What did I do wrong?

Also: how can I enable SMP here? (I searched for a smp kernel at bootup but didn't find it..)

Thanks


All times are GMT -5. The time now is 05:15 AM.