This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

An error occurs by USB memory and SDK version

Hi,

I confirm it in the following environment.
Device:AM437x
Customer board
EVM board
A problem occurs with both.

The following errors occur when they copy data of 20MB continually in USB memory.
[130.161429] is Cannot enable port 1 1.0 hub 1-0. Maybe the USB cable is bad?
[134.271404] is Cannot enable port 1 1.0 hub 1-0. Maybe the USB cable is bad?
[138.381427] is Cannot enable port 1 1.0 hub 1-0. Maybe the USB cable is bad?
[142.491418] is Cannot enable port 1 1.0 hub 1-0. Maybe the USB cable is bad?

Please tell me the factor that this error occurs.

There is dependence in the memory of the USB, and there is the thing which the problem does not occurs or the problem occurs.

Problem USB memory:
IO-DATA:BUM-3B8G/K

USB memory without the problem:
BUFFALO:RUF2-K8GR
SONY: USM4GR

There is following difference in even problem USB memory by the version of SDK.

SDK version                       Result
AM437xSDK08_00_00_00              GOOD
PROCESSOR-SDK-LINUX-AM437X01_00_00_00  GOOD
PROCESSOR-SDK-LINUX-AM437X01_00_00_03  BAD
PROCESSOR-SDK-LINUX-AM437X02_00_00_00  BAD
PROCESSOR-SDK-LINUX-AM437X02_00_01_07  BAD
PROCESSOR-SDK-LINUX-AM437X02_00_02_11  BAD

From the result mentioned above, will there be any information?

