USB disconnects randomly

Soleil
Posts: 35
Joined: Tue Apr 30, 2019 9:20 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 2 times
Contact:

Re: USB disconnects randomly

Unread post by Soleil » Sat May 18, 2019 8:13 am

Further testing shows that highest impact on failure ratio has connected GE adapter with some traffic on it - most probably has something to do with either interrupts or DMA (if applicable) or something between these lines (more of a wild shot than on basis of anything confirmed).

Tests with GE adapter disconnected went generally fine.
Keeping HDD in port 4, whilst looking at N2 from the back, side of ports/power supply:
1 2
3 4

status HDD GE throughput
ok 4 3 55MBs
ok 4 1 57MBs
ok 4 2 54MBs

I've run tests with luks container open and without and issue happens much quicker if container is open and not only reads or writes are done, i.e. all was good if I was just reading file from the disk (zeroed 7GB file), but the moment I tried to write something after number of successful reads then it crashed. Similar the other way around - just reading would work fine, but a try to write caused crash and USB Genesys to disappear.

Similar with USB GE adapter, just connecting it - didn't cause to much harm quickly, but getting some traffic through this interface and forwarded via onboard GE to internet (this is external interface) caused issue very rapidly.

The USB adapter in question is:

Code: Select all

Bus 002 Device 004: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass       255 Vendor Specific Subclass
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x0b95 ASIX Electronics Corp.
  idProduct          0x1790 AX88179 Gigabit Ethernet
  bcdDevice            1.00
  iManufacturer           1 ASIX Elec. Corp.
  iProduct                2 AX88179
and HDD

Code: Select all

Bus 002 Device 003: ID 0480:0900 Toshiba America Inc 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x0480 Toshiba America Inc
  idProduct          0x0900 
  bcdDevice            3.15
  iManufacturer           1 TOSHIBA
  iProduct                2 External USB 3.0
And how it is connected

Code: Select all

Bus 002 Device 003: ID 0480:0900 Toshiba America Inc 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x0480 Toshiba America Inc
  idProduct          0x0900 
  bcdDevice            3.15
  iManufacturer           1 TOSHIBA
  iProduct                2 External USB 3.0
Please advise on what else is needed to get this one fixed.

joshua.yang
Posts: 230
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2
Has thanked: 2 times
Been thanked: 20 times
Contact:

Re: USB disconnects randomly

Unread post by joshua.yang » Mon May 20, 2019 2:22 pm

In my test, it runs flawlessly for about 3 days so far. (SSD-USB to NVMe-USB, copy a lot of files with 10 cp commands)

Because I think this seems will continue to work out, I'll stop the test and start a new test.
Soleil wrote:
Sat May 18, 2019 8:13 am
Tests with GE adapter disconnected went generally fine.
Keeping HDD in port 4, whilst looking at N2 from the back, side of ports/power supply:
1 2
3 4

status HDD GE throughput
ok 4 3 55MBs
ok 4 1 57MBs
ok 4 2 54MBs
What is the exact location of USB port #4? Is it at ethernet port side or DC power jack side?
I'm going to test with Gigabit Ethernet to USB adapter.

User avatar
odroid
Site Admin
Posts: 31381
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 54 times
Been thanked: 184 times
Contact:

Re: USB disconnects randomly

Unread post by odroid » Mon May 20, 2019 2:36 pm

@joshua.yang,
Please share the chipset information (Controller vendor, part number and VID/PID) in the NVMe-USB enclosure.

joshua.yang
Posts: 230
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2
Has thanked: 2 times
Been thanked: 20 times
Contact:

Re: USB disconnects randomly

Unread post by joshua.yang » Mon May 20, 2019 2:47 pm

odroid wrote:
Mon May 20, 2019 2:36 pm
@joshua.yang,
Please share the chipset information (Controller vendor, part number and VID/PID) in the NVMe-USB enclosure.
I use RevuAhn UX970 product for NVMe-USB bridge device and installed Samsung 960 EVO NVMe 250GB into it.

Here is the result of lsusb. It uses JMicron JMS583 chipset. It is capable of UASP but I disabled it using the boot.ini way.

Code: Select all

Bus 002 Device 003: ID 152d:0583 JMicron Technology Corp. / JMicron USA Technology Corp.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.20
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         9
  idVendor           0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
  idProduct          0x0583
  bcdDevice            2.04
  iManufacturer           1 RevuAhn
  iProduct                2 UX970 device
  iSerial                 3 DD56419883A9A
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          121
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              224mA
    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     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           4
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     98
      iInterface             10 MSC USB Attached SCSI
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        Command pipe (0x01)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        MaxStreams             32
        Status pipe (0x02)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-in pipe (0x03)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-out pipe (0x04)
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           42
  bNumDeviceCaps          3
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000f0e
      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   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat          32 micro seconds
  ** UNRECOGNIZED:  14 10 0a 00 01 00 00 00 00 11 00 00 30 40 0a 00 b0 40 0a 00
Device Status:     0x0000
  (Bus Powered)

gahabana
Posts: 29
Joined: Wed Sep 07, 2016 1:47 am
languages_spoken: english
ODROIDs: odroid-c2
odroid-n2
odroid-xu4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by gahabana » Mon May 20, 2019 3:03 pm

joshua.yang wrote:
Mon May 20, 2019 2:47 pm
odroid wrote:
Mon May 20, 2019 2:36 pm
@joshua.yang,
Please share the chipset information (Controller vendor, part number and VID/PID) in the NVMe-USB enclosure.
I use RevuAhn UX970 product for NVMe-USB bridge device and installed Samsung 960 EVO NVMe 250GB into it.

Here is the result of lsusb. It uses JMicron JMS583 chipset. It is capable of UASP but I disabled it using the boot.ini way.

Code: Select all

Bus 002 Device 003: ID 152d:0583 JMicron Technology Corp. / JMicron USA Technology Corp.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.20
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         9
  idVendor           0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
  idProduct          0x0583
  bcdDevice            2.04
  iManufacturer           1 RevuAhn
  iProduct                2 UX970 device
  iSerial                 3 DD56419883A9A
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          121
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              224mA
    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     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           4
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     98
      iInterface             10 MSC USB Attached SCSI
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        Command pipe (0x01)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               0
        MaxStreams             32
        Status pipe (0x02)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-in pipe (0x03)
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
        MaxStreams             32
        Data-out pipe (0x04)
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           42
  bNumDeviceCaps          3
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x00000f0e
      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   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat          32 micro seconds
  ** UNRECOGNIZED:  14 10 0a 00 01 00 00 00 00 11 00 00 30 40 0a 00 b0 40 0a 00
Device Status:     0x0000
  (Bus Powered)
