Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to install a SMC9452TX card under Redhat 9.0 using kernal 2.4.20-30.9.
I have downloaded the most current drivers from the SMC site.
They claim to have drivers for both 2.2 and 2.4 versions of the kernel.
When I attempt to use insmod to install the 2.4 version of the driver I receive the following error.
[root@localhost 2_4]# insmod smc94x2.o
smc94x2.o: kernel-module version mismatch
smc94x2.o was compiled for kernel version 2.4.2-2
while this kernel is version 2.4.20-30.9smp.
[root@localhost 2_4]#
At this point I decided to just compile the driver against the currently running kernel, thinking it would
take care of everything. When I did that, I received the following:
[root@localhost 2_4]# make
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
In file included from nsmtypes.h:9,
from sp.c:18:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/mm.h:4,
from nsmtypes.h:13,
from sp.c:18:
/usr/include/linux/timex.h:173: field `time' has incomplete type
/usr/include/linux/timex.h:188: confused by earlier errors, bailing out
make: *** [sp.o] Error 1
[root@localhost 2_4]#
When I use the above makefile, I get the same results... as before, see below
[root@localhost 2_4]# make
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/lib/modules//build/include/ -g -w -c -o sp.o sp.c
In file included from nsmtypes.h:9,
from sp.c:18:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/mm.h:4,
from nsmtypes.h:13,
from sp.c:18:
/usr/include/linux/timex.h:173: field `time' has incomplete type
/usr/include/linux/timex.h:188: confused by earlier errors, bailing out
make: *** [sp.o] Error 1
[root@localhost 2_4]#
Here is the output from DMESG, showing that I already have an eth0 adaptor installed. Is this the problem?
Do I need to change the vaule in the makefile to eth1?? If anyone can direct me on this, please....??
[root@localhost 2_4]# dmesg | grep eth
divert: allocating divert_blk for eth0
eth0: Intel(R) PRO/1000 Network Connection
e1000: eth0 NIC Link is Up 10 Mbps Half Duplex
[root@localhost 2_4]#
To all,
In case anyone is interested. I contacted the developer of the driver, their support staff was very helpful. When I explained my issue, they informed me to use a different driver, SK98LIN. I then downloaded and compiled it for the 2.4 version of the kernel. Now the driver installs and the card is working. The vendor for this driver is WWW.SYSKONNECT.COM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.