Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] USB3-SATA bridge problem

116

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
116

【Linux】 USB3-SATA bridge problem

Posted at 3/21/2019 22:42:28      View:3466 | Replies:2        Print      Only Author   [Copy Link] 1#
Last edited by abutkov In 3/21/2019 19:45 Editor

Hi everyone
I faced a problem with Orico USB3 SATA adapter - no disk shows up in a system although lsusb does see it
  1. Bus 004 Device 002: ID 2537:1068  
  2. Couldn't open device, some information will be missing
  3. Device Descriptor:
  4.   bLength                18
  5.   bDescriptorType         1
  6.   bcdUSB               3.00
  7.   bDeviceClass            0 (Defined at Interface level)
  8.   bDeviceSubClass         0
  9.   bDeviceProtocol         0
  10.   bMaxPacketSize0         9
  11.   idVendor           0x2537
  12.   idProduct          0x1068
  13.   bcdDevice            1.00
  14.   iManufacturer           1
  15.   iProduct                2
  16.   iSerial                 3
  17.   bNumConfigurations      1
  18.   Configuration Descriptor:
  19.     bLength                 9
  20.     bDescriptorType         2
  21.     wTotalLength          121
  22.     bNumInterfaces          1
  23.     bConfigurationValue     1
  24.     iConfiguration          0
  25.     bmAttributes         0xc0
  26.       Self Powered
  27.     MaxPower                2mA
  28.     Interface Descriptor:
  29.       bLength                 9
  30.       bDescriptorType         4
  31.       bInterfaceNumber        0
  32.       bAlternateSetting       0
  33.       bNumEndpoints           2
  34.       bInterfaceClass         8 Mass Storage
  35.       bInterfaceSubClass      6 SCSI
  36.       bInterfaceProtocol     80 Bulk-Only
  37.       iInterface              0
  38.       Endpoint Descriptor:
  39.         bLength                 7
  40.         bDescriptorType         5
  41.         bEndpointAddress     0x81  EP 1 IN
  42.         bmAttributes            2
  43.           Transfer Type            Bulk
  44.           Synch Type               None
  45.           Usage Type               Data
  46.         wMaxPacketSize     0x0400  1x 1024 bytes
  47.         bInterval               0
  48.         bMaxBurst              15
  49.       Endpoint Descriptor:
  50.         bLength                 7
  51.         bDescriptorType         5
  52.         bEndpointAddress     0x02  EP 2 OUT
  53.         bmAttributes            2
  54.           Transfer Type            Bulk
  55.           Synch Type               None
  56.           Usage Type               Data
  57.         wMaxPacketSize     0x0400  1x 1024 bytes
  58.         bInterval               0
  59.         bMaxBurst              15
  60.     Interface Descriptor:
  61.       bLength                 9
  62.       bDescriptorType         4
  63.       bInterfaceNumber        0
  64.       bAlternateSetting       1
  65.       bNumEndpoints           4
  66.       bInterfaceClass         8 Mass Storage
  67.       bInterfaceSubClass      6 SCSI
  68.       bInterfaceProtocol     98
  69.       iInterface              0
  70.       Endpoint Descriptor:
  71.         bLength                 7
  72.         bDescriptorType         5
  73.         bEndpointAddress     0x83  EP 3 IN
  74.         bmAttributes            2
  75.           Transfer Type            Bulk
  76.           Synch Type               None
  77.           Usage Type               Data
  78.         wMaxPacketSize     0x0400  1x 1024 bytes
  79.         bInterval               0
  80.         bMaxBurst              15
  81.         MaxStreams              8
  82.         Status pipe (0x02)
  83.       Endpoint Descriptor:
  84.         bLength                 7
  85.         bDescriptorType         5
  86.         bEndpointAddress     0x06  EP 6 OUT
  87.         bmAttributes            2
  88.           Transfer Type            Bulk
  89.           Synch Type               None
  90.           Usage Type               Data
  91.         wMaxPacketSize     0x0400  1x 1024 bytes
  92.         bInterval               0
  93.         bMaxBurst              15
  94.         Command pipe (0x01)
  95.       Endpoint Descriptor:
  96.         bLength                 7
  97.         bDescriptorType         5
  98.         bEndpointAddress     0x84  EP 4 IN
  99.         bmAttributes            2
  100.           Transfer Type            Bulk
  101.           Synch Type               None
  102.           Usage Type               Data
  103.         wMaxPacketSize     0x0400  1x 1024 bytes
  104.         bInterval               0
  105.         bMaxBurst              15
  106.         MaxStreams              8
  107.         Data-in pipe (0x03)
  108.       Endpoint Descriptor:
  109.         bLength                 7
  110.         bDescriptorType         5
  111.         bEndpointAddress     0x05  EP 5 OUT
  112.         bmAttributes            2
  113.           Transfer Type            Bulk
  114.           Synch Type               None
  115.           Usage Type               Data
  116.         wMaxPacketSize     0x0400  1x 1024 bytes
  117.         bInterval               0
  118.         bMaxBurst              15
  119.         MaxStreams              8
  120.         Data-out pipe (0x04)
Copy the code
While dmesg returns first this:
  1. [    2.994934] usb 4-1: New USB device found, idVendor=2537, idProduct=1068
  2. [    2.995545] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  3. [    2.996198] usb 4-1: Product: NS106X
  4. [    2.996523] usb 4-1: Manufacturer: Norelsys
  5. [    2.996914] usb 4-1: SerialNumber: 0123456789ABCDE
  6. [    2.998995] usb 4-1: UAS is blacklisted for this device, using usb-storage instead
  7. [    2.999831] usb 4-1: UAS is blacklisted for this device, using usb-storage instead
  8. [    3.000511] usb-storage 4-1:1.0: USB Mass Storage device detected
  9. [    3.001479] systemd[1]: Starting Create Static Device Nodes in /dev...
  10. [    3.001730] usb-storage 4-1:1.0: Quirks match for vid 2537 pid 1068: 800000
  11. [    3.001905] scsi host0: usb-storage 4-1:1.0
Copy the code
and later:
  1. [    6.270788] usb 4-1: reset SuperSpeed USB device number 2 using xhci-hcd
  2. [    7.009720] usb 4-1: reset SuperSpeed USB device number 2 using xhci-hcd
  3. [    7.652513]  sda: sda1
  4. [    7.655285] sd 0:0:0:0: [sda] Attached SCSI disk
  5. [    7.768730] usb 4-1: reset SuperSpeed USB device number 2 using xhci-hcd
  6. [    8.517902] usb 4-1: reset SuperSpeed USB device number 2 using xhci-hcd
  7. [    9.251930] usb 4-1: reset SuperSpeed USB device number 2 using xhci-hcd
  8. [    9.985826] usb 4-1: reset SuperSpeed USB device number 2 using xhci-hcd
Copy the code

That means system see the controller, disable UAS and switch it to usb-storage mode.
Any ideas?
Simple solution is using USB2 but I expect higher speed for an extra HDD.
Reply

Use props Report

1387

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1387
Posted at 3/25/2019 16:19:40        Only Author  2#
Does the USB3-SATA bridge work on the usb2 port?
Reply

Use props Report

116

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
116
Posted at 3/30/2019 12:10:16        Only Author  3#
sorry for the delay, vacation
yes USB2 port works fine on a single wired adapter (no extra power required)
actually you may find US_FL_IGNORE_UAS for Norelsys 0x2537, 0x1068 device in /drivers/usb/storage/unusual_uas.h and that is why i see blacklisted message
but then kernel keep resetting SuperSpeed USB device with no success
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list