USB Issue Troubleshooting

Hardware related problems and workarounds

Re: USB Issue Troubleshooting

Postby lanscene » Fri Nov 06, 2015 5:43 am

I think Adapteva folks use the same power supply/USB hub/cable to test the board,
So they can't reproduce the fault.
do they suppose all the people around the world should buy the same band peripheral?
BTW, I use SKU101020.
lanscene
 
Posts: 9
Joined: Sun Oct 05, 2014 1:47 pm

Re: USB Issue Troubleshooting

Postby ajtravis » Fri Nov 06, 2015 10:07 am

lanscene wrote:I think Adapteva folks use the same power supply/USB hub/cable to test the board,
So they can't reproduce the fault.
do they suppose all the people around the world should buy the same band peripheral?
BTW, I use SKU101020.


Hi,

Don't get me wrong; I'm just as frustrated as you about the USB problem, but I want us all to pull together to find a solution. This was a Kickstarter project that barely covered Adapteva's costs. I thought I'd found the problem ('back-feeding power through the USB OTG) but looks like I was wrong because my systems are as bad as ever now and I can't explain why - I'm using the same PSU supplied by Ground Electronics as part of their (superb!) Parallella 'cluster' case.

Bye,

Tony.
Minke Informatics Limited, Registered in Scotland - Company No. SC419028
User avatar
ajtravis
 
Posts: 147
Joined: Fri Jul 18, 2014 12:54 pm
Location: Scotland (UK)

Re: USB Issue Troubleshooting

Postby sting » Wed Feb 03, 2016 12:37 am

I am attempting to use the usb port for a real usb instrument device. I connect to this device using other boards, but can't with the parallella.
Whenever I try lsusb I get the message "unable t initialize libusb -99"

* Failure mode (sometimes or always?)
ALWAYS

* Headless/hdmi configuration
Headless

* FPGA/Linux/Ubuntu version being used
ubuntu-14.04-headless-z7010-20150130.1

* Fan used?
5V 0.09A 60 mm Fan

* SKU#
I can't see it, covered by case. Will remove it if I have to.
It is not from the kickstarter, and it is a desktop version

* Power supply used
5V 2.5A CUI
sting
 
Posts: 12
Joined: Mon Nov 24, 2014 1:43 am

Re: USB Issue Troubleshooting

Postby peteasa » Thu Jul 21, 2016 7:12 am

Note that this is not a fix for this problem and.... I have not focussed on the USB issue, perhaps because it works for me except that I do not use USB a great deal at the moment, however as part of getting the latest hdmi with oh fpga working with kernel 4.4, I did a small amount of debug to get the USB port working with my kernel. The following might help drill down further into the problem.

First port of call is the device tree (ps7-usb@e0002000: compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2", "xlnx,ps7-usb-1.00.a", "xlnx,zynq-usb-1.00.a";); next the kernel driver that is compatible with "chipidea,usb2" (see http://lxr.free-electrons.com/source/dr ... v=4.4#L118); next is the available USB debug for this driver (see kernel config USB_CHIPIDEA_DEBUG). Looking at the "probe" method for this driver (http://lxr.free-electrons.com/source/dr ... v=4.4#L906) I can see several places where the probe will fail with no additional driver logging, so it is worth adding some additional logging into the probe method to get a better idea if it fails where it fails. I added various additional printk just to get an idea of the progress in the probe method and added the USB debug (CONFIG_USB_CONFIGFS and CONFIG_USB_CHIPIDEA_DEBUG) into the kernel to get the additional sysfs files.

Next look at the output of the serial port. This boot log generated with all this additional debug and the sysfs files (/sys/kernel/debug/ci_hdrc.0) might give more of an idea about what is failing. I find that when I first create a new SD card and start the system that the USB connection does not work and the following is missing from the boot log:
Code: Select all
[    1.164668] ci_hdrc ci_hdrc.0: EHCI Host Controller
[    1.169489] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[    1.191088] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[    1.197314] hub 1-0:1.0: USB hub found
[    1.201026] hub 1-0:1.0: 1 port detected

When I boot the board for the second time the USB connection does come up and these lines are present. Also when it is working this is what I find in the various sysfs files:
Code: Select all
# grep : /proc/bus/input/devices | more
I: Bus=0003 Vendor=046d Product=c05b Version=0111
N: Name="Logitech USB Optical Mouse"
P: Phys=usb-ci_hdrc.0-1.2/input0
S: Sysfs=/devices/soc0/amba@0/e0002000.ps7-usb/ci_hdrc.0/usb1/1-1/1-1.2/1-1.2:1.
0/0003:046D:C05B.0001/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: PROP=0
B: EV=17
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=143
B: MSC=10
I: Bus=0003 Vendor=0b38 Product=0010 Version=0110
N: Name="HID 0b38:0010"
P: Phys=usb-ci_hdrc.0-1.3/input0
S: Sysfs=/devices/soc0/amba@0/e0002000.ps7-usb/ci_hdrc.0/usb1/1-1/1-1.3/1-1.3:1.
0/0003:0B38:0010.0002/input/input1
U: Uniq=
H: Handlers=kbd leds event1
B: PROP=0
B: EV=120013
B: KEY=10000 7 ff800000 7ff febeffdf f3cfffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=0b38 Product=0010 Version=0110
N: Name="HID 0b38:0010"
P: Phys=usb-ci_hdrc.0-1.3/input1
S: Sysfs=/devices/soc0/amba@0/e0002000.ps7-usb/ci_hdrc.0/usb1/1-1/1-1.3/1-1.3:1.
1/0003:0B38:0010.0003/input/input2
U: Uniq=
H: Handlers=kbd event2
B: PROP=0
B: EV=1f
B: KEY=3007f 0 0 0 0 483ffff 17aff32d bf544446 0 0 1 130c13 b17c000 267bfa d941d
fed 9e1680 4400 0 10000002
B: REL=40
B: ABS=1 0
B: MSC=10

Code: Select all
root@parallella-hdmi:/sys/kernel/debug/ci_hdrc.0# ls -als *
0 -r--r--r-- 1 root root 0 Jan  1  1970 device
0 -rw-r--r-- 1 root root 0 Jan  1  1970 port_test
0 -r--r--r-- 1 root root 0 Jan  1  1970 qheads
0 -r--r--r-- 1 root root 0 Jan  1  1970 registers
0 -r--r--r-- 1 root root 0 Jan  1  1970 requests
0 -rw-r--r-- 1 root root 0 Jan  1  1970 role
root@parallella-hdmi:/sys/kernel/debug/ci_hdrc.0# cat *
speed             = 0
max_speed         = 0
is_otg            = 0
is_a_peripheral   = 0
b_hnp_enable      = 0
a_hnp_support     = 0
a_alt_hnp_support = 0
name              =
mode = 0
not in gadget mode
USBINTR reg: 00000037
USBSTS reg: 00044088
USBMODE reg: 00000003
USBCMD reg: 00010015
PORTSC reg: 88001205
OTGSC reg: 00600e20
not in gadget mode
host


As I mentioned USB seems to work for me at the moment so it is hard for me to drill down into this problem further, but I hope that this post will give someone the necessary tools to solve the problem!

Peter
User avatar
peteasa
 
Posts: 108
Joined: Fri Nov 21, 2014 7:04 pm

Re: USB Issue Troubleshooting

Postby colestoc » Tue Feb 07, 2017 8:01 pm

Has the issue with the USB been resolved? I have a new Parallella-18 7010 board running the latest Ubuntu distribution. My USB intermittently worked with the first few tries, but now consistently fails to recognize the USB devices. I tried a couple of the USB workarounds, such as a powered hub, to no avail. The board responds fine in headless mode, so most of the functionality is there, but not the USB.

What is recommended as a fix, or does this mean I have a broken board? FYI, the heatsink has been installed, and I am using a fan.
colestoc
 
Posts: 2
Joined: Tue Feb 07, 2017 6:55 pm

Re: USB Issue Troubleshooting

Postby mchampigny » Wed Feb 08, 2017 3:30 pm

It's not a broken board, or rather, it's not a problem that will be fixed by you getting a new board.

My USB only works with a powered USB hub. I've never managed to get passive USB working and I've tried several kinds of cables and passive hubs.
mchampigny
 
Posts: 26
Joined: Fri Dec 02, 2016 2:56 am

Re: USB Issue Troubleshooting

Postby abraxas3d » Wed Feb 08, 2017 10:57 pm

Cannot get USB working on Parallella kickstarter board regardless of how the devices are connected. Direct, powered hub, different powered hub, unpowered hub, doesn't matter.

parallella@parallella:~$ lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

parallella@parallella:~$ dmesg | grep -i ulpi
[ 1.155751] ULPI transceiver vendor/product ID 0x0424/0x0007
[ 1.160028] Found SMSC USB3320 ULPI transceiver.
[ 1.163401] ULPI integrity check: passed.
[ 1.206606] ULPI transceiver vendor/product ID 0x0424/0x0007
[ 1.210919] Found SMSC USB3320 ULPI transceiver.
[ 1.214181] ULPI integrity check: passed.

parallella@parallella:~$ uhd_usrp_probe
linux; GNU C++ version 4.9.2; Boost_105500; UHD_3.11.0.git-71-g2016126f
Error: LookupError: KeyError: No devices found for ----->
Empty Device Address
parallella@parallella:~$

parallella@parallella:~$ uhd_find_devices
linux; GNU C++ version 4.9.2; Boost_105500; UHD_3.11.0.git-71-g2016126f
No UHD Devices Found
parallella@parallella:~$
User avatar
abraxas3d
 
Posts: 1
Joined: Mon Dec 17, 2012 3:25 am

Re: USB Issue Troubleshooting

Postby colestoc » Thu Feb 09, 2017 2:41 am

Thanks for the reply. I have been using a powered hub, a Sabrent model, to no avail. What type of powered hub are you using? Perhaps there is some issue with either power back-feeding or timing with specific cables that makes the initialization flaky.
colestoc
 
Posts: 2
Joined: Tue Feb 07, 2017 6:55 pm

Previous

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest