Author Topic: Compiled Usb Nic Driver, But Could Not Be Insmod  (Read 5419 times)

wellswang

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://wells.osall.com
Compiled Usb Nic Driver, But Could Not Be Insmod
« on: March 11, 2007, 03:57:42 am »
Hi,

My USB NIC is using DaviCom dm9601 chip,
i tried the driver built by meanie ( https://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: [Select]
#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: [Select]
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: [Select]
# insmod dm9601.o
dm9601.o: couldn't find the kernel version the module was compiled for

can any body help me?

thanks.

--Wells.

Ling

  • Sr. Member
  • ****
  • Posts: 350
    • View Profile
    • http://
Compiled Usb Nic Driver, But Could Not Be Insmod
« Reply #1 on: March 11, 2007, 07:41:59 am »
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.
SL-C3200 w/ pdaXii13 5.3
SL-C860 w/ OZ GPE 3.4.1
Accessories: 4GB Microdrive, 4GB Transcend SD, Linksys WFC12 CF 802.11b, Ambicom CF Modem, Socket Bluetooth

Ling

  • Sr. Member
  • ****
  • Posts: 350
    • View Profile
    • http://
Compiled Usb Nic Driver, But Could Not Be Insmod
« Reply #2 on: March 11, 2007, 07:51:53 am »
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.
SL-C3200 w/ pdaXii13 5.3
SL-C860 w/ OZ GPE 3.4.1
Accessories: 4GB Microdrive, 4GB Transcend SD, Linksys WFC12 CF 802.11b, Ambicom CF Modem, Socket Bluetooth

wellswang

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://wells.osall.com
Compiled Usb Nic Driver, But Could Not Be Insmod
« Reply #3 on: March 11, 2007, 10:04:19 pm »
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155955\"][{POST_SNAPBACK}][/a][/div]

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

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://wells.osall.com
Compiled Usb Nic Driver, But Could Not Be Insmod
« Reply #4 on: March 20, 2007, 01:52:33 am »
Can anybody help me to solve this problem?

Code: [Select]
# 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: [Select]
#include
so I don't know what's wrong with it...

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Compiled Usb Nic Driver, But Could Not Be Insmod
« Reply #5 on: March 20, 2007, 04:40:01 am »
Quote
Can anybody help me to solve this problem?

Code: [Select]
# 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: [Select]
#include
so I don't know what's wrong with it...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156772\"][{POST_SNAPBACK}][/a][/div]

you have to use gcc 2.95.x to compile kernel/modules for 2.4.x
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

wellswang

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
    • http://wells.osall.com
Compiled Usb Nic Driver, But Could Not Be Insmod
« Reply #6 on: March 20, 2007, 10:27:20 am »
I've tried gcc2.95.2 to compile this driver.
but when I insmod, I got
Code: [Select]
# 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.
« Last Edit: March 20, 2007, 10:34:55 am by wellswang »