Best Regards,
Shigehiro Tsuda

  • Hi Shigehiro,

    Regarding PROCESSOR-SDK-LINUX-AM437X 02_00_02_11, when you connect BUFFALO:RUF2-K8GR and/or SONY: USM4GR USB memory to the AM437x USB host port, data transfer is working fine, but when you connect IO-DATA:BUM-3B8G/K USB memory, it fails?

    Do these 3 USB memories (BUFFALO:RUF2-K8GR, SONY: USM4GR, IO-DATA:BUM-3B8G/K) work in High-Speed (HS) mode?

    Regards,
    Pavel
  • Hi Pavel,

    Thank you for quick reply.

    [your question]

    Regarding PROCESSOR-SDK-LINUX-AM437X 02_00_02_11, when you connect BUFFALO:RUF2-K8GR and/or SONY: USM4GR USB memory to the AM437x USB host port, data transfer is working fine, but when you connect IO-DATA:BUM-3B8G/K USB memory, it fails?

    [answer]

    Yes, that's correct.

    Only IO-DATA:BUM-3B8G/K fails.

    [your question]

    Do these 3 USB memories (BUFFALO:RUF2-K8GR, SONY: USM4GR, IO-DATA:BUM-3B8G/K) work in High-Speed (HS) mode?

    [answer]

    Three USB memories works in High-speed mode.

    We understood that there was following difference in bInterval in the later investigation.
    BUFFALO:RUF2-K8GR bInterval=255
    Sony: USM4GR bInterval=255
    IO-DATA:BUM-3B8G/K bInterval=0

    Is there the information having some problem with in USB memory of "bInterval=0"?

    Best Regards,

    Shigehiro Tsuda

  • Shigehiro,

    bInterval is described in the USB2.0 spec (not TI documentation):

    9.6.6 Endpoint

    Table 9-13. Standard Endpoint Descriptor

    bInterval - Interval for polling endpoint for data transfers. Expressed in frames or microframes depending on the device operating speed (i.e., either 1 millisecond or 125 μs units).

    For full-/high-speed isochronous endpoints, this value must be in the range from 1 to 16.

    For high-speed interrupt endpoints, this value must be from 1 to 16.

    For high-speed bulk/control OUT endpoints, the bInterval must specify the maximum NAK rate of the endpoint. A value of 0 indicates the endpoint never NAKs. Other values indicate at most 1 NAK each bInterval number of microframes. This value must be in the range from 0 to 255.

    What kind of transfer you have there (isochronous, interrupt, bulk/control)?

    Note also that:

    For high-speed bulk and control OUT endpoints, the bInterval field is only used for compliance purposes; the host controller is not required to change its behavior based on the value in this field.

    Regards,

    Pavel

  • Shigehiro,

    bInterval is used for speed improvement/adjustment, thus not likely to damage your data transfer. Try to identify more differences between working USB memories and non working.

    Can you test this non working USB memory with a desktop PC, will it work there?

    Can you also provide me the fill log (extracted with dmesg) from the time you connect the non-working USB memory to the board to the time this error message occur?

    Regards,
    Pavel
  • Shigehiro,

    Basically bInterval specifies how often the device should be polled for status. It is relatively high level protocol parameter and it should influence performance/latency of the device. It should not impact the device interoperability. Even more - in BULK it has completely no sense. So it shouldn't be the limiting factor at all. What I could suggest you is to provide complete descriptor dump for
    the three devices using lsusb on your desktop computer. Below is an example how I get my keyboard
    descriptors. You can do that for each of your devices.

    Wed May 11 10:51:48 root@pbotev: ~
    # lsusb
    Bus 002 Device 002: ID 8087:8000 Intel Corp.
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 8087:8008 Intel Corp.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 003: ID 05e3:0612 Genesys Logic, Inc.
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 038: ID 093a:2521 Pixart Imaging, Inc. Optical Mouse
    Bus 003 Device 037: ID 0403:6001 Future Technology Devices International, Ltd FT232
    Serial (UART) IC
    Bus 003 Device 036: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
    Bus 003 Device 035: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
    Bus 003 Device 045: ID 0424:2228 Standard Microsystems Corp. 9-in-2 Card Reader
    Bus 003 Device 044: ID 0424:2602 Standard Microsystems Corp. USB 2.0 Hub
    Bus 003 Device 043: ID 0424:2512 Standard Microsystems Corp. USB 2.0 Hub
    Bus 003 Device 002: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Wed May 11 10:51:24 root@pbotev: ~
    ------lets see my keyboard descriptors:
    ------ -vvv specifies very verbose mode to lsusb
    ------ -d v_id:p_id specidies which device
    # lsusb -d 045e:00db
    Bus 003 Device 002: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0
    Wed May 11 10:51:48 root@pbotev: ~
    # lsusb -vvv -d 045e:00db

    Bus 003 Device 002: ID 045e:00db Microsoft Corp. Natural Ergonomic Keyboard 4000 V1.0
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 8
    idVendor 0x045e Microsoft Corp.
    idProduct 0x00db Natural Ergonomic Keyboard 4000 V1.0
    bcdDevice 1.73
    iManufacturer 1 Microsoft
    iProduct 2 Natural® Ergonomic Keyboard 4000
    iSerial 0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 59
    bNumInterfaces 2
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xa0
    (Bus Powered)
    Remote Wakeup
    MaxPower 100mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 3 Human Interface Device
    bInterfaceSubClass 1 Boot Interface Subclass
    bInterfaceProtocol 1 Keyboard
    iInterface 0
    HID Device Descriptor:
    bLength 9
    bDescriptorType 33
    bcdHID 1.11
    bCountryCode 0 Not supported
    bNumDescriptors 1
    bDescriptorType 34 Report
    wDescriptorLength 60
    Report Descriptors:
    ** UNAVAILABLE **
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0008 1x 8 bytes
    bInterval 10
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 1
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 3 Human Interface Device
    bInterfaceSubClass 0 No Subclass
    bInterfaceProtocol 0 None
    iInterface 0
    HID Device Descriptor:
    bLength 9
    bDescriptorType 33
    bcdHID 1.11
    bCountryCode 0 Not supported
    bNumDescriptors 1
    bDescriptorType 34 Report
    wDescriptorLength 86
    Report Descriptors:
    ** UNAVAILABLE **
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x82 EP 2 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0008 1x 8 bytes
    bInterval 10
    Device Status: 0x0000
    (Bus Powered)
    Wed May 11 10:51:56 root@pbotev: ~
    #

    Could you perform that on the usb memories and let me take a look on their descriptors ?
  • Hi Pavel,

    Thank you for quick reply.

    As a result of having executed "lsusb" command of three USB memory, it is as follows.

    Problem USB memory:
    1.IO-DATA:BUM-3B8G/K

    root@am437x-evm:~# lsusb -v

    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 3.00
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 3
    bMaxPacketSize0 9
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0003 3.0 root hub
    bcdDevice 4.01
    iManufacturer 3 Linux 4.1.18-gbbe8cfc xhci-hcd
    iProduct 2 xHCI Host Controller
    iSerial 1 xhci-hcd.1.auto
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 31
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 9 Hub
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0 Full speed (or root) hub
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0004 1x 4 bytes
    bInterval 12
    bMaxBurst 0
    Hub Descriptor:
    bLength 12
    bDescriptorType 42
    nNbrPorts 1
    wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    bPwrOn2PwrGood 10 * 2 milli seconds
    bHubContrCurrent 0 milli Ampere
    bHubDecLat 0.0 micro seconds
    wHubDelay 0 nano seconds
    DeviceRemovable 0x00
    Hub Port Status:
    Port 1: 0000.02a0 5Gbps power Rx.Detect
    Binary Object Store Descriptor:
    bLength 5
    bDescriptorType 15
    wTotalLength 15
    bNumDeviceCaps 1
    SuperSpeed USB Device Capability:
    bLength 10
    bDescriptorType 16
    bDevCapabilityType 3
    bmAttributes 0x02
    Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported 0x0008
    Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport 3
    Lowest fully-functional device speed is SuperSpeed (5Gbps)
    bU1DevExitLat 0 micro seconds
    bU2DevExitLat 0 micro seconds
    Device Status: 0x0001
    Self Powered

    Bus 001 Device 002: ID 04bb:1010 I-O Data Device, Inc.
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.10
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    idVendor 0x04bb I-O Data Device, Inc.
    idProduct 0x1010
    bcdDevice 1.00
    iManufacturer 1 I-O DATA
    iProduct 2 USB Flash Disk
    iSerial 3 07084562F51C4C98
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 300mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 8 Mass Storage
    bInterfaceSubClass 6 SCSI
    bInterfaceProtocol 80 Bulk-Only
    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 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
    Binary Object Store Descriptor:
    bLength 5
    bDescriptorType 15
    wTotalLength 22
    bNumDeviceCaps 2
    USB 2.0 Extension Device Capability:
    bLength 7
    bDescriptorType 16
    bDevCapabilityType 2
    bmAttributes 0x00000006
    Link Power Management (LPM) Supported
    SuperSpeed USB Device Capability:
    bLength 10
    bDescriptorType 16
    bDevCapabilityType 3
    bmAttributes 0x00
    wSpeedsSupported 0x000e
    Device can operate at Full Speed (12Mbps)
    Device can operate at High Speed (480Mbps)
    Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport 2
    Lowest fully-functional device speed is High Speed (480Mbps)
    bU1DevExitLat 10 micro seconds
    bU2DevExitLat 2047 micro seconds
    Device Status: 0x0000
    (Bus Powered)

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 1 Single TT
    bMaxPacketSize0 64
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0002 2.0 root hub
    bcdDevice 4.01
    iManufacturer 3 Linux 4.1.18-gbbe8cfc xhci-hcd
    iProduct 2 xHCI Host Controller
    iSerial 1 xhci-hcd.1.auto
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 9 Hub
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0 Full speed (or root) hub
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0004 1x 4 bytes
    bInterval 12
    Hub Descriptor:
    bLength 9
    bDescriptorType 41
    nNbrPorts 1
    wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
    bPwrOn2PwrGood 10 * 2 milli seconds
    bHubContrCurrent 0 milli Ampere
    DeviceRemovable 0x00
    PortPwrCtrlMask 0xff
    Hub Port Status:
    Port 1: 0000.0523 highspeed power enable connect
    Device Status: 0x0001
    Self Powered
    root@am437x-evm:~#

    USB memory without the problem:
    2.BUFFALO:RUF2-K8GR

    root@am437x-evm:~# lsusb -v

    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 3.00
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 3
    bMaxPacketSize0 9
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0003 3.0 root hub
    bcdDevice 4.01
    iManufacturer 3 Linux 4.1.18-gbbe8cfc xhci-hcd
    iProduct 2 xHCI Host Controller
    iSerial 1 xhci-hcd.1.auto
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 31
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 9 Hub
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0 Full speed (or root) hub
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0004 1x 4 bytes
    bInterval 12
    bMaxBurst 0
    Hub Descriptor:
    bLength 12
    bDescriptorType 42
    nNbrPorts 1
    wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    bPwrOn2PwrGood 10 * 2 milli seconds
    bHubContrCurrent 0 milli Ampere
    bHubDecLat 0.0 micro seconds
    wHubDelay 0 nano seconds
    DeviceRemovable 0x00
    Hub Port Status:
    Port 1: 0000.02a0 5Gbps power Rx.Detect
    Binary Object Store Descriptor:
    bLength 5
    bDescriptorType 15
    wTotalLength 15
    bNumDeviceCaps 1
    SuperSpeed USB Device Capability:
    bLength 10
    bDescriptorType 16
    bDevCapabilityType 3
    bmAttributes 0x02
    Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported 0x0008
    Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport 3
    Lowest fully-functional device speed is SuperSpeed (5Gbps)
    bU1DevExitLat 0 micro seconds
    bU2DevExitLat 0 micro seconds
    Device Status: 0x0001
    Self Powered

    Bus 001 Device 002: ID 0411:0110 BUFFALO INC. (formerly MelCo., Inc.)
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    idVendor 0x0411 BUFFALO INC. (formerly MelCo., Inc.)
    idProduct 0x0110
    bcdDevice 40.00
    iManufacturer 1 BUFFALO
    iProduct 2 USB Flash Disk
    iSerial 3 IL50310200033058
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 200mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 8 Mass Storage
    bInterfaceSubClass 6 SCSI
    bInterfaceProtocol 80 Bulk-Only
    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 0x0200 1x 512 bytes
    bInterval 255
    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 255
    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: 0x0000
    (Bus Powered)

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 1 Single TT
    bMaxPacketSize0 64
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0002 2.0 root hub
    bcdDevice 4.01
    iManufacturer 3 Linux 4.1.18-gbbe8cfc xhci-hcd
    iProduct 2 xHCI Host Controller
    iSerial 1 xhci-hcd.1.auto
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 9 Hub
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0 Full speed (or root) hub
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0004 1x 4 bytes
    bInterval 12
    Hub Descriptor:
    bLength 9
    bDescriptorType 41
    nNbrPorts 1
    wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
    bPwrOn2PwrGood 10 * 2 milli seconds
    bHubContrCurrent 0 milli Ampere
    DeviceRemovable 0x00
    PortPwrCtrlMask 0xff
    Hub Port Status:
    Port 1: 0000.0503 highspeed power enable connect
    Device Status: 0x0001
    Self Powered
    root@am437x-evm:~#


    3.SONY: USM4GR

    root@am437x-evm:~# lsusb -v

    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 3.00
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 3
    bMaxPacketSize0 9
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0003 3.0 root hub
    bcdDevice 4.01
    iManufacturer 3 Linux 4.1.18-gbbe8cfc xhci-hcd
    iProduct 2 xHCI Host Controller
    iSerial 1 xhci-hcd.1.auto
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 31
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 9 Hub
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0 Full speed (or root) hub
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0004 1x 4 bytes
    bInterval 12
    bMaxBurst 0
    Hub Descriptor:
    bLength 12
    bDescriptorType 42
    nNbrPorts 1
    wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    bPwrOn2PwrGood 10 * 2 milli seconds
    bHubContrCurrent 0 milli Ampere
    bHubDecLat 0.0 micro seconds
    wHubDelay 0 nano seconds
    DeviceRemovable 0x00
    Hub Port Status:
    Port 1: 0000.02a0 5Gbps power Rx.Detect
    Binary Object Store Descriptor:
    bLength 5
    bDescriptorType 15
    wTotalLength 15
    bNumDeviceCaps 1
    SuperSpeed USB Device Capability:
    bLength 10
    bDescriptorType 16
    bDevCapabilityType 3
    bmAttributes 0x02
    Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported 0x0008
    Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport 3
    Lowest fully-functional device speed is SuperSpeed (5Gbps)
    bU1DevExitLat 0 micro seconds
    bU2DevExitLat 0 micro seconds
    Device Status: 0x0001
    Self Powered

    Bus 001 Device 002: ID 054c:05ba Sony Corp.
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    idVendor 0x054c Sony Corp.
    idProduct 0x05ba
    bcdDevice 1.00
    iManufacturer 1 Sony
    iProduct 2 Storage Media
    iSerial 3 CB2211409243680962
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 200mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 8 Mass Storage
    bInterfaceSubClass 6 SCSI
    bInterfaceProtocol 80 Bulk-Only
    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 0x0200 1x 512 bytes
    bInterval 255
    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 255
    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: 0x0000
    (Bus Powered)

    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 1 Single TT
    bMaxPacketSize0 64
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0002 2.0 root hub
    bcdDevice 4.01
    iManufacturer 3 Linux 4.1.18-gbbe8cfc xhci-hcd
    iProduct 2 xHCI Host Controller
    iSerial 1 xhci-hcd.1.auto
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 25
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xe0
    Self Powered
    Remote Wakeup
    MaxPower 0mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 9 Hub
    bInterfaceSubClass 0 Unused
    bInterfaceProtocol 0 Full speed (or root) hub
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0004 1x 4 bytes
    bInterval 12
    Hub Descriptor:
    bLength 9
    bDescriptorType 41
    nNbrPorts 1
    wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
    bPwrOn2PwrGood 10 * 2 milli seconds
    bHubContrCurrent 0 milli Ampere
    DeviceRemovable 0x00
    PortPwrCtrlMask 0xff
    Hub Port Status:
    Port 1: 0000.0503 highspeed power enable connect
    Device Status: 0x0001
    Self Powered

    If you understand the cause that only USB memory of IO-Data fails in by these log, please tell me.

    Best Regards,

    Shigehiro Tsuda

  • shigehiro tsuda said:

    Problem USB memory:
    1.IO-DATA:BUM-3B8G/K

    root@am437x-evm:~# lsusb -v

    What I could suggest you is to provide complete descriptor dump for the three devices using lsusb on your desktop computer.

    Can you test this non working USB memory with a desktop computer, will it work there?

    BR
    Pavel

  • Hi Pavel,

    Sorry, this answer was late.
    The result of "lsusb" command with my desktop PC is as follows.

    My Desktop PC works ubuntu 14.04.

    lsusb -v

    Bus 001 Device 002: ID 04bb:1010 I-O Data Device, Inc.
    Couldn't open device, some information will be missing
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.10
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    idVendor 0x04bb I-O Data Device, Inc.
    idProduct 0x1010
    bcdDevice 1.00
    iManufacturer 1
    iProduct 2
    iSerial 3
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0x80
    (Bus Powered)
    MaxPower 300mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 8 Mass Storage
    bInterfaceSubClass 6 SCSI
    bInterfaceProtocol 80 Bulk-Only
    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 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


    We found whether the difference in USB supported LPM in the later investigation.
    When I performed invalidity of LPM function as follows, a problem did not occur in the USB memory of IO-Data either.

    root@am437x-evm:~# echo 0 > /sys/bus/usb/devices/1-1/power/usb2_hardware_lpm
    root@am437x-evm:~# cat /sys/bus/usb/devices/1-1/power/usb2_hardware_lpm
    disabled

    As for the LPM function, is AM437x not completely supported?

    Best Regards,
    Shigehiro Tsuda

  • shigehiro tsuda said:

    We found whether the difference in USB supported LPM in the later investigation.
    When I performed invalidity of LPM function as follows, a problem did not occur in the USB memory of IO-Data either.

    root@am437x-evm:~# echo 0 > /sys/bus/usb/devices/1-1/power/usb2_hardware_lpm
    root@am437x-evm:~# cat /sys/bus/usb/devices/1-1/power/usb2_hardware_lpm
    disabled

    As for the LPM function, is AM437x not completely supported?

    Do you mean that two working USB memories does not support LPM, while non-working USB memory support LPM?  Thus when removing LPM support, the non-working USB memory now work fine?

    BR
    Pavel

  • Hi Pavel,

    Thank you for your reply.

    Yes, that's right.

    Two working USB memories does not support LPM but non-working USB memory support LPM.

    When removing LPM function, the non-working USB memory work fine.

    Best Regards,

    Shigehiro Tsuda