hi, i have the same USB-NVME adapter (JMS 583 chipset and same ID's) as well as 2nd one with also JMS583 chipset and (same VID different PID) ... and none of them work for more then couple of seconds/minutes.
I thought this was due to network activity (copy from samba share or rsync to/from remote machine) ... but now i get it to reliabily fail just by simple local rsync from local USB-SATA drive to USB-NVME drive.
e.g."

Code: Select all

rsync -av /mnt/satadrive/music/ /mnt/nvmedrive/music/

causes it to fail.

I have the best behavious with ASM chipset (yes in total 3 USB-NMVE cases as i documented eaerlier in the thread) but even that one fails fairly quickly.

Joshua - please try something like above ... have few 10GB+ available ... if it works 1st time (cause there are no reads to be done on destination drive since its empty 1st time) ... just interrupt it half way through and try again. I am pretty sure it will fail.

I am using vanilla ext4 filesystems .

tx

Andrew Sayers
Posts: 31
Joined: Fri May 17, 2019 5:06 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: USB disconnects randomly

Unread post by Andrew Sayers » Mon May 20, 2019 6:41 pm

Hi all, I recently reported a similar issue in another thread in this forum. The obvious behaviour is the same (USB disappears after too much disk activity), but a lot of the details are different (e.g. I bumped into it while replicating a RAID array). The issue in that thread is easy to replicate - just create a RAID array and wait for under a minute. But it's also less controllable - RAID does its thing automatically, you can't start and stop the test like with rsync.

It's probably best to keep each line of inquiry in its own thread (as they might not be related), but I'm happy to do tests/post major findings in here if people are interested.

Soleil
Posts: 35
Joined: Tue Apr 30, 2019 9:20 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 2 times
Contact:

Re: USB disconnects randomly

Unread post by Soleil » Tue May 21, 2019 10:05 am

#joshua.yang,

The layout of ports shown below is looking from the side of USB as shown:
Image

top left: 1
bottom right: 4 - the bottom close to onboard Ethernet port.

Thanks for all your help!
Did you manage to get your system into issue state?
joshua.yang wrote:
Mon May 20, 2019 2:22 pm
In my test, it runs flawlessly for about 3 days so far. (SSD-USB to NVMe-USB, copy a lot of files with 10 cp commands)

Because I think this seems will continue to work out, I'll stop the test and start a new test.
Soleil wrote:
Sat May 18, 2019 8:13 am
Tests with GE adapter disconnected went generally fine.
Keeping HDD in port 4, whilst looking at N2 from the back, side of ports/power supply:
1 2
3 4

status HDD GE throughput
ok 4 3 55MBs
ok 4 1 57MBs
ok 4 2 54MBs
What is the exact location of USB port #4? Is it at ethernet port side or DC power jack side?
I'm going to test with Gigabit Ethernet to USB adapter.

joshua.yang
Posts: 230
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2
Has thanked: 2 times
Been thanked: 20 times
Contact:

Re: USB disconnects randomly

Unread post by joshua.yang » Tue May 21, 2019 5:42 pm

Now I'm testing with Gigabit Ethernet to USB adapter, which details,

Code: Select all

Bus 002 Device 004: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass       255 Vendor Specific Subclass
  bDeviceProtocol         0
  bMaxPacketSize0         9
  idVendor           0x0b95 ASIX Electronics Corp.
  idProduct          0x1790 AX88179 Gigabit Ethernet
  bcdDevice            1.00
  iManufacturer           1 ASIX Elec. Corp.
  iProduct                2 AX88179
  iSerial                 3 00000000000001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           57
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              124mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol      0
      iInterface              4 Network_Interface
      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              11
        bMaxBurst               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               3
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst              15
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   0x00000002
      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   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat           1 micro seconds
    bU2DevExitLat         101 micro seconds
Device Status:     0x0000
  (Bus Powered)
gahabana wrote:
Mon May 20, 2019 3:03 pm

Code: Select all

rsync -av /mnt/satadrive/music/ /mnt/nvmedrive/music/

causes it to fail.

I have the best behavious with ASM chipset (yes in total 3 USB-NMVE cases as i documented eaerlier in the thread) but even that one fails fairly quickly.

Joshua - please try something like above ... have few 10GB+ available ... if it works 1st time (cause there are no reads to be done on destination drive since its empty 1st time) ... just interrupt it half way through and try again. I am pretty sure it will fail.

I am using vanilla ext4 filesystems .

tx
I will try your method to reproduce the issue.

But now, as I planed before, I'm working on some tests using GE-USB adapter. As soon as it to be done, I will test with rsync -av command as you mentioned.
Soleil wrote:
Tue May 21, 2019 10:05 am
Did you manage to get your system into issue state?
No, I couldn't. ;)

I think I have just found some interesting facts with GE-USB adapter. I will do more tests about that and clean up the upcoming results so that report here again.
These users thanked the author joshua.yang for the post:
gahabana (Wed May 22, 2019 1:48 am)

gahabana
Posts: 29
Joined: Wed Sep 07, 2016 1:47 am
languages_spoken: english
ODROIDs: odroid-c2
odroid-n2
odroid-xu4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by gahabana » Wed May 22, 2019 1:53 am

hey Joshua, I don't want to derail discussion - there are few threads where different people have different issues and all of them are related to (even with UAS support switched off) to USB-NVME adapters ... and in my experience i dont need to move stuff via network - its enough from USB-SATA drive to USB-NVME to cause linux on odroid-n2 to block/reset usb-nvme drive and fail.
I hope it is not an issue with HW design and that Odroid team will be able to figure out what to do with kernel so it would work (as it does on all intel PCs) with Odroid-n2. These days USB-NVMEs are as cheap as 2.5" sata drives and with USB-C/3.1 connectivity one could have real nice and decent Home Nas/Media Library server with quite a few TBs ... but not as long as it does not work properly.

Adding USB-Gigabit Ethernet adapter may be relevant to you but it is one more device on USB Hub and on-board Gigabit Ethernet seem to work just fine and has excellent performance as well ... my guess is you need 2 adapters for some reason (firewall, router etc ?) :)

tx!!!

joshua.yang
Posts: 230
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2
Has thanked: 2 times
Been thanked: 20 times
Contact:

Re: USB disconnects randomly

Unread post by joshua.yang » Wed May 22, 2019 6:32 pm

gahabana wrote:
Wed May 22, 2019 1:53 am
hey Joshua, I don't want to derail discussion - there are few threads where different people have different issues and all of them are related to (even with UAS support switched off) to USB-NVME adapters ... and in my experience i dont need to move stuff via network - its enough from USB-SATA drive to USB-NVME to cause linux on odroid-n2 to block/reset usb-nvme drive and fail.
I hope it is not an issue with HW design and that Odroid team will be able to figure out what to do with kernel so it would work (as it does on all intel PCs) with Odroid-n2. These days USB-NVMEs are as cheap as 2.5" sata drives and with USB-C/3.1 connectivity one could have real nice and decent Home Nas/Media Library server with quite a few TBs ... but not as long as it does not work properly.

Adding USB-Gigabit Ethernet adapter may be relevant to you but it is one more device on USB Hub and on-board Gigabit Ethernet seem to work just fine and has excellent performance as well ... my guess is you need 2 adapters for some reason (firewall, router etc ?) :)

tx!!!
Finally, we could reproduce the issue with a simple test using 2 USB drives. (FYI, even your method which is rsync-ing a lot of files from a USB drive to the other USB drive couldn't reproduce the issue, on my side :))

Yes, we just realized that NVMe-USB or GE-USB adapter ain't that important in this issue. We will let you know as soon as we get the latest information.
These users thanked the author joshua.yang for the post (total 2):
gahabana (Thu May 23, 2019 1:26 am) • thyandrecardoso (Sat May 25, 2019 1:31 am)

gahabana
Posts: 29
Joined: Wed Sep 07, 2016 1:47 am
languages_spoken: english
ODROIDs: odroid-c2
odroid-n2
odroid-xu4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by gahabana » Thu May 23, 2019 1:35 am

joshua.yang wrote:
Wed May 22, 2019 6:32 pm
gahabana wrote:
Wed May 22, 2019 1:53 am
hey Joshua, I don't want to derail discussion - there are few threads where different people have different issues and all of them are related to (even with UAS support switched off) to USB-NVME adapters ... and in my experience i dont need to move stuff via network - its enough from USB-SATA drive to USB-NVME to cause linux on odroid-n2 to block/reset usb-nvme drive and fail.
I hope it is not an issue with HW design and that Odroid team will be able to figure out what to do with kernel so it would work (as it does on all intel PCs) with Odroid-n2. These days USB-NVMEs are as cheap as 2.5" sata drives and with USB-C/3.1 connectivity one could have real nice and decent Home Nas/Media Library server with quite a few TBs ... but not as long as it does not work properly.

Adding USB-Gigabit Ethernet adapter may be relevant to you but it is one more device on USB Hub and on-board Gigabit Ethernet seem to work just fine and has excellent performance as well ... my guess is you need 2 adapters for some reason (firewall, router etc ?) :)

tx!!!
Finally, we could reproduce the issue with a simple test using 2 USB drives. (FYI, even your method which is rsync-ing a lot of files from a USB drive to the other USB drive couldn't reproduce the issue, on my side :))

Yes, we just realized that NVMe-USB or GE-USB adapter ain't that important in this issue. We will let you know as soon as we get the latest information.
Tx Joshua !!! Whatever the 'root cause' is - I am glad not only you found the root-cause but more importantly that someone (Odroid-team ?) will look into code and find a way to fix it :) AWESOME :) Cant Wait !!!
:D

gahabana
Posts: 29
Joined: Wed Sep 07, 2016 1:47 am
languages_spoken: english
ODROIDs: odroid-c2
odroid-n2
odroid-xu4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by gahabana » Sat May 25, 2019 12:31 am

FYI - i tried image (Armbian) with 5.1 kernel and same issue happens (disconnect after which USB-storage goes wrong) .... so to the best of my understanding it is not the 'code' of the linux kernel that has something missing or updated after version 4.9 but rather either a 'quirk' specific to N2 or something related to device-tree/device driver...

Either way - can't wait to see some updates and make my N2 multipurpose home server :)
tx!

gregeeh
Posts: 4
Joined: Wed May 08, 2019 8:09 am
languages_spoken: english
Has thanked: 0
Been thanked: 2 times
Contact:

Re: USB disconnects randomly

Unread post by gregeeh » Thu Jun 20, 2019 9:26 am

