Jump to content

Recommended Posts

Posted

Hi everyone,

 

I have recently buy a Orange Pi plus 2e. I installed Armbian legacy/server on it.

When I plug a 3.5 HDD (in self-powered USB box), I have this message in log (dmesg) :

[   13.654305] ehci_irq: highspeed device connect
[   13.920099] usb 3-1: new high-speed USB device number 2 using sunxi-ehci
[   14.074826] scsi0 : usb-storage 3-1:1.0
[   15.070939] scsi 0:0:0:0: Direct-Access     WDC WD30 EFRX-68EUZN0          PQ: 0 ANSI: 5
[   15.073286] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[   15.073771] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[   15.074679] sd 0:0:0:0: [sda] Write Protect is off
[   15.074695] sd 0:0:0:0: [sda] Mode Sense: 28 00 00 00
[   15.076537] sd 0:0:0:0: [sda] No Caching mode page found
[   15.076555] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   15.077900] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[   15.080310] sd 0:0:0:0: [sda] No Caching mode page found
[   15.080329] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   15.210047] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   15.510084] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   15.810092] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   16.110081] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   16.410087] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   16.710055] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   16.860581] sd 0:0:0:0: [sda] Unhandled error code
[   16.860593] sd 0:0:0:0: [sda]  Result: hostbyte=0x07 driverbyte=0x00
[   16.860606] sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 08 00
[   16.860637] end_request: I/O error, dev sda, sector 0
[   16.860649] Buffer I/O error on device sda, logical block 0
[   16.990052] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   17.290047] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   17.590051] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   17.890049] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   18.190098] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   18.490133] usb 3-1: reset high-speed USB device number 2 using sunxi-ehci
[   18.640766] sd 0:0:0:0: [sda] Unhandled error code
[   18.640780] sd 0:0:0:0: [sda]  Result: hostbyte=0x07 driverbyte=0x00
[   18.640793] sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 08 00
[   18.640823] end_request: I/O error, dev sda, sector 0
[   18.640836] Buffer I/O error on device sda, logical block 0

I don't have this kind of message if :

 - I plug a 2.5 HDD (no self-powered) on the same board.

 - I plug this 3.5 HDD on a Raspberry Pi 2

 

Anyone can help me ?

 

Yannick

Posted

Thanks a lots for the quick reply !

 

Here, the result of "lsusb -v" for the device :

Bus 002 Device 002: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
  idProduct          0x2338 JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
  bcdDevice            1.00
  iManufacturer           1 JMicron
  iProduct                2 USB to ATA/ATAPI bridge
  iSerial                 5 000001D91CC4
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 USB Mass Storage
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              6 MSC Bulk-Only Transfer
      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
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered
Posted

After more investigations on internet, and some tests, the size of the HDD is important. With a 500Go : no problems, with a 3To : unreadable.

As I understand, the length of USB commands depends of HDD size (12bits vs 16bits). Recent Linux kernels have been fixed.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines