RNDIS device detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi David,

I'm hoping you can point me in the right direction to get this working.

I have a USB device, which supposedly exposes an Ethernet Gadget
(RNDIS) interface.
The device is detected fine and works under Windows, but I just can't
get it detected on Linux.

The usbnet_probe() in usbnet.c doesn't even get called


> modprobe rndis_host
> dmesg
[   81.345662] usbcore: registered new interface driver cdc_ether
[   81.365087] usbcore: registered new interface driver rndis_host
[   93.620023] usb 1-6: new high speed USB device using ehci_hcd and address 2
[   93.852765] usb 1-6: config 1 has 0 interfaces, different from the
descriptor's value: 1
[   93.853384] usb 1-6: configuration #1 chosen from 2 choices

> lsusb -v -d 07a6:4610

Bus 001 Device 002: ID 07a6:4610 ADMtek, Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x07a6 ADMtek, Inc.
  idProduct          0x4610
  bcdDevice            2.18
  iManufacturer           1 Linux 2.6.20-Amazon_SE/dwc_otg_pcd
  iProduct                2 RNDIS/Ethernet Gadget
  iSerial                10 080112111113
  bNumConfigurations      2
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           67
    bNumInterfaces          2
    bConfigurationValue     2
    iConfiguration          9 RNDIS
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol    255 Vendor Specific (MSFT RNDIS?)
      iInterface              6 RNDIS Communications Control
      CDC Header:
        bcdCDC               1.10
      CDC Call Management:
        bmCapabilities       0x00
        bDataInterface          0
      CDC ACM:
        bmCapabilities       0x00
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               9
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0
      iInterface              4 Ethernet Data
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        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     0x0200  1x 512 bytes
        bInterval               0
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength            9
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          8
    bmAttributes         0xc0
      Self Powered
    MaxPower              500mA
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            2 Communications
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      2
Device Status:     0x0100
  (Bus Powered)

> cat /debugfs/usb/devices

T:  Bus=01 Lev=01 Prnt=01 Port=05 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs=  2
P:  Vendor=07a6 ProdID=4610 Rev= 2.18
S:  Manufacturer=Linux 2.6.20-Amazon_SE/dwc_otg_pcd
S:  Product=RNDIS/Ethernet Gadget
S:  SerialNumber=080112111113
C:  #Ifs= 2 Cfg#= 2 Atr=c0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=ff Driver=
E:  Ad=83(I) Atr=03(Int.) MxPS=  16 Ivl=32ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
C:* #Ifs= 0 Cfg#= 1 Atr=c0 MxPwr=500mA


The host is an x86 running 2.6.31.9.

Any suggestions would be much appreciated.
Thanks.


Regards,
  Andrew Victor
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux