Help - Search - Members - Calendar
Full Version: Compiled Usb Nic Driver, But Could Not Be Insmod
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
wellswang
Hi,

My USB NIC is using DaviCom dm9601 chip,
i tried the driver built by meanie ( http://www.oesf.org/forums/index.php?showt...155807&st=180&# )

but unfortunately, it dosen't work.
when i tried to depmod or insmod
it reported a "Floating point" error
CODE
#insmod dm9601.o
Floating point exception


so, i tried to build it myself.

i am using pdaxrom 1.1 beta3,
gcc version is 3.4.6
i linked source code of linux kernel (2.4.20) to /usr/src/linux
and i make the version.h
CODE
cd /usr/src/linux
make include/linux/version.h


then i compiled the dm9601 driver for 2.4.20.

built it succesfully, but when i tried to insmod,
i got this error message:
CODE
# insmod dm9601.o
dm9601.o: couldn't find the kernel version the module was compiled for


can any body help me?

thanks.

--Wells.
Ling
I think that if you read Meanies post in the compiled thread, he said that he had to use 2.4.18 to get it to compile.
Ling
Here is the source that I downloaded. In the 2.4 version there seems to be a version for .18 and one for .20. I am also attaching the 2.6 version.
wellswang
QUOTE(Ling @ Mar 11 2007, 07:51 PM)
Here is the source that I downloaded. In the 2.4 version there seems to be a version for .18 and one for .20. I am also attaching the 2.6 version.
*


Thanks,

i tried to compile the driver for 2.4.18, but got many error messages,

when i tried to compile the driver for 2.4.20, only got warning message.

...

it's so strange that this driver can not be insmod.
wellswang
Can anybody help me to solve this problem?

CODE
# insmod dm9601.o
dm9601.o: couldn't find the kernel version the module was compiled for


I checked dm9601.c

it includes linux/module.h
CODE
#include <linux/module.h>


so I don't know what's wrong with it...
Meanie
QUOTE(wellswang @ Mar 20 2007, 03:52 PM)
Can anybody help me to solve this problem?

CODE
# insmod dm9601.o
dm9601.o: couldn't find the kernel version the module was compiled for


I checked dm9601.c

it includes linux/module.h
CODE
#include <linux/module.h>


so I don't know what's wrong with it...
*


you have to use gcc 2.95.x to compile kernel/modules for 2.4.x
wellswang
I've tried gcc2.95.2 to compile this driver.
but when I insmod, I got
CODE
# insmod usbcore.o
# insmod dm9601.o
dm9601.o: dm9601.o: unresolved symbol local_irq_save
dm9601.o: dm9601.o: unresolved symbol local_irq_restore
dm9601.o:
Hint: You are trying to load a module without a GPL compatible license
     and it has unresolved symbols.  Contact the module supplier for
     assistance, only they can help you.


which module should I insert first to resolve local_irq_save and local_irq_restore?

OR

I compiled it in WRONG WAY ?
(gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O6 -c dm9601.c)

Thanks.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.