Finally, we could reproduce the issue with a simple test using 2 USB drives. (FYI, even your method which is rsync-ing a lot of files from a USB drive to the other USB drive couldn't reproduce the issue, on my side :))

Yes, we just realized that NVMe-USB or GE-USB adapter ain't that important in this issue. We will let you know as soon as we get the latest information.
Has there been any progress on a fix for this yet?

TIA

Greg

Andrew Sayers
Posts: 31
Joined: Fri May 17, 2019 5:06 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: USB disconnects randomly

Unread post by Andrew Sayers » Thu Jun 20, 2019 9:40 am

gregeeh wrote:
Thu Jun 20, 2019 9:26 am
Yes, we just realized that NVMe-USB or GE-USB adapter ain't that important in this issue. We will let you know as soon as we get the latest information.

Has there been any progress on a fix for this yet?

TIA

Greg
You might want to subscribe to the other thread. In short, HardKernel and Amlogic are both still working on it and in the meantime a few of us forum members have developed a workaround.

gregeeh
Posts: 4
Joined: Wed May 08, 2019 8:09 am
languages_spoken: english
Has thanked: 0
Been thanked: 2 times
Contact:

Re: USB disconnects randomly

Unread post by gregeeh » Thu Jun 20, 2019 11:10 am

and in the meantime a few of us forum members have developed a workaround.
There seems to be a couple of workarounds. Which do you suggest? I'm using CE.

TIA

Greg

Andrew Sayers
Posts: 31
Joined: Fri May 17, 2019 5:06 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: USB disconnects randomly

Unread post by Andrew Sayers » Thu Jun 20, 2019 8:39 pm

gregeeh wrote:
Thu Jun 20, 2019 11:10 am
There seems to be a couple of workarounds. Which do you suggest? I'm using CE.
I'd recommend the steps in the "Possible workaround" section of this post. I've only tested it in Ubuntu, but it's all fairly generic Linux stuff, so I guess CoreELEC would behave the same?

I try to keep that post updated as people come up with better workarounds, but I expect any future changes will just be minor tweaks to the script that applies the workaround.

rosenrot
Posts: 33
Joined: Wed Apr 10, 2019 2:37 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by rosenrot » Wed Jul 03, 2019 5:44 pm

Is there a solution in the meantime? Without workarounds only working for HDDs while the issue affects other USB devices as well?

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Wed Jul 03, 2019 5:54 pm

rosenrot wrote:
Wed Jul 03, 2019 5:44 pm
Is there a solution in the meantime? Without workarounds only working for HDDs while the issue affects other USB devices as well?
What issues your USB devices?

rosenrot
Posts: 33
Joined: Wed Apr 10, 2019 2:37 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by rosenrot » Wed Jul 03, 2019 10:03 pm

I started this thread (post1). I do see random disconnects of USB devices like USB DVB-S2 tuners and HDDs. The same holds for many other users of this forum as well as the Coreelec forum.

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Wed Jul 03, 2019 10:16 pm

rosenrot wrote:
Wed Jul 03, 2019 10:03 pm
I started this thread (post1). I do see random disconnects of USB devices like USB DVB-S2 tuners and HDDs. The same holds for many other users of this forum as well as the Coreelec forum.
Sorry, I didn't skip the page of this thread. Have asked Amlogic for the USB issue and we are testing in parallel but not having a solid solution yet.

rosenrot
Posts: 33
Joined: Wed Apr 10, 2019 2:37 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by rosenrot » Wed Jul 03, 2019 10:59 pm

tobetter wrote:
Wed Jul 03, 2019 10:16 pm
rosenrot wrote:
Wed Jul 03, 2019 10:03 pm
I started this thread (post1). I do see random disconnects of USB devices like USB DVB-S2 tuners and HDDs. The same holds for many other users of this forum as well as the Coreelec forum.
Sorry, I didn't skip the page of this thread. Have asked Amlogic for the USB issue and we are testing in parallel but not having a solid solution yet.
No worries. Thanks for asking. I'm really really waiting hard for a fix since I can not reliably use the N2 as a server at this state.

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Wed Jul 03, 2019 11:22 pm

rosenrot wrote:
Wed Jul 03, 2019 10:59 pm
tobetter wrote:
Wed Jul 03, 2019 10:16 pm
rosenrot wrote:
Wed Jul 03, 2019 10:03 pm
I started this thread (post1). I do see random disconnects of USB devices like USB DVB-S2 tuners and HDDs. The same holds for many other users of this forum as well as the Coreelec forum.
Sorry, I didn't skip the page of this thread. Have asked Amlogic for the USB issue and we are testing in parallel but not having a solid solution yet.
No worries. Thanks for asking. I'm really really waiting hard for a fix since I can not reliably use the N2 as a server at this state.
Please check out my PM. Sorry about the issue and trying to find out the root cause.

Prouser
Posts: 9
Joined: Wed Jun 19, 2019 2:36 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by Prouser » Thu Jul 04, 2019 11:09 pm

I also have issues when using the USB Ports.
Problems:
- Cannot use different Sundtek MediaTV Digital Home III Tuners
--> Error in syslog.log: "usb 1-1.4: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71"
- Cannot copy files from a USB stick with NTFS partition (I used rsync for the file transfer)
--> Multiple Errors in syslog-log: "Input/output error"

At first, I suggest that the problem was the Sundtek tuner, so I opened a thread at the Sundtek Support Forum.
Link (german): https://support.sundtek.com/index.php?topic=2406.0

But it turned out that the reason for the problems are the Odroid USB Ports.
In additional tests, I found out, that I can normally use the tuner without any errors when using the OTG Port.
Unfortunately, I cannot use the Odroid without these USB ports.


If you need more logs, please do not hesitate to contact me.
Thank you in advance for your help

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Thu Jul 04, 2019 11:13 pm

Prouser wrote:
Thu Jul 04, 2019 11:09 pm
I also have issues when using the USB Ports.
Problems:
- Cannot use different Sundtek MediaTV Digital Home III Tuners
--> Error in syslog.log: "usb 1-1.4: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71"
- Cannot copy files from a USB stick with NTFS partition (I used rsync for the file transfer)
--> Multiple Errors in syslog-log: "Input/output error"

At first, I suggest that the problem was the Sundtek tuner, so I opened a thread at the Sundtek Support Forum.
Link (german): https://support.sundtek.com/index.php?topic=2406.0

But it turned out that the reason for the problems are the Odroid USB Ports.
In additional tests, I found out, that I can normally use the tuner without any errors when using the OTG Port.
Unfortunately, I cannot use the Odroid without these USB ports.


If you need more logs, please do not hesitate to contact me.
Thank you in advance for your help
I've just updated one fix in another thread about USB issue.
viewtopic.php?f=181&t=35031#p261359

Would you please update the boot loader if you are ok to test?
Could you let me know which OS you are running on now?

EDIT:
would you be able to provide me the output of the command lsusb -t?
Also, would you let me know if the error of USB tuner happens at the beginning when it starts to work or sometime later while playing pictures?

rosenrot
Posts: 33
Joined: Wed Apr 10, 2019 2:37 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by rosenrot » Fri Jul 05, 2019 2:10 am

I'm in for testing. I'm on the latest Ubuntu.

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Fri Jul 05, 2019 2:16 am

Linux kernel and U-boot are updated with patches, please do the commands for HK's Ubuntu users.

Code: Select all

$ sudo apt update
$ sudo apt upgrade
Once you have done updating, please add one kernel argument usb-xhci.tablesize=2 to /media/boot/boot.ini. So it would be look like this.

Code: Select all

# Boot Args
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 levator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} outmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan} ${hid_quirks} usb-xhci.tablesize=2"

rosenrot
Posts: 33
Joined: Wed Apr 10, 2019 2:37 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by rosenrot » Fri Jul 05, 2019 2:56 am

Thanks! I just added it. I'm curious for reports.

gahabana
Posts: 29
Joined: Wed Sep 07, 2016 1:47 am
languages_spoken: english
ODROIDs: odroid-c2
odroid-n2
odroid-xu4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by gahabana » Fri Jul 05, 2019 5:18 pm

on my odroid-n2 updating kernel, adding boot.ini cmdline as per above and trying regular/simple copy command to move files from WD USB 3.0 HDD to PCIeNVME-USB 3.1 drive (both drives are not in UAS mode) causes it to fail even faster then ever before:

Code: Select all

Welcome to Ubuntu Disco with Armbian Linux 4.9.182-odroidn2
System load:   0.43 0.13 0.04  	Up time:       0 min
Memory usage:  5 % of 3710MB 	IP:            10.2.1.42
CPU temp:      35°C
Usage of /:    6% of 29G    	storage/:      7% of 1.8T

[ 0 security updates available, 5 updates total: apt upgrade ]
Last check: 2019-07-05 10:11

Last login: Fri Jul  5 10:08:51 2019 from 10.2.0.12

zh@n2:~$ sudo dmesg | grep xhci
[sudo] password for zh:
[    0.000000] Kernel command line: root=UUID=9bb59264-55c8-4398-a0c2-40d5b139d829 rootwait rootflags=data=writeback rw rootfstype=ext4 console=ttyS0,115200n8 console=tty1 loglevel=1  no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=1080p60hz cvbsmode=576cvbs max_freq_a53=1896 max_freq_a73=1800 maxcpus=6 voutmode=hdmi  disablehpd=false cvbscable=0 overscan=100 usb-storage.quirks=152d:0562:u usb-xhci.tablesize=2
[    3.846153] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.846162] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    3.846168] usb: xhci: determined sg_tablesize: 2
[    3.846354] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228fe6c hci version 0x110 quirks 0x20010010
[    3.846377] xhci-hcd xhci-hcd.0.auto: irq 22, io mem 0xff500000
[    3.846446] usb usb1: Manufacturer: Linux 4.9.182-odroidn2 xhci-hcd
[    3.846447] usb usb1: SerialNumber: xhci-hcd.0.auto
[    3.846795] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.846800] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    3.846803] usb: xhci: determined sg_tablesize: 2
[    3.846864] usb usb2: Manufacturer: Linux 4.9.182-odroidn2 xhci-hcd
[    3.846866] usb usb2: SerialNumber: xhci-hcd.0.auto
[    4.112729] amlogic-new-usb2-v2 ffe09000.usb2phy: ---Set port(0) tuning for host cf(xhci_hub_control)--
[    4.172714] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    4.436847] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[    4.668728] usb 1-1.1: new high-speed USB device number 3 using xhci-hcd
[    5.456919] usb 2-1.1: new SuperSpeed USB device number 3 using xhci-hcd
[    5.584725] usb 1-1.3: new high-speed USB device number 4 using xhci-hcd
[    6.232826] usb 2-1.3: new SuperSpeed USB device number 4 using xhci-hcd
zh@n2:~$ cp -ar -v -u  /mnt/wd2tb/ /mnt/p/music/
'/mnt/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/08.Boogie Man.flac' -> '/mnt/p/music/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/08.Boogie Man.flac'
'/mnt/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/09.Hail Caesar.flac' -> '/mnt/p/music/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/09.Hail Caesar.flac'
'/mnt/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/10.Hells Bells.flac' -> '/mnt/p/music/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/10.Hells Bells.flac'
^C
zh@n2:~$ lsusb
Bus 002 Device 004: ID 1058:0741 Western Digital Technologies, Inc. My Passport Ultra
Bus 002 Device 003: ID 152d:0562 JMicron Technology Corp. / JMicron USA Technology Corp.
Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
zh@n2:~$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
        |__ Port 3: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
zh@n2:~$
so it dies on copying 3rd file... here is the kernel output:

Code: Select all

[   62.472762] fb: mem_free_work, free memory: addr:800000
[  148.224859] xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command.
[  148.224870] xhci-hcd xhci-hcd.0.auto: Assuming host is dying, halting host.
[  148.240972] xhci-hcd xhci-hcd.0.auto: Host not halted after 16000 microseconds.
[  148.241010] xhci-hcd xhci-hcd.0.auto: Non-responsive xHCI host is not halting.
[  148.241023] xhci-hcd xhci-hcd.0.auto: Completing active URBs anyway.
[  148.241268] xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
[  148.241300] xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command.
[  148.241307] xhci-hcd xhci-hcd.0.auto: Assuming host is dying, halting host.
[  148.249097] xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
[  148.255972] usb 1-1: USB disconnect, device number 2
[  148.258237] usb 2-1: USB disconnect, device number 2
[  148.258250] usb 2-1.1: USB disconnect, device number 3
[  148.260973] blk_update_request: I/O error, dev sda, sector 259780608
.... etc above line repeated etc

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Fri Jul 05, 2019 5:23 pm

gahabana wrote:
Fri Jul 05, 2019 5:18 pm
on my odroid-n2 updating kernel, adding boot.ini cmdline as per above and trying regular/simple copy command to move files from WD USB 3.0 HDD to PCIeNVME-USB 3.1 drive (both drives are not in UAS mode) causes it to fail even faster then ever before:

Code: Select all

Welcome to Ubuntu Disco with Armbian Linux 4.9.182-odroidn2
System load:   0.43 0.13 0.04  	Up time:       0 min
Memory usage:  5 % of 3710MB 	IP:            10.2.1.42
CPU temp:      35°C
Usage of /:    6% of 29G    	storage/:      7% of 1.8T

[ 0 security updates available, 5 updates total: apt upgrade ]
Last check: 2019-07-05 10:11

Last login: Fri Jul  5 10:08:51 2019 from 10.2.0.12

zh@n2:~$ sudo dmesg | grep xhci
[sudo] password for zh:
[    0.000000] Kernel command line: root=UUID=9bb59264-55c8-4398-a0c2-40d5b139d829 rootwait rootflags=data=writeback rw rootfstype=ext4 console=ttyS0,115200n8 console=tty1 loglevel=1  no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=1080p60hz cvbsmode=576cvbs max_freq_a53=1896 max_freq_a73=1800 maxcpus=6 voutmode=hdmi  disablehpd=false cvbscable=0 overscan=100 usb-storage.quirks=152d:0562:u usb-xhci.tablesize=2
[    3.846153] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.846162] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    3.846168] usb: xhci: determined sg_tablesize: 2
[    3.846354] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228fe6c hci version 0x110 quirks 0x20010010
[    3.846377] xhci-hcd xhci-hcd.0.auto: irq 22, io mem 0xff500000
[    3.846446] usb usb1: Manufacturer: Linux 4.9.182-odroidn2 xhci-hcd
[    3.846447] usb usb1: SerialNumber: xhci-hcd.0.auto
[    3.846795] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.846800] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    3.846803] usb: xhci: determined sg_tablesize: 2
[    3.846864] usb usb2: Manufacturer: Linux 4.9.182-odroidn2 xhci-hcd
[    3.846866] usb usb2: SerialNumber: xhci-hcd.0.auto
[    4.112729] amlogic-new-usb2-v2 ffe09000.usb2phy: ---Set port(0) tuning for host cf(xhci_hub_control)--
[    4.172714] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    4.436847] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[    4.668728] usb 1-1.1: new high-speed USB device number 3 using xhci-hcd
[    5.456919] usb 2-1.1: new SuperSpeed USB device number 3 using xhci-hcd
[    5.584725] usb 1-1.3: new high-speed USB device number 4 using xhci-hcd
[    6.232826] usb 2-1.3: new SuperSpeed USB device number 4 using xhci-hcd
zh@n2:~$ cp -ar -v -u  /mnt/wd2tb/ /mnt/p/music/
'/mnt/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/08.Boogie Man.flac' -> '/mnt/p/music/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/08.Boogie Man.flac'
'/mnt/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/09.Hail Caesar.flac' -> '/mnt/p/music/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/09.Hail Caesar.flac'
'/mnt/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/10.Hells Bells.flac' -> '/mnt/p/music/wd2tb/AC-DC/No Bull (The Director'\''s Cut) [HD096] (2008)/10.Hells Bells.flac'
^C
zh@n2:~$ lsusb
Bus 002 Device 004: ID 1058:0741 Western Digital Technologies, Inc. My Passport Ultra
Bus 002 Device 003: ID 152d:0562 JMicron Technology Corp. / JMicron USA Technology Corp.
Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
zh@n2:~$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
        |__ Port 3: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
zh@n2:~$
so it dies on copying 3rd file... here is the kernel output:

