Some USB 3.0 deviced don't work on Orbitty carier board.

I have a Jetson TX2 with an Orbitty carrier board. I had set a patched DTB from http://elinux.org/Jetson/TX2_USB to make USB work, and it does.

However, on USB 3.0 port, only some devices, like an USB 3.0 hub or flash drive, are properly registered, while others don’t register when plugged (there’s nothing in dmesg or lsusb).

I checked the voltage while those non-working devices were plugged and it was normal (about 5V), so it doesn’t look like a power issue. What could be the problem?

Edit:
I made an USB cable extension cable that powers with 5V separately form a 5v power adapter and with it suddenly the devices started working. So it does seem like a power issue. I wonder if it might be something with the DTB/DTS settings.

I’ve never looked at how the device tree relates to power delivery, but USB3 does have higher power delivery current than does USB2. If…and I don’t know about this case…the device tree has to be changed to also provide USB3 standards of current limits, then it is possible your USB3 is set to limit at USB2 currents…in which case a USB3 device approaching USB3 limits would fail to get the current it requires.

Anyone know if device tree has any influence over the current limit on the USB power delivery rail?

Please also refer to
https://devtalk.nvidia.com/default/topic/1013740/jetson-tx2/tx2-config-3-for-usb-lane-mapping/post/5167269/#5167269

@DaneLLL: Does this mean I have to flash the system again? I would preferably not flash as to not loose any data.

I noticed another thing: The camera I’m connecting via the Orbitty USB3.0 is set to USB 2.0.
lsusb output:

sudo lsusb -s 001:004 -v
[sudo] password for ubuntu: 

