system crash after unplugging a usb device odroidc1

Moderators: odroid, mdrjr

system crash after unplugging a usb device odroidc1

Unread postby u-gene » Wed Feb 07, 2018 4:18 am

Hello everyone!
Odroid-c1+ is running an up-to-date kernel:
uname gives "3.10.107-191 #1 SMP PREEMPT Wed Jan 3 01:59:36 UTC 2018 armv7l GNU/Linux"

I am currently using a Debian Stretch, which is also also up-to-date. I've had the board for about 3 years with multiple OSes and kernels, including the official Ubuntu and both official and custom built kernels. This issue appears to be present throughout all of those systems.

The board would crash after a usb device gets unplugged. It's interesting that this behavior is not very consistent: the crash doesn't necessarily follow from the first instance. The board would get unresponsive and blue light gets steady after several plugging and unplugging. As an example for a usb device causing it: a Logitech wireless keyboard/mouse, a DAC usb system, 3.5/2.5 HDD enclosure.

The logs state the usb disconnect events as its last records indicating that cannot reset it:

Feb 1 23:19:48 OdroidC1 kernel: [527913.134020@3] logitech-djreceiver 0003:046D:C52B.0014: can't reset device, lm1-1.1/input2, status -32
...
Feb 1 23:19:48 OdroidC1 kernel: [527913.152658@3] logitech-djreceiver 0003:046D:C52B.0014: can't reset device, lm1-1.1/input2, status -71
Feb 1 23:19:48 OdroidC1 kernel: [527913.380302@3] hid_irq_in too many eproto,try to reset device
Feb 1 23:19:49 OdroidC1 kernel: [527914.074899@3] usb 1-1.1: USB disconnect, device number 9

This must a bug in the amlogic kernel somewhere. I cannot recall any other Linux to cause a kernel crash after the usb disconnect recently for the past... few decades.
Please advise how to fix or mitigate it.
Thanks in advance!
u-gene
 
Posts: 14
Joined: Thu Dec 07, 2017 3:05 pm
languages_spoken: english
ODROIDs: c1, c1+, xu4

Re: system crash after unplugging a usb device odroidc1

Unread postby rooted » Wed Feb 07, 2018 6:08 am

I never had an issue with my C1+ but I didn't unplug devices a lot I don't believe.

Are you certain it isn't a faulty USB connector on the board or perhaps a bit of metal floating around in the connector?
User avatar
rooted
 
Posts: 4685
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: system crash after unplugging a usb device odroidc1

Unread postby u-gene » Wed Feb 07, 2018 6:57 am

No, I am pretty sure about it. It doesn't matter which of the four ports it is. I remember that the same had been happening to my previous board c1. I have a DAC amplifier I would plug it back and forth between my 2 LMDE x86 comps, xu4 and bananapi. Only c1 has this issue. I also have to swap my mouse/keyboard between different boards. 4th-5th unplugging from c1+ would crash it.
The board is inside an enclosure on a wooden desk and no metal is lying around it.
u-gene
 
Posts: 14
Joined: Thu Dec 07, 2017 3:05 pm
languages_spoken: english
ODROIDs: c1, c1+, xu4

Re: system crash after unplugging a usb device odroidc1

Unread postby phaseshifter » Wed Feb 07, 2018 12:38 pm

@ odroid pls move to c1 sub-forum..

further more i have the usb issues with my c1+ it has very finicky usb ports almost temperamental..some might say... and has been a known issue in these boards for some time..c-2 is fine but the c1 series are not great at all.
odroid N-1 16Gb emmc orange..
phaseshifter
 
Posts: 2760
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: N-1..c1+ ..c-2..xu3 lite,xu4...u-3..
u-2...other odroid acc`s as well

Re: system crash after unplugging a usb device odroidc1

Unread postby meveric » Wed Feb 07, 2018 4:49 pm

the above behavior is a known issue on the C1-Series.
Low Level USB devices such as USB Keyboard/Mouse and others cause issues with the board, one of the most common issue, is that when you unplug the device the board freezes.
This issue stands for years already and there's nothing you can do.
Maybe once a newer Kernel is available it will work, but until then you sadly have to live with it.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 8607
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1

Re: system crash after unplugging a usb device odroidc1

Unread postby rooted » Wed Feb 07, 2018 5:06 pm

Didn't a good powered USB hub mitigate the problem?
User avatar
rooted
 
Posts: 4685
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: system crash after unplugging a usb device odroidc1

Unread postby meveric » Wed Feb 07, 2018 6:20 pm

nope that's a problem with the USB Kernel driver... powered hub or not has no influence in that issue.
The OTG port was running more "stable" but even that doesn't work perfect.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 8607
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1

Re: system crash after unplugging a usb device odroidc1

Unread postby rooted » Wed Feb 07, 2018 6:27 pm

That's what it was, OTG. But that was keyboard missing strokes and popping USB audio, or at least that's what I remember.

Getting old.
User avatar
rooted
 
Posts: 4685
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: system crash after unplugging a usb device odroidc1

Unread postby u-gene » Thu Feb 08, 2018 4:43 am

Thanks everyone for the feedback! Yes, as maveric pointed out, it's what I thought it was: some old usb bug without much chances to get resolved before being moved over to the mainline, if we ever get there with this board at all (:
I hope c1+ would follow the xu4/3 example at some point. I will try to abstain from usb hotswapping for now.
@ phaseshifter: No, my board is built quite well. I have no complaints there.
Thanks again!
u-gene
 
Posts: 14
Joined: Thu Dec 07, 2017 3:05 pm
languages_spoken: english
ODROIDs: c1, c1+, xu4


Return to Issues

Who is online

Users browsing this forum: No registered users and 2 guests