Page 1 of 1

4B/Buster - usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

Posted: Fri Jul 12, 2019 4:55 am
by RaspberryWhy
Hiya,

Dmesg is constantly reporting :
usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

Testing a thumbdrive out on each port seems to transfer files ok, and placing it into the top USB3 port stops the error until it is removed.
It doesn't seem to unmount gracefully from USB3 either.

I'm using an official 3B power supply, although I don't think this is relevant as there is no under voltage warning.

Is this a known issue with firmware, or am I just lucky?

[ 4.349094] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[ 5.181751] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[ 5.331748] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 5.514141] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcd Device= 4.20
[ 5.514205] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 5.514218] usb 1-1: Product: USB2.0 Hub
[ 5.524169] hub 1-1:1.0: USB hub found
[ 5.524694] hub 1-1:1.0: 4 ports detected

[ 14.551749] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[ 18.921759] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[ 18.922003] usb usb2-port1: unable to enumerate USB device
[ 23.241742] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[ 27.781732] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[ 32.121720] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[ 32.121981] usb usb2-port1: attempt power cycle
[ 36.811756] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[ 41.151750] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[ 41.151993] usb usb2-port1: unable to enumerate USB device
[ 45.471731] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[ 50.011731] usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

Re: 4B/Buster - usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

Posted: Fri Jul 26, 2019 4:03 am
by RaspberryWhy
Anyone else seeing this? :|

Re: 4B/Buster - usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

Posted: Mon Oct 07, 2019 9:30 am
by iprohorov
Hi, I have same problem. I using raspberry pi CM3 lite module with external USB 2.0 hub.
[ 528.661947] Indeed it is in host mode hprt0 = 00001101
[ 528.901947] usb 1-1: New USB device found, idVendor=0424, idProduct=2422, bcdDevice= 0.a0
[ 528.901954] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 528.902353] hub 1-1:1.0: USB hub found
[ 528.902419] hub 1-1:1.0: 2 ports detected
[ 529.572942] dwc_otg_handle_wakeup_detected_intr lxstate = 2
[ 530.811948] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 531.721947] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 531.722029] usb 1-1-port1: attempt power cycle
[ 533.471954] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 534.381958] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 534.382054] usb 1-1-port1: unable to enumerate USB device
[ 562.001983] usb 1-1: USB disconnect, device number 2
[ 587.701881] Indeed it is in host mode hprt0 = 00021501
[ 587.911797] usb 1-1: new high-speed USB device number 7 using dwc_otg
[ 587.911877] Indeed it is in host mode hprt0 = 00001101
[ 588.151949] usb 1-1: New USB device found, idVendor=0424, idProduct=2422, bcdDevice= 0.a0
[ 588.151956] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 588.152339] hub 1-1:1.0: USB hub found
[ 588.152403] hub 1-1:1.0: 2 ports detected
[ 588.775233] dwc_otg_handle_wakeup_detected_intr lxstate = 2
[ 590.061952] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 590.971950] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 590.972030] usb 1-1-port1: attempt power cycle
[ 592.721971] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 593.631957] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 593.632038] usb 1-1-port1: unable to enumerate USB device
[ 612.001959] usb 1-1: USB disconnect, device number 7
[ 619.451886] Indeed it is in host mode hprt0 = 00021501
[ 619.661793] usb 1-1: new high-speed USB device number 12 using dwc_otg
[ 619.661870] Indeed it is in host mode hprt0 = 00001101
[ 619.901933] usb 1-1: New USB device found, idVendor=0424, idProduct=2422, bcdDevice= 0.a0
[ 619.901940] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 619.902336] hub 1-1:1.0: USB hub found
[ 619.902386] hub 1-1:1.0: 2 ports detected
[ 620.525250] dwc_otg_handle_wakeup_detected_intr lxstate = 2
[ 621.811953] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 622.721955] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 622.722035] usb 1-1-port1: attempt power cycle
[ 624.471959] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 625.381950] usb 1-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 625.382034] usb 1-1-port1: unable to enumerate USB device
pi@raspberrypi:~/upload $ uname -srm
Linux 4.19.57-v7+ armv7l

