zanzibar Posted March 10, 2019 Posted March 10, 2019 (edited) 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 March 10, 2019 by zanzibar
TonyMac32 Posted March 10, 2019 Posted March 10, 2019 Thanks for reporting this, my last test of Next worked just fine, I'll take a look.
TonyMac32 Posted March 11, 2019 Posted March 11, 2019 I'm getting the old bug where the hub powers down if nothing is attached. I thought I killed that one, but maybe in the switch it came back. Doesn't completely fit your issue but we'll see.
zanzibar Posted March 14, 2019 Author Posted March 14, 2019 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? 1
TonyMac32 Posted March 14, 2019 Posted March 14, 2019 https://github.com/armbian/build/blob/master/patch/kernel/rockchip-next/1008-rockchip-dwc2-usb-partial-power-down.patch Obviously applied to the Meson64 part of the code.Sent from my Pixel using Tapatalk
mpons Posted March 22, 2019 Posted March 22, 2019 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,
Heimdall Posted August 31, 2019 Posted August 31, 2019 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.
TonyMac32 Posted September 17, 2019 Posted September 17, 2019 Thank you for the update, I'll have to take a look, I thought the patch was there, I might be able to look at it tonight (I've been out of the office for a while)
Neko May Posted September 29, 2019 Posted September 29, 2019 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.)
Janis Posted November 2, 2019 Posted November 2, 2019 (edited) Is there already a fix for this? Except the workaround. Edited November 2, 2019 by Janis
terryb Posted November 16, 2019 Posted November 16, 2019 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
Igor Posted November 16, 2019 Posted November 16, 2019 1 hour ago, terryb said: I rebuilt with armbian last night Try this version https://dl.armbian.com/odroidc2/Debian_buster_dev_minimal_nightly.7z
terryb Posted November 16, 2019 Posted November 16, 2019 Hi Igor, just tried you suggestion.....and still the same. Partway through installing armbian-config the keyboard lights flash, then nothing.
nik-ii Posted February 5, 2020 Posted February 5, 2020 Still not working: Armbian_20.02.0-rc1_Odroidc2_buster_current_5.4.14
Igor Posted February 5, 2020 Posted February 5, 2020 (edited) 59 minutes ago, nik-ii said: Still not working: Armbian_20.02.0-rc1_Odroidc2_buster_current_5.4.14 What is not working? Edit: USB port are working on image made from trunk http://ix.io/2aQn Edited February 5, 2020 by Igor Add test resoults
nik-ii Posted February 7, 2020 Posted February 7, 2020 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)
Igor Posted February 12, 2020 Posted February 12, 2020 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?
J.Hern Posted March 24, 2020 Posted March 24, 2020 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.
TonyMac32 Posted March 24, 2020 Posted March 24, 2020 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
Recommended Posts