Problem with module

Donald Becker
Thu Apr 20 16:17:04 2000

On Thu, 20 Apr 2000, Jean-Philippe wrote:

> I want to add a driver for my DLink card on Redhat 5.2 (DFE-530TX).
> I've compiled the source code driver.c (where driver is my driver I want to install), I get then a driver.o
> Then I type insmod driver.o and I get an error :
> " couldn't find the Kernel version the module was compiled for "

This is caused by a change in the insmod program.  The solution is to update
your insmod program, or get an updated driver that adds a variable in the
correct circumstances.  I'm guessing that your are running a 2.2.* kernel
with the 'insmod' program distributed in 5.2 for 2.0.* kernels.

The magic lines in the driver are

#if (LINUX_VERSION_CODE >= 0x20100)  &&  defined(MODULE)
char kernel_version[] = UTS_RELEASE;

> How can I solve this problem ?

Add the following lines to the end of your driver, or get an updated driver.

Donald Becker
Scyld Computing Corporation
410 Severn Ave. Suite 210
Annapolis MD 21403

To unsubscribe send a message body containing "unsubscribe"