|
机型 Zaurus SL-C3100
CPU (ARM) Intel XScale PXA270
OS: Linux 2.4.20
USB网卡芯片是 DaviCom 9601
下载驱动源码后编译生成 dm9601.o
# insmod dm9601.o
dm9601.o: dm9601.o: unresolved symbol usb_deregister
dm9601.o: dm9601.o: unresolved symbol usb_free_dev
dm9601.o: dm9601.o: unresolved symbol usb_inc_dev_use
dm9601.o: dm9601.o: unresolved symbol usb_register
dm9601.o: dm9601.o: unresolved symbol usb_set_configuration
dm9601.o: dm9601.o: unresolved symbol local_irq_save
dm9601.o: dm9601.o: unresolved symbol usb_submit_urb
dm9601.o: dm9601.o: unresolved symbol local_irq_restore
dm9601.o: dm9601.o: unresolved symbol usb_unlink_urb
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.
然后我先加载 usbcore.o 这个 mod
接着
# 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.
看来还缺少一个依赖的 mod
# depmod dm9601.o
depmod: *** Unresolved symbols in dm9601.o
dm9601.o:
# module id=string
# pci module vendor device subvendor subdevice class class_mask driver_data
# isapnp module cardvendor carddevice driver_data vendor function ...
# usb module match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info
dm9601.o 0x0003 0x083a 0x1046 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x07a6 0x0986 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x0a46 0x9601 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x3334 0x1701 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x08dd 0x0986 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x08dd 0x0987 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x08dd 0x0988 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x07aa 0x0004 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x07aa 0x9601 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x2001 0x4001 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x2001 0x4002 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x2001 0x4003 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x2001 0xabc1 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x07b8 0xabc1 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x07b8 0x4002 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x04bb 0x0904 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x056e 0x4002 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x066b 0x2202 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x066b 0x2203 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x066b 0x2204 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x066b 0x2206 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x0411 0x0001 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x0707 0x0200 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
dm9601.o 0x0003 0x0a46 0x9601 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
# module pattern
# ieee1394 module match_flags vendor_id model_id specifier_id version
# module id
#
请各位帮忙!
附上USB Device 信息:
# lsusb -v
Bus 001 Device 002: ID 0a46:0668 Davicom Semiconductor, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0a46 Davicom Semiconductor, Inc.
idProduct 0x0668
bcdDevice 1.01
iManufacturer 1 WK-668 USB NIC
iProduct 2 HenTong Tech CO., LTD
iSerial 3 0668
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
Remote Wakeup
MaxPower 144mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 0 (Defined at Interface level)
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type none
Usage Type Data
wMaxPacketSize 0x0040 bytes 64 once
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type none
Usage Type Data
wMaxPacketSize 0x0040 bytes 64 once
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
Usage Type Data
wMaxPacketSize 0x0008 bytes 8 once
bInterval 1
Language IDs: (length=4)
0409 English(US)
插上USB网卡后的dmesg信息
hub.c: new USB device -2, assigned address 2
usb.c: kmalloc IF c3baf380, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3
usb.c: USB device number 2 default language ID 0x409
Manufacturer: WK-668 USB NIC
Product: HenTong Tech CO., LTD
SerialNumber: 0668
usb.c: unhandled interfaces on device
usb.c: USB device 2 (vend/prod 0xa46/0x668) is not claimed by any active driver.
Length = 18
DescriptorType = 01
USB version = 1.10
Vendorroduct = 0a46:0668
MaxPacketSize0 = 8
NumConfigurations = 1
Device version = 1.01
Device Class:SubClassrotocol = 00:00:00
Per-interface classes
Configuration:
bLength = 9
bDescriptorType = 02
wTotalLength = 0027
bNumInterfaces = 01
bConfigurationValue = 01
iConfiguration = 00
bmAttributes = a0
MaxPower = 144mA
Interface: 0
Alternate Setting: 0
bLength = 9
bDescriptorType = 04
bInterfaceNumber = 00
bAlternateSetting = 00
bNumEndpoints = 03
bInterface Class:SubClassrotocol = 00:00:00
iInterface = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 81 (in)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 02 (out)
bmAttributes = 02 (Bulk)
wMaxPacketSize = 0040
bInterval = 00
Endpoint:
bLength = 7
bDescriptorType = 05
bEndpointAddress = 83 (in)
bmAttributes = 03 (Interrupt)
wMaxPacketSize = 0008
bInterval = 01
麻烦各位了,谢谢谢谢! |
|