Bus 001 Device 004: ID 199e:840d The Imaging Source Europe GmbH 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x199e The Imaging Source Europe GmbH
  idProduct          0x840d 
  bcdDevice            0.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          543
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              400mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass         14 Video
      bFunctionSubClass       3 Video Interface Collection
      bFunctionProtocol       0 
      iFunction               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass        14 Video
      bInterfaceSubClass      1 Video Control
      bInterfaceProtocol      0 
      iInterface              0 
      VideoControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdUVC               1.10
        wTotalLength           86
        dwClockFrequency       48.000000MHz
        bInCollection           1
        baInterfaceNr( 0)       1
      VideoControl Interface Descriptor:
        bLength                18
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Camera Sensor
        bAssocTerminal          0
        iTerminal               0 
        wObjectiveFocalLengthMin      0
        wObjectiveFocalLengthMax      0
        wOcularFocalLength            0
        bControlSize                  3
        bmControls           0x00000008
          Exposure Time (Absolute)
      VideoControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      5 (PROCESSING_UNIT)
        bUnitID                 2
        bSourceID               1
        wMaxMultiplier      16384
        bControlSize            3
        bmControls     0x00000201
          Brightness
          Gain
        iProcessing             0 
        bmVideoStandards     0x 0
      VideoControl Interface Descriptor:
        bLength                33
        bDescriptorType        36
        bDescriptorSubtype      6 (EXTENSION_UNIT)
        bUnitID                 3
        guidExtensionCode         {0aba49de-5c0b-49d5-8f71-0be40f94a67a}
        bNumControl             2
        bNrPins                 1
        baSourceID( 0)          2
        bControlSize            8
        bmControls( 0)       0xf0
        bmControls( 1)       0xc0
        bmControls( 2)       0xfb
        bmControls( 3)       0x17
        bmControls( 4)       0x00
        bmControls( 5)       0x68
        bmControls( 6)       0x04
        bmControls( 7)       0x00
        iExtension              0 
      VideoControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             4
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID               3
        iTerminal               0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      2 Video Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      VideoStreaming Interface Descriptor:
        bLength                            15
        bDescriptorType                    36
        bDescriptorSubtype                  1 (INPUT_HEADER)
        bNumFormats                         2
        wTotalLength                      415
        bEndPointAddress                  129
        bmInfo                              0
        bTerminalLink                       4
        bStillCaptureMethod                 0
        bTriggerSupport                     0
        bTriggerUsage                       0
        bControlSize                        1
        bmaControls( 0)                    28
        bmaControls( 1)                    28
      VideoStreaming Interface Descriptor:
        bLength                            28
        bDescriptorType                    36
        bDescriptorSubtype                 16 (FORMAT_FRAME_BASED)
        bFormatIndex                        1
        bNumFrameDescriptors                4
        guidFormat                            {59383030-0000-1000-8000-00aa00389b71}
        bBitsPerPixel                       8
        bDefaultFrameIndex                  1
        bAspectRatioX                       1
        bAspectRatioY                       1
        bmInterlaceFlags                 0x00
          Interlaced stream or variable: No
          Fields per frame: 2 fields
          Field 1 first: No
          Field pattern: Field 1 only
          bCopyProtect                      0
          bVariableSize                     0
      VideoStreaming Interface Descriptor:
        bLength                            38
        bDescriptorType                    36
        bDescriptorSubtype                 17 (FRAME_FRAME_BASED)
        bFrameIndex                         1
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1920
        wHeight                          1200
        dwMinBitRate                    72000
        dwMaxBitRate                    72000
        dwDefaultFrameInterval         666666
        bFrameIntervalType                  3
        dwBytesPerLine                   1920
        dwFrameInterval( 0)            666666
        dwFrameInterval( 1)           1000000
        dwFrameInterval( 2)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            38
        bDescriptorType                    36
        bDescriptorSubtype                 17 (FRAME_FRAME_BASED)
        bFrameIndex                         2
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1920
        wHeight                          1080
        dwMinBitRate                    72000
        dwMaxBitRate                    72000
        dwDefaultFrameInterval         666666
        bFrameIntervalType                  3
        dwBytesPerLine                   1920
        dwFrameInterval( 0)            666666
        dwFrameInterval( 1)           1000000
        dwFrameInterval( 2)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            54
        bDescriptorType                    36
        bDescriptorSubtype                 17 (FRAME_FRAME_BASED)
        bFrameIndex                         3
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1280
        wHeight                           720
        dwMinBitRate                    72000
        dwMaxBitRate                    72000
        dwDefaultFrameInterval         250000
        bFrameIntervalType                  7
        dwBytesPerLine                   1280
        dwFrameInterval( 0)            250000
        dwFrameInterval( 1)            333333
        dwFrameInterval( 2)            400000
        dwFrameInterval( 3)            500000
        dwFrameInterval( 4)            666666
        dwFrameInterval( 5)           1000000
        dwFrameInterval( 6)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            62
        bDescriptorType                    36
        bDescriptorSubtype                 17 (FRAME_FRAME_BASED)
        bFrameIndex                         4
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            640
        wHeight                           480
        dwMinBitRate                    72000
        dwMaxBitRate                    72000
        dwDefaultFrameInterval         166666
        bFrameIntervalType                  9
        dwBytesPerLine                    640
        dwFrameInterval( 0)            166666
        dwFrameInterval( 1)            200000
        dwFrameInterval( 2)            250000
        dwFrameInterval( 3)            333333
        dwFrameInterval( 4)            400000
        dwFrameInterval( 5)            500000
        dwFrameInterval( 6)            666666
        dwFrameInterval( 7)           1000000
        dwFrameInterval( 8)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            28
        bDescriptorType                    36
        bDescriptorSubtype                 16 (FORMAT_FRAME_BASED)
        bFormatIndex                        2
        bNumFrameDescriptors                4
        guidFormat                            {59313620-0000-1000-8000-00aa00389b71}
        bBitsPerPixel                      16
        bDefaultFrameIndex                  1
        bAspectRatioX                       1
        bAspectRatioY                       1
        bmInterlaceFlags                 0x00
          Interlaced stream or variable: No
          Fields per frame: 2 fields
          Field 1 first: No
          Field pattern: Field 1 only
          bCopyProtect                      0
          bVariableSize                     0
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                 17 (FRAME_FRAME_BASED)
        bFrameIndex                         1
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1920
        wHeight                          1200
        dwMinBitRate                    72000
        dwMaxBitRate                    72000
        dwDefaultFrameInterval        2000000
        bFrameIntervalType                  1
        dwBytesPerLine                   3840
        dwFrameInterval( 0)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            30
        bDescriptorType                    36
        bDescriptorSubtype                 17 (FRAME_FRAME_BASED)
        bFrameIndex                         2
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1920
        wHeight                          1080
        dwMinBitRate                    72000
        dwMaxBitRate                    72000
        dwDefaultFrameInterval        2000000
        bFrameIntervalType                  1
        dwBytesPerLine                   3840
        dwFrameInterval( 0)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            42
        bDescriptorType                    36
        bDescriptorSubtype                 17 (FRAME_FRAME_BASED)
        bFrameIndex                         3
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                           1280
        wHeight                           720
        dwMinBitRate                    72000
        dwMaxBitRate                    72000
        dwDefaultFrameInterval         500000
        bFrameIntervalType                  4
        dwBytesPerLine                   2560
        dwFrameInterval( 0)            500000
        dwFrameInterval( 1)            666666
        dwFrameInterval( 2)           1000000
        dwFrameInterval( 3)           2000000
      VideoStreaming Interface Descriptor:
        bLength                            50
        bDescriptorType                    36
        bDescriptorSubtype                 17 (FRAME_FRAME_BASED)
        bFrameIndex                         4
        bmCapabilities                   0x00
          Still image unsupported
        wWidth                            640
        wHeight                           480
        dwMinBitRate                    72000
        dwMaxBitRate                    72000
        dwDefaultFrameInterval         333333
        bFrameIntervalType                  6
        dwBytesPerLine                   1280
        dwFrameInterval( 0)            333333
        dwFrameInterval( 1)            400000
        dwFrameInterval( 2)            500000
        dwFrameInterval( 3)            666666
        dwFrameInterval( 4)           1000000
        dwFrameInterval( 5)           2000000
      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

