Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » 硬件讨论

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
USB网卡驱动加载问题
View previous topic :: View next topic  
Author Message
lonelyp



Joined: 14 Nov 2006
Posts: 260

小企鹅: 8158

PostPosted: 2007-Jan-31 Wed, pm2:51 Reply with quote
 Post subject: USB网卡驱动加载问题

机型 Zaurus SL-C3100
CPU (ARM) Intel XScale PXA270
OS: Linux 2.4.20
USB网卡芯片是 DaviCom 9601
下载驱动源码后编译生成 dm9601.o
Code:

# 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
接着
Code:

# 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
Code:

# 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 信息:

Code:

# 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信息

Code:

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
  Vendor:Product      = 0a46:0668
  MaxPacketSize0      = 8
  NumConfigurations   = 1
  Device version      = 1.01
  Device Class:SubClass:Protocol = 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:SubClass:Protocol =   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


麻烦各位了,谢谢谢谢!

_________________
my Blog: http://wells.osall.com

请支持我的开源项目Sylvan: http://sylvan.osall.com
Back to top
View user's profile Send private message Visit poster's website
ccpaging



Joined: 07 Dec 2006
Posts: 757

小企鹅: 16604

PostPosted: 2007-Feb-07 Wed, pm4:13 Reply with quote
 Post subject:

还是驱动程序和kernel不配合
一种可能是还要编译USB配套的驱动程序
一种可能是kernel里边相关的编译没打开
要不就是适用的kernel版本不对
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

_________________
SL-C1000, 1G CF, 1G SD
pdaxrom 1.1beta3
Roku Wifi Card(Used in Cacko 1.23 & pdaXrom 1.1 Beta3)
http://ccpaging.blog.ubuntu.org.cn/
http://ccpaging.osall.com/
http://blog.sina.com.cn/zaurus/
Back to top
View user's profile Send private message
freeair



Joined: 04 Dec 2006
Posts: 11

小企鹅: 320

PostPosted: 2007-Mar-01 Thu, pm7:57 Reply with quote
 Post subject:

供电没问题?
Back to top
View user's profile Send private message
lonelyp



Joined: 14 Nov 2006
Posts: 260

小企鹅: 8158

PostPosted: 2007-Mar-01 Thu, pm8:06 Reply with quote
 Post subject:

供电没问题
_________________
my Blog: http://wells.osall.com

请支持我的开源项目Sylvan: http://sylvan.osall.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » 硬件讨论 All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional