usbip & etoken

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

 



  Hi, list.

  I have a problem with usbip and etoken. Matt Mooney didn't reply me.
Greg Kroah-Hartman seems to be too busy. So, i doesn't know who can
help me with my problem. May be anybody know what the cause of the problem?

  I have a usb etoken that doesn't want to work with usbip from 3.2.21 kernel.
It consist of two devices (2-1.2:1.0 and 2-1.2:1.1):

legohost:~# grep . /sys/bus/usb/devices/2-1.2/* 
/sys/bus/usb/devices/2-1.2/authorized:1
/sys/bus/usb/devices/2-1.2/avoid_reset_quirk:0
/sys/bus/usb/devices/2-1.2/bcdDevice:1000
/sys/bus/usb/devices/2-1.2/bConfigurationValue:1
/sys/bus/usb/devices/2-1.2/bDeviceClass:00
/sys/bus/usb/devices/2-1.2/bDeviceProtocol:00
/sys/bus/usb/devices/2-1.2/bDeviceSubClass:00
/sys/bus/usb/devices/2-1.2/bmAttributes:80
/sys/bus/usb/devices/2-1.2/bMaxPacketSize0:64
/sys/bus/usb/devices/2-1.2/bMaxPower:100mA
/sys/bus/usb/devices/2-1.2/bNumConfigurations:1
/sys/bus/usb/devices/2-1.2/bNumInterfaces: 2
/sys/bus/usb/devices/2-1.2/busnum:2
Binary file /sys/bus/usb/devices/2-1.2/descriptors matches
/sys/bus/usb/devices/2-1.2/dev:189:134
/sys/bus/usb/devices/2-1.2/devnum:7
/sys/bus/usb/devices/2-1.2/devpath:1.2
/sys/bus/usb/devices/2-1.2/idProduct:013c
/sys/bus/usb/devices/2-1.2/idVendor:2022
/sys/bus/usb/devices/2-1.2/manufacturer:Infocrypt
/sys/bus/usb/devices/2-1.2/maxchild:0
/sys/bus/usb/devices/2-1.2/product:HWDSSL DEVICE
/sys/bus/usb/devices/2-1.2/quirks:0x0
grep: /sys/bus/usb/devices/2-1.2/remove: Permission denied
/sys/bus/usb/devices/2-1.2/serial:000000000000
/sys/bus/usb/devices/2-1.2/speed:12
/sys/bus/usb/devices/2-1.2/uevent:MAJOR=189
/sys/bus/usb/devices/2-1.2/uevent:MINOR=134
/sys/bus/usb/devices/2-1.2/uevent:DEVNAME=bus/usb/002/007
/sys/bus/usb/devices/2-1.2/uevent:DEVTYPE=usb_device
/sys/bus/usb/devices/2-1.2/uevent:DRIVER=usb
/sys/bus/usb/devices/2-1.2/uevent:DEVICE=/proc/bus/usb/002/007
/sys/bus/usb/devices/2-1.2/uevent:PRODUCT=2022/13c/1000
/sys/bus/usb/devices/2-1.2/uevent:TYPE=0/0/0
/sys/bus/usb/devices/2-1.2/uevent:BUSNUM=002
/sys/bus/usb/devices/2-1.2/uevent:DEVNUM=007
/sys/bus/usb/devices/2-1.2/urbnum:315
/sys/bus/usb/devices/2-1.2/version: 2.00

legohost:~# grep . /sys/bus/usb/devices/2-1.2/2-1.2\:1.0/*
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/bAlternateSetting: 0
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/bInterfaceClass:08
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/bInterfaceNumber:00
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/bInterfaceProtocol:50
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/bInterfaceSubClass:06
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/bNumEndpoints:02
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/modalias:usb:v2022p013Cd1000dc00dsc00dp00ic08isc06ip50
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/supports_autosuspend:1
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/uevent:DEVTYPE=usb_interface
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/uevent:DRIVER=usb-storage
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/uevent:DEVICE=/proc/bus/usb/002/007
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/uevent:PRODUCT=2022/13c/1000
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/uevent:TYPE=0/0/0
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/uevent:INTERFACE=8/6/80
/sys/bus/usb/devices/2-1.2/2-1.2:1.0/uevent:MODALIAS=usb:v2022p013Cd1000dc00dsc00dp00ic08isc06ip50
legohost:~# grep . /sys/bus/usb/devices/2-1.2/2-1.2\:1.1/*
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/bAlternateSetting: 0
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/bInterfaceClass:0b
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/bInterfaceNumber:01
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/bInterfaceProtocol:00
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/bInterfaceSubClass:00
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/bNumEndpoints:02
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/modalias:usb:v2022p013Cd1000dc00dsc00dp00ic0Bisc00ip00
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/supports_autosuspend:1
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/uevent:DEVTYPE=usb_interface
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/uevent:DEVICE=/proc/bus/usb/002/007
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/uevent:PRODUCT=2022/13c/1000
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/uevent:TYPE=0/0/0
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/uevent:INTERFACE=11/0/0
/sys/bus/usb/devices/2-1.2/2-1.2:1.1/uevent:MODALIAS=usb:v2022p013Cd1000dc00dsc00dp00ic0Bisc00ip00

  When i attach it on a client, i see the next kernel messages:

vhci_hcd vhci_hcd: rhport(0) sockfd(3) devid(131079) speed(2)
vhci_hcd: changed 1
usb 1-1: new full-speed USB device number 14 using vhci_hcd
usb 1-1: SetAddress Request (14) to port 0
scsi5 : usb-storage 1-1:1.0
scsi 5:0:0:0: Direct-Access     AMICON   VPN-KEY STORAGE  0.01 PQ: 0 ANSI: 0
sd 5:0:0:0: Attached scsi generic sg2 type 0
sd 5:0:0:0: [sdb] 924 512-byte logical blocks: (473 kB/462 KiB)
sd 5:0:0:0: [sdb] Write Protect is on
sd 5:0:0:0: [sdb] Mode Sense: 1b 00 80 00
sd 5:0:0:0: [sdb] No Caching mode page present
sd 5:0:0:0: [sdb] Assuming drive cache: write through
sd 5:0:0:0: [sdb] No Caching mode page present
sd 5:0:0:0: [sdb] Assuming drive cache: write through
 sdb:
sd 5:0:0:0: [sdb] No Caching mode page present
sd 5:0:0:0: [sdb] Assuming drive cache: write through
sd 5:0:0:0: [sdb] Attached SCSI removable disk
vhci_hcd: dequeue a urb ffff88001e5c16c0
vhci_hcd: device ffff880017b061a0 seems to be still connected
vhci_hcd: unlink->seqnum 859
vhci_hcd: urb->status -104
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
usb 1-1: USB disconnect, device number 14
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-0:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
hub 1-0:1.0: unable to enumerate USB device on port 1


  And the device disappear.
  usbipd log at the same time:

Jul  6 14:50:17 localhost usbipd: usbipd: info: connection from 192.168.77.3:32909
Jul  6 14:50:17 localhost usbipd: usbipd: info: received request: 0x8003(5)
Jul  6 14:50:17 localhost usbipd: usbipd: info: found requested device: 2-1.2
Jul  6 14:50:17 localhost usbipd: libusbip: debug: usbip_host_driver.c:370:[usbip_host_export_device] write: 5#012
Jul  6 14:50:17 localhost usbipd: libusbip: debug: usbip_host_driver.c:379:[usbip_host_export_device] connect: 2-1.2
Jul  6 14:50:17 localhost usbipd: usbipd: debug: usbipd.c:137:[recv_request_import] import request busid 2-1.2: complete
Jul  6 14:50:17 localhost usbipd: usbipd: info: request 0x8003(5): complete
Jul  6 14:50:17 localhost kernel: usbip-host 2-1.2:1.0: stub up
Jul  6 14:50:17 localhost kernel: usb 2-1.2: endpoint 0 is stalled
Jul  6 14:50:17 localhost kernel: usb 2-1.2: endpoint 0 is stalled
Jul  6 14:50:17 localhost kernel: usb 2-1.2: endpoint 0 is stalled
Jul  6 14:50:17 localhost kernel: usb 2-1.2: usb_set_configuration 1 to 2-1.2... skip!
Jul  6 14:50:18 localhost kernel: usb 2-1.2: urb completion with non-zero status -121
Jul  6 14:50:18 localhost kernel: usb 2-1.2: urb completion with non-zero status -121
Jul  6 14:50:18 localhost kernel: usb 2-1.2: urb completion with non-zero status -121
Jul  6 14:50:18 localhost kernel: usb 2-1.2: urb completion with non-zero status -121
Jul  6 14:50:18 localhost kernel: usb 2-1.2: urb completion with non-zero status -121
Jul  6 14:50:18 localhost kernel: usb 2-1.2: urb completion with non-zero status -121
Jul  6 14:50:18 localhost kernel: usb 2-1.2: urb completion with non-zero status -121
Jul  6 14:50:18 localhost kernel: usb 2-1.2: endpoint 3 is stalled
Jul  6 14:50:18 localhost kernel: usb 2-1.2: usb_clear_halt done: devnum 7 endp 3
Jul  6 14:50:25 localhost kernel: usb 2-1.2: unlink urb ffff88019ad14480
Jul  6 14:50:25 localhost kernel: usb 2-1.2: unlinked by a call to usb_unlink_urb()

  Ordinary usb-storage devices works well, but this etoken doesn't work.

  What can i do to detect a problem? I can give you ssh to server host and client
host if you want.

  Thanks.
--
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