Re: 4B/Buster - usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

Posted: Tue Dec 10, 2019 9:00 pm
by bluenote
I'm seeing something similar, did you guys solve this?

Re: 4B/Buster - usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

Posted: Tue Dec 10, 2019 9:19 pm
by DougieLawson
iprohorov wrote:
Mon Oct 07, 2019 9:30 am

pi@raspberrypi:~/upload $ uname -srm
Linux 4.19.57-v7+ armv7l
That kernel is out of date. The current stable kernel is 4.19.75-v7+

Run sudo apt update; sudo apt dist-upgrade -y && sudo reboot to get to a current version. That will also get you the go faster but run cooler stuff.

Re: 4B/Buster - usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

Posted: Wed Jan 08, 2020 12:34 pm
by nevilley
Has this been fixed yet?

Since upgrading to buster several of my pi zero W are reporting this and disabling the attached usb camera.
So it's not just one pi / cable / camera but several !
it appears to occur after a spurious read error from the usb device.

I'm up to date with software:
root@cam2:~# uname -srm
Linux 4.19.75+ armv6l

but I still see syslog entries like this:
Jan 7 14:58:24 cam2 thd[288]: Error reading device '/dev/input/event0'
Jan 7 14:58:24 cam2 kernel: [12148.815814] usb usb1-port1: disabled by hub (EMI?), re-enabling...
Jan 7 14:58:24 cam2 kernel: [12148.815847] usb 1-1: USB disconnect, device number 2
Jan 7 14:58:24 cam2 kernel: [12149.045728] Indeed it is in host mode hprt0 = 00001101
Jan 7 14:58:25 cam2 kernel: [12149.245699] Indeed it is in host mode hprt0 = 00001501
Jan 7 14:58:25 cam2 kernel: [12149.635692] Indeed it is in host mode hprt0 = 00001501
Jan 7 14:58:25 cam2 kernel: [12149.975686] Indeed it is in host mode hprt0 = 00001501
Jan 7 14:58:26 cam2 kernel: [12150.315692] Indeed it is in host mode hprt0 = 00001501
Jan 7 14:58:26 cam2 kernel: [12150.655678] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
Jan 7 14:58:26 cam2 kernel: [12150.655803] Indeed it is in host mode hprt0 = 00001501
Jan 7 14:58:26 cam2 kernel: [12150.855733] Indeed it is in host mode hprt0 = 00001501
Jan 7 14:58:27 cam2 kernel: [12151.195767] Indeed it is in host mode hprt0 = 00001501
Jan 7 14:58:27 cam2 kernel: [12151.475662] Indeed it is in host mode hprt0 = 00001501
Jan 7 14:58:27 cam2 kernel: [12151.785709] Indeed it is in host mode hprt0 = 00001501
Jan 7 14:58:27 cam2 kernel: [12152.065643] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
Jan 7 14:58:27 cam2 kernel: [12152.065729] usb usb1-port1: attempt power cycle

a physical usb disconnect/reconnect doesn't even register the usb device at all.
a reboot also doesn't register the usb device.

The only solution is to power cycle the pi zero W along with the camera.
prior to upgrading to buster the systems just worked. some of them for years.

my next action is going to be a return to the squeeze release to see if it is something else introduced by a software upgrade.

Re: 4B/Buster - usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

Posted: Tue May 05, 2020 5:36 pm
by sciurius
And did that work? Does squeeze do better?

Re: 4B/Buster - usb usb2-port1: Cannot enable. Maybe the USB cable is bad?

Posted: Thu May 07, 2020 9:13 am
by nevilley
And did that work? Does squeeze do better?
Good question!.
I can not say if squeeze is beter or not.
All I can say is since reverting to squeeze the problem has not occured with the test camera.
This may, of course, just be a co-incidence.
Other cameras still show the problem.
Some maybe 1 or 2 times a month, some almost daily.
In fact I had forgotten I was running this test. We've all had other stuff to worry about!