I highly recommend making sure that all code you write on the module is pushed to a source repository, and that all the data you store on the module is synced (copied) to some other system (such as the host) regularly.
“Fear of losing data” should never be a thing; if it is, that’s a signal you need to step up your data management process!

Hello Nezumi-sama,

When using the TX2 module with a Connect Tech carrier you will require our BSP to be installed. You will need to re-flash your module with our BSP, instructions can be found in the links below. This will fix you USB issue.

You will require the latest CTI BSP, Jetpack3.0 and Ubuntu 14.04.1 when flashing the TX2 module.

NVIDIA® Jetson™ TX2 & TX1 Solution Support
http://connecttech.com/Jetson

If you have any further questions please email support@connecttech.com

Carter - Connect Tech Technical Support

@Snarky: We do have our software under a revision system, but we have tons of software installed and would have to reinstall again after a full reflash, so I wanted to avoid that.

@cnoble-cti: Thanks, that worked overall.
However I now have a small issue remaining. My camera works perfectly in 3.0 mode when I plug it in after booting the TX2+Orbitty. However, when I boot with the camera already plugged in, it seems detected but I can’t read image from it. Do you happen to know what could be the issue?

Nezumi-sama,

Please insure you have installed the drivers for your camera and are using the latest firmware from your cameras manufacturer.

Carter - Connect Tech Support

Hi. The issue is resolved now, thanks to the CTI BSP and new camera firmware.
Thanks everyone for your help!

Hi,

How did you manage to flash the CTI BSP into the board without erasing the existing files?

I have an orbitty one on a TX2, and tried to install the BSP first then to flash the tegra linux it didnt work then I tried the other way (tegra then the BSP). Each time the previous image was erased by the new without my peripherical working.

Thanks by advance.

@CocoChannel2:
I unpacked Tegra186_Linux_R27.1.0_aarch64.tbz2, changed the name to Linux_for_Tegra_tx2, unpacked CTI-L4T-V103.tgz inside of it, ran install.sh script. I made a backup of system partition on my TX2 (see: http://elinux.org/Jetson/TX2_Cloning), which should be saved in bootloader/system.img, and then flashed with ./flash.sh -r orbitty mmcblk0p1. After flashing, I copied files from rootfs directory to my jetson via scp (watch out for file permissions).

Thanks for the tips.
The problem came from my Linux which was Ubuntu 16.04 instead of 14.xx I encountered some errors due to this.

Have a nice day.

For reference, my distribution is ArchLinux.

Have anyone managed to get 3.0 usb under Jetpack 3.2?