Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[ODROID C2] USB ports are (still?) not working properly

Featured Replies

Hello,

I have installed Armbian Debian Stretch Next (mainline kernel) on my Odroid C2 and updated to newest version(apt update & apt upgrade).

Everything works fine except USB ports.

 

I have USB LTE modem which is not recognized. I have tried "lsusb -v" but with this modem not works.

But when I connect USB keyboard first then "lsusb -v" and next I connect LTE modem and type "lsusb -v" then it's works.

 

I also tried connecting USB LTE modem before Odroid C2 boot but this workaround not working.

 

Is there any workaround which not involving connecting more than one USB device?

 

Maybe usb kernel modules (usbcore, ehci_hcd, ...) compiled as external modules will help find workaround?

Edited by zanzibar

  • Author

I found easy workaround.

Add usbcore.autosuspend=-1 as kernel parameter by /boot/armbianEnv.txt file. Eg.:

extraargs=usbcore.autosuspend=-1

 

Of course this workaround have cons: odroid c2 will take more power.

 

@TonyMac32

Could you please give me more details where I should look for this issue in source files? Is it dwc2 usb driver?

 

Hi,

 

I've had similar problems with my C2. USB would not power up any device except the internal hub. The above workaroud seems to work for me.

Questions :

Considering this :

dmesg
[...]
[    2.804560] phy phy-c0000020.phy.1: Linked as a consumer to regulator.3
[    2.804955] dwc2 c9000000.usb: c9000000.usb supply vusb_d not found, using dummy regulator
[    2.805002] dwc2 c9000000.usb: Linked as a consumer to regulator.0
[    2.805009] dwc2 c9000000.usb: c9000000.usb supply vusb_a not found, using dummy regulator
[    2.806314] phy phy-c0000000.phy.0: USB ID detect failed!
[    2.806322] phy phy-c0000000.phy.0: phy poweron failed --> -22
[    2.806395] dwc2: probe of c9000000.usb failed with error -22
[    2.806604] dwc2 c9100000.usb: c9100000.usb supply vusb_d not found, using dummy regulator
[    2.806627] dwc2 c9100000.usb: Linked as a consumer to regulator.0
[    2.806633] dwc2 c9100000.usb: c9100000.usb supply vusb_a not found, using dummy regulator
[    2.867643] dwc2 c9100000.usb: dwc2_check_params: Invalid parameter lpm=1
[    2.867648] dwc2 c9100000.usb: dwc2_check_params: Invalid parameter lpm_clock_gating=1
[    2.867651] dwc2 c9100000.usb: dwc2_check_params: Invalid parameter besl=1
[    2.867655] dwc2 c9100000.usb: dwc2_check_params: Invalid parameter hird_threshold_en=1
[...]

I wonder if this patch is actually applied in the latest armbian version (I expect not seeing the latest github commit, but I can really tell)

https://patchwork.kernel.org/patch/10785943/

 

On a side note I also have another dmesg error but inconsistent (not on every boot sequence)

[   19.535969] meson-i2s-dai meson-i2s-dai.0.auto: Unable set to set i2s description
[   19.535980] meson-i2s-dai meson-i2s-dai.0.auto: ASoC: can't set meson-i2s-dai.0.auto hw params: -22

This is repeated 20 times

 

 

 

 

Best,

Just downloaded yesterday latest version:

Armbian Buster
mainline kernel 4.19.y

 

Linux odroidc2 4.19.57-meson64 #5.90 SMP PREEMPT Sat Jul 6 15:54:33 CEST 2019 aarch64 GNU/Linux

 

And still hiting this bug. Workaround works.

I can confirm this with a 5.3.1 mainline kernel, and success with the given workaround.

 

(I'm not using Armbian, but in this case it does not matter.)

Is there already a fix for this? Except the workaround.

Edited by Janis

Hi, I'm new to odroid.... i bought a odroid C2, and installed odroid's ubuntu mate. Straight away, the keyboard would disappear .... 5 or 6 minutes, it would flash and then no response. the only way to get it back was to reboot. Following a recomendation, I rebuilt with armbian last night. I'm still having the same problems. I've tried the k/b on the usb ports as well as the otg...both the same. Following a suggestion, I tried using an old usb1.1 hub...still the same. If anyone has any suggestions.... Thanks in advance Terry

Hi Igor, just tried you suggestion.....and still the same. Partway through installing armbian-config the keyboard lights flash, then nothing. 

If I boot up the C2 and plug in a USB-RS232 Converter the device does not power up. If I than add an USB-Stick to the C2 the the USB-RS232 Converter gets power and is accessible by the OS.

(Armbian_20.02.0-rc1_Odroidc2_buster_current_5.4.14)

On 2/7/2020 at 10:33 AM, nik-ii said:

If I boot up the C2 and plug in a USB-RS232 Converter the device does not power up. If I than add an USB-Stick to the C2 the the USB-RS232 Converter gets power and is accessible by the OS.

 

USB on C2 is known to make troubles. This is present for years and it seems we don't have a proper fix.

 

... or we do?

 

After applying the following my USB attached disks are no longer visible
 

commandline: apt upgrade
Upgrade: linux-image-current-meson64:arm64 (20.02.3, 20.02.5), linux-dtb-current-meson64:arm64 (20.02.3, 20.02.5), armbian-config:arm64 (20.02.2, 20.02.6)
End-Date: 2020-03-23  19:40:19

 

I plugged the USB enclosure into my Pi and I can see the LVM and the LV's.

I will test again, my last round of testing had working USB. Not to say something didn't change, there was another time that an unexplainable loss of USB happened that fixed itself after some time and upstream patches that seemed unrelated.

Sent from my Pixel using Tapatalk

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.