Code: Select all

[   62.472762] fb: mem_free_work, free memory: addr:800000
[  148.224859] xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command.
[  148.224870] xhci-hcd xhci-hcd.0.auto: Assuming host is dying, halting host.
[  148.240972] xhci-hcd xhci-hcd.0.auto: Host not halted after 16000 microseconds.
[  148.241010] xhci-hcd xhci-hcd.0.auto: Non-responsive xHCI host is not halting.
[  148.241023] xhci-hcd xhci-hcd.0.auto: Completing active URBs anyway.
[  148.241268] xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
[  148.241300] xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command.
[  148.241307] xhci-hcd xhci-hcd.0.auto: Assuming host is dying, halting host.
[  148.249097] xhci-hcd xhci-hcd.0.auto: HC died; cleaning up
[  148.255972] usb 1-1: USB disconnect, device number 2
[  148.258237] usb 2-1: USB disconnect, device number 2
[  148.258250] usb 2-1.1: USB disconnect, device number 3
[  148.260973] blk_update_request: I/O error, dev sda, sector 259780608
.... etc above line repeated etc
Thanks for the update, did you update U-boot.bin as well?
Could you please do this command for sure and let me know the output?

Code: Select all

# cat /sys/kernel/debug/aml_clkmsr/clkmsr  | grep clk81

gahabana
Posts: 29
Joined: Wed Sep 07, 2016 1:47 am
languages_spoken: english
ODROIDs: odroid-c2
odroid-n2
odroid-xu4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by gahabana » Fri Jul 05, 2019 6:48 pm

hi,
yes i updated to latest u-boot as well:

Code: Select all

root@n2:~# cat /sys/kernel/debug/aml_clkmsr/clkmsr | grep clk81
[ 7][ 167000000]clk81
Does this look correct ?

Prouser
Posts: 9
Joined: Wed Jun 19, 2019 2:36 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by Prouser » Fri Jul 05, 2019 6:49 pm

tobetter wrote:
Thu Jul 04, 2019 11:13 pm
I've just updated one fix in another thread about USB issue.
viewtopic.php?f=181&t=35031#p261359

Would you please update the boot loader if you are ok to test?
Could you let me know which OS you are running on now?

EDIT:
would you be able to provide me the output of the command lsusb -t?
Also, would you let me know if the error of USB tuner happens at the beginning when it starts to work or sometime later while playing pictures?
Would you please update the boot loader if you are ok to test?
Do you mean an update of Petiboot?
I already installed the spiboot-201906-rc3.img regarding eMMC booting issues.

Could you let me know which OS you are running on now?
Ubuntu: 18.04.2 LTS
Kernel: 4.9.182-34


Would you be able to provide me the output of the command lsusb -t?
Output lsusb:

Code: Select all

Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 2659:1401 Sundtek
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Output lsusb -t:

Code: Select all

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=usbfs, 480M
        |__ Port 2: Dev 3, If 1, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 2: Dev 3, If 2, Class=Vendor Specific Class, Driver=usbfs, 480M
        |__ Port 2: Dev 3, If 3, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 2: Dev 3, If 4, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 2: Dev 3, If 5, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 2: Dev 3, If 6, Class=Vendor Specific Class, Driver=, 480M

Also, would you let me know if the error of USB tuner happens at the beginning when it starts to work or sometime later while playing pictures?
The problem occurs when I scan for channels.
For testing purples, I scanned for channels over the OTG port and then try to watch TV over the normal USB port.
--> It is not possible to watch TV when the tuner is connected to one of the four USB ports. I think errors occur no matter what I am doing (e.g. watch TV, scan channels, ...)

I already executed the following commands:
$ sudo apt update
$ sudo apt upgrade

Should I add the kernel parameter usb-xhci.tablesize=2 to /media/boot/boot.ini, too?

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Fri Jul 05, 2019 7:11 pm

Prouser wrote:
Fri Jul 05, 2019 6:49 pm
tobetter wrote:
Thu Jul 04, 2019 11:13 pm
I've just updated one fix in another thread about USB issue.
viewtopic.php?f=181&t=35031#p261359

Would you please update the boot loader if you are ok to test?
Could you let me know which OS you are running on now?

EDIT:
would you be able to provide me the output of the command lsusb -t?
Also, would you let me know if the error of USB tuner happens at the beginning when it starts to work or sometime later while playing pictures?
Would you please update the boot loader if you are ok to test?
Do you mean an update of Petiboot?
I already installed the spiboot-201906-rc3.img regarding eMMC booting issues.

Could you let me know which OS you are running on now?
Ubuntu: 18.04.2 LTS
Kernel: 4.9.182-34


Would you be able to provide me the output of the command lsusb -t?
Output lsusb:

Code: Select all

Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 2659:1401 Sundtek
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Output lsusb -t:

Code: Select all

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=usbfs, 480M
        |__ Port 2: Dev 3, If 1, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 2: Dev 3, If 2, Class=Vendor Specific Class, Driver=usbfs, 480M
        |__ Port 2: Dev 3, If 3, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 2: Dev 3, If 4, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 2: Dev 3, If 5, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 2: Dev 3, If 6, Class=Vendor Specific Class, Driver=, 480M

Also, would you let me know if the error of USB tuner happens at the beginning when it starts to work or sometime later while playing pictures?
The problem occurs when I scan for channels.
For testing purples, I scanned for channels over the OTG port and then try to watch TV over the normal USB port.
--> It is not possible to watch TV when the tuner is connected to one of the four USB ports. I think errors occur no matter what I am doing (e.g. watch TV, scan channels, ...)

I already executed the following commands:
$ sudo apt update
$ sudo apt upgrade

Should I add the kernel parameter usb-xhci.tablesize=2 to /media/boot/boot.ini, too?
Ah...you are using Petitboot...U-boot for Petitboot is not updated yet, will make update image tonight or tomorrow and will release. You can test USB issue again later once Petitboot is released or please toggle the boot select switch to MMC so no Petitboot. Also, I think your issue looks a bit different since it's not a storage device and it has multiple endpoints for a device. Let me look for a device TV tuner and will try if it happens to me. But it's worth to try once you update U-boot and change the value usb-xhci.tablesize=2.

Prouser
Posts: 9
Joined: Wed Jun 19, 2019 2:36 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by Prouser » Fri Jul 05, 2019 7:56 pm

tobetter wrote:
Fri Jul 05, 2019 7:11 pm
Ah...you are using Petitboot...U-boot for Petitboot is not updated yet, will make update image tonight or tomorrow and will release. You can test USB issue again later once Petitboot is released or please toggle the boot select switch to MMC so no Petitboot. Also, I think your issue looks a bit different since it's not a storage device and it has multiple endpoints for a device. Let me look for a device TV tuner and will try if it happens to me. But it's worth to try once you update U-boot and change the value usb-xhci.tablesize=2.
The boot select switch is on MMC.
I thought, updating the Petitboot also update the boot loader for MMC boot, because after updating I can boot from both (MMC and SPI).
Reply: viewtopic.php?p=260373#p260344


Actually, I only use MMC boot.

Prouser
Posts: 9
Joined: Wed Jun 19, 2019 2:36 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by Prouser » Tue Jul 09, 2019 6:30 pm

tobetter wrote:
Fri Jul 05, 2019 7:11 pm
Prouser wrote:
Fri Jul 05, 2019 7:56 pm
The boot select switch is on MMC.
I thought, updating the Petitboot also update the boot loader for MMC boot, because after updating I can boot from both (MMC and SPI).
Reply: viewtopic.php?p=260373#p260344
Actually, I only use MMC boot.
Any news?

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Tue Jul 09, 2019 6:34 pm

Prouser wrote:
Tue Jul 09, 2019 6:30 pm
tobetter wrote:
Fri Jul 05, 2019 7:11 pm
Prouser wrote:
Fri Jul 05, 2019 7:56 pm
The boot select switch is on MMC.
I thought, updating the Petitboot also update the boot loader for MMC boot, because after updating I can boot from both (MMC and SPI).
Reply: viewtopic.php?p=260373#p260344
Actually, I only use MMC boot.
Any news?
Sorry, I've updated the Petitboot thread.
viewtopic.php?f=182&t=33873&p=261451&hi ... ot#p261451

Prouser
Posts: 9
Joined: Wed Jun 19, 2019 2:36 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by Prouser » Tue Jul 09, 2019 11:29 pm

tobetter wrote:
Tue Jul 09, 2019 6:34 pm
Sorry, I've updated the Petitboot thread.
viewtopic.php?f=182&t=33873&p=261451&hi ... ot#p261451
I have updated the SPI flash memory with the new image.
Then I tested the tuner with and without the parameter usb-xhci.tablesize=2 in the boot.ini.

Unfortunately, the error still persists.

If you need more logs, please do not hesitate to contact me.
Thank you in advance for your help.

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Tue Jul 09, 2019 11:48 pm

Prouser wrote:
Tue Jul 09, 2019 11:29 pm
tobetter wrote:
Tue Jul 09, 2019 6:34 pm
Sorry, I've updated the Petitboot thread.
viewtopic.php?f=182&t=33873&p=261451&hi ... ot#p261451
I have updated the SPI flash memory with the new image.
Then I tested the tuner with and without the parameter usb-xhci.tablesize=2 in the boot.ini.

Unfortunately, the error still persists.

If you need more logs, please do not hesitate to contact me.
Thank you in advance for your help.
Thanks for the update, can you run this command if Petitboot is properly updated?

Code: Select all

root@n2:~# cat /sys/kernel/debug/aml_clkmsr/clkmsr | grep clk81
[ 7][ 222000000]clk81
Does the problem happen once the tuner starts to play or happens later a bit later?
Would you be able to try run your tuner after attaching to another USB hub if possible wither external power?

Prouser
Posts: 9
Joined: Wed Jun 19, 2019 2:36 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by Prouser » Wed Jul 10, 2019 6:05 pm

tobetter wrote:
Tue Jul 09, 2019 11:48 pm
Thanks for the update, can you run this command if Petitboot is properly updated?

Code: Select all

root@n2:~# cat /sys/kernel/debug/aml_clkmsr/clkmsr | grep clk81
[ 7][ 222000000]clk81
Does the problem happen once the tuner starts to play or happens later a bit later?
Would you be able to try run your tuner after attaching to another USB hub if possible wither external power?
Output cat "/sys/kernel/debug/aml_clkmsr/clkmsr | grep clk81":

Code: Select all

[ 7][ 222000000]clk81
Does the problem happen once the tuner starts to play or happens later a bit later?
It is not possible to watch TV when the tuner is connected to one of the four USB ports. I think errors occur no matter what I am doing (e.g. watch TV, scan channels, ...)

Would you be able to try run your tuner after attaching to another USB hub if possible wither external power?
I tried my tuner with an active USB hub, but the error still persists.

Prouser
Posts: 9
Joined: Wed Jun 19, 2019 2:36 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by Prouser » Sat Jul 13, 2019 5:43 am

tobetter wrote:
Tue Jul 09, 2019 11:48 pm
Prouser wrote:
Wed Jul 10, 2019 6:05 pm
Output cat "/sys/kernel/debug/aml_clkmsr/clkmsr | grep clk81":

Code: Select all

[ 7][ 222000000]clk81
Does the problem happen once the tuner starts to play or happens later a bit later?
It is not possible to watch TV when the tuner is connected to one of the four USB ports. I think errors occur no matter what I am doing (e.g. watch TV, scan channels, ...)

Would you be able to try run your tuner after attaching to another USB hub if possible wither external power?
I tried my tuner with an active USB hub, but the error still persists.
Any news or suggestions?

rosenrot
Posts: 33
Joined: Wed Apr 10, 2019 2:37 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by rosenrot » Wed Jul 17, 2019 5:34 am

tobetter wrote:
Fri Jul 05, 2019 2:16 am
Linux kernel and U-boot are updated with patches, please do the commands for HK's Ubuntu users.

Code: Select all

$ sudo apt update
$ sudo apt upgrade
Once you have done updating, please add one kernel argument usb-xhci.tablesize=2 to /media/boot/boot.ini. So it would be look like this.

Code: Select all

# Boot Args
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 levator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} outmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan} ${hid_quirks} usb-xhci.tablesize=2"
As reported by a Coreelec user with 4 USB DVB tuners, the issue persists. I'm happy for any help.
These users thanked the author rosenrot for the post:
tobetter (Wed Jul 17, 2019 5:09 pm)

trex_daemon
Posts: 3
Joined: Wed Jul 17, 2019 4:47 pm
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by trex_daemon » Wed Jul 17, 2019 4:50 pm

rosenrot wrote:
Wed Jul 17, 2019 5:34 am
tobetter wrote:
Fri Jul 05, 2019 2:16 am
Linux kernel and U-boot are updated with patches, please do the commands for HK's Ubuntu users.

Code: Select all

$ sudo apt update
$ sudo apt upgrade
Once you have done updating, please add one kernel argument usb-xhci.tablesize=2 to /media/boot/boot.ini. So it would be look like this.

Code: Select all

# Boot Args
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 levator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} outmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan} ${hid_quirks} usb-xhci.tablesize=2"
As reported by a Coreelec user with 4 USB DVB tuners, the issue persists. I'm happy for any help.
Well, I am that user. I am using 1 xbox tuner, one Dvbsky DVB-C tuner and 2 sundtek Skytv tuners. While the xbox tuner seems stable, the Sundtek tuners do disconnect after a short period of time (maybe couple of minutes)

Code: Select all

 rq 6 len 1 ret -71
[91731.018409@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91760.966941@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91767.521694@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91799.950715@1] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91804.258137@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91837.807127@1] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91886.485723@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91925.769659@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71


User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Wed Jul 17, 2019 5:09 pm

trex_daemon wrote:
Wed Jul 17, 2019 4:50 pm
rosenrot wrote:
Wed Jul 17, 2019 5:34 am
tobetter wrote:
Fri Jul 05, 2019 2:16 am
Linux kernel and U-boot are updated with patches, please do the commands for HK's Ubuntu users.

Code: Select all

$ sudo apt update
$ sudo apt upgrade
Once you have done updating, please add one kernel argument usb-xhci.tablesize=2 to /media/boot/boot.ini. So it would be look like this.

Code: Select all

# Boot Args
setenv bootargs "root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw ${condev} ${amlogic} no_console_suspend fsck.repair=yes net.ifnames=0 levator=noop hdmimode=${hdmimode} cvbsmode=576cvbs max_freq_a53=${max_freq_a53} max_freq_a73=${max_freq_a73} maxcpus=${maxcpus} outmode=${voutmode} ${cmode} disablehpd=${disablehpd} cvbscable=${cvbscable} overscan=${overscan} ${hid_quirks} usb-xhci.tablesize=2"
As reported by a Coreelec user with 4 USB DVB tuners, the issue persists. I'm happy for any help.
Well, I am that user. I am using 1 xbox tuner, one Dvbsky DVB-C tuner and 2 sundtek Skytv tuners. While the xbox tuner seems stable, the Sundtek tuners do disconnect after a short period of time (maybe couple of minutes)

Code: Select all

 rq 6 len 1 ret -71
[91731.018409@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91760.966941@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91767.521694@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91799.950715@1] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91804.258137@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91837.807127@1] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91886.485723@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71
[91925.769659@0] usb 1-1.1: usbfs: USBDEVFS_CONTROL failed cmd mediasrv rqt 192 rq 6 len 1 ret -71

Well...actually I do not have a crystal clue for TV tuner yet, just guessing some work and others are not. I am wondering if your tuner Sundtek had worked in another CE...and what's the USB info like VID and PID. -71 probably presents that TV tuner is disconnected somehow.

trex_daemon
Posts: 3
Joined: Wed Jul 17, 2019 4:47 pm
languages_spoken: english
ODROIDs: C2, N2
Has thanked: 0
Been thanked: 0
Contact:

Re: USB disconnects randomly

Unread post by trex_daemon » Wed Jul 17, 2019 7:28 pm

Well, @sundtek shall be present on this forum, maybe they can help us.

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Wed Jul 17, 2019 7:33 pm

trex_daemon wrote:
Wed Jul 17, 2019 7:28 pm
Well, @sundtek shall be present on this forum, maybe they can help us.
Interesting...wondering if your tuner works if attaching to USB OTG port?

rosenrot
Posts: 33
Joined: Wed Apr 10, 2019 2:37 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by rosenrot » Wed Jul 17, 2019 8:39 pm

I can tell that also other USB devices fail. Like USB RF dongles for RF remotes. It was always like this for Coreelec and Ubuntu on the Ordoid N2. I posted the issue in the Sundtek forum. I was the only one seeing this issue. Thus, it might be Odroid N2 specific.
Last edited by rosenrot on Wed Jul 17, 2019 8:41 pm, edited 2 times in total.

rosenrot
Posts: 33
Joined: Wed Apr 10, 2019 2:37 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by rosenrot » Wed Jul 17, 2019 8:40 pm

tobetter wrote:
Wed Jul 17, 2019 7:33 pm
trex_daemon wrote:
Wed Jul 17, 2019 7:28 pm
Well, @sundtek shall be present on this forum, maybe they can help us.
Interesting...wondering if your tuner works if attaching to USB OTG port?

Yes it does.

User avatar
tobetter
Posts: 3698
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 28 times
Been thanked: 117 times
Contact:

Re: USB disconnects randomly

Unread post by tobetter » Thu Jul 18, 2019 4:20 am

rosenrot wrote:
Wed Jul 17, 2019 8:40 pm
tobetter wrote:
Wed Jul 17, 2019 7:33 pm
trex_daemon wrote:
Wed Jul 17, 2019 7:28 pm
Well, @sundtek shall be present on this forum, maybe they can help us.
Interesting...wondering if your tuner works if attaching to USB OTG port?

Yes it does.
That's so strange...can you share which CE version are you running on now? Do you have any USB 3.0 device attached to your ODROID-N2?

rosenrot
Posts: 33
Joined: Wed Apr 10, 2019 2:37 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by rosenrot » Thu Jul 18, 2019 1:59 pm

Currently, I run the latest nightly but it happens for all versions. The same holds for Ubuntu. To my second N2, running Ubuntu, there is a USB3 HDD connected. Same disconnects. Even it restarts randomly. I'm getting disappointed with the N2.

binhex
Posts: 15
Joined: Wed Jun 19, 2019 5:54 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by binhex » Thu Jul 18, 2019 6:27 pm

rosenrot wrote:
Thu Jul 18, 2019 1:59 pm
To my second N2, running Ubuntu, there is a USB3 HDD connected. Same disconnects. Even it restarts randomly. I'm getting disappointed with the N2.
interesting!, so i am as you know running CoreELEC and have a USB3 external HDD connected (externally powered) and have no issues with disconnects or random restarts, do you have the same issue with your HDD on CoreELEC?

rosenrot
Posts: 33
Joined: Wed Apr 10, 2019 2:37 am
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 1 time
Contact:

Re: USB disconnects randomly

Unread post by rosenrot » Thu Jul 18, 2019 6:36 pm

binhex wrote:
Thu Jul 18, 2019 6:27 pm
rosenrot wrote:
Thu Jul 18, 2019 1:59 pm
To my second N2, running Ubuntu, there is a USB3 HDD connected. Same disconnects. Even it restarts randomly. I'm getting disappointed with the N2.
interesting!, so i am as you know running CoreELEC and have a USB3 external HDD connected (externally powered) and have no issues with disconnects or random restarts, do you have the same issue with your HDD on CoreELEC?
No restarts only happen on Ubuntu. Disconnects of the HDD under Ubuntu I see sometimes. I log them. Last to where on 9. and 16. of July. Disconnects are not present when using the otg USB port.

I found it also interesting in the beginning, however, I'm getting tired a bit since there is no solution for 3 months now. Almost any USB related problem in this forum is related to this issue described here. Same holds for the Coreelec forum.

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: pinkodroid and 1 guest