USB Issue Troubleshooting

Hardware related problems and workarounds

Re: USB Issue Troubleshooting

Postby slip » Wed Aug 05, 2015 5:15 am

Hello,

I'm also adding myself to the list of people having problems.

lsusb always gives me
unable to initialize libusb: -99

* Failure mode (sometimes or always?)
Always. I have not been successful in getting USB or HDMI working.

* Headless/hdmi configuration
I first tried Headless then switched to the HDMI version which I've been using for most of my tests.

* FPGA/Linux/Ubuntu version being used
Linux linaro-nano 3.12.0-g0bc9c3a-dirty #6 SMP PREEMPT Wed Jan 29 10:25:25 CET 2014 armv7l armv7l armv7l GNU/Linux

* Fan used?
No. But in a cold environment, the heatsink isn't getting very warm as the board is mostly idling.

* SKU#
P1601-01, SN 0017912 (The large heatsink didn't make this easy).

* Power supply used
USB cable coming from a powerboard with USB power plugs. No indication of power problems.

I have tried
- Power cycling the board with and without each of the peripherals attached.
- Although there isn't a reset switch on my board I have bridged the switch pads to successfully reset the board.

The board boots every time. I can ssh into it without problems.
I have not had any success with USB or HDMI.

USB notes:
I am using a USB adaptor. I've tried a number of peripherals:
- Wireless USB dongle for Logitech Keyboard and Mouse
- SanDisk USB drive
- USB sound card.

HDMI notes:
No signal is detected by the monitor I am using with HDMI. I have tried three different monitors:
- BENQ G2410HD w/HDMI
- DELL 2405FPW w/DVI-HDMI adaptor
- LG 24EA53

Edit: Not having USB practically renders the board useless to me.

Cheers
slip
 
Posts: 4
Joined: Wed Aug 05, 2015 5:00 am

Re: USB Issue Troubleshooting

Postby ajtravis » Wed Aug 05, 2015 10:30 am

slip wrote:Hello,

I'm also adding myself to the list of people having problems.
[...]


Hi, slip.

Did you see my post https://parallella.org/forums/viewtopic.php?f=50&t=3123#p15477?

I'm not sure if preventing a powered USB-hub back-feeding power to the USB OTG connector is the definitive answer to all Parallella USB problems, but it does make a BIG difference to the reliability of USB PHY initialisation from a 'cold' start on my SKU P1601-DK03 board and 3@SKU A101020 boards.

Bye,

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

Re: USB Issue Troubleshooting

Postby tnt » Wed Aug 05, 2015 11:47 am

Not sure what you mean by "USB cable coming from a powerboard with USB power plugs. No indication of power problems" in the power supply question.

The only supported powering method is through the barrel jack. Applying power through any other path might bypass or interact with the proper power sequencing and reset.
tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am

Re: USB Issue Troubleshooting

Postby ajtravis » Wed Aug 05, 2015 12:22 pm

tnt wrote:Not sure what you mean by "USB cable coming from a powerboard with USB power plugs. No indication of power problems" in the power supply question.

The only supported powering method is through the barrel jack. Applying power through any other path might bypass or interact with the proper power sequencing and reset.


Hi, tnt.

Parallella supports power supplied through the mounting screw holes at the corners of the board as well as the barrel connector: That is how I'm powering my 4-node Parallella cluster 'stack' though metal stand-offs. You can power the Parallella through the 'rear' power-only microUSB connector next to the barrel connector, but that is not recommended because it can't supply enough current to run the Parallella properly: It does work if power is fed through both the 'rear' USB connector and back-fed through the USB OTG connector and at the same time as some people do with the Rpi USB power back-feeding setup http://elinux.org/RPi_Powered_USB_Hubs#USB_Hub_Power_Hookup. However, that seems to cause problems with the USB on the Parallella.

Bye,

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

Re: USB Issue Troubleshooting

Postby tnt » Wed Aug 05, 2015 3:35 pm

I'd argue that you can't feed power through the holes without soldering and soldering on the board would understandably void your warranty, so I'd hardly call that supported.
There is a difference between what works and what's the recommended ways are ...

I power mine through manually soldered wires on some random pads on the 5V rail, if something goes wrong I don't see myself go complain to adapteva ...
tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am

Re: USB Issue Troubleshooting

Postby slip » Mon Aug 10, 2015 7:47 am

Hi everyone,

I didn't get a chance to do any further testing until today.

tnt wrote:Not sure what you mean by "USB cable coming from a powerboard with USB power plugs. No indication of power problems" in the power supply question.

The only supported powering method is through the barrel jack. Applying power through any other path might bypass or interact with the proper power sequencing and reset.


As ajtravis mentioned, the cable I am referring to is the USB power power next to the barrel jack. By "no indication of power problems" I meant that the system boots up every time and I am able to login remotely, the LEDs on the board light up and remain lit the whole time. In another thread someone mentioned power problems can cause the board to reset which can be indicated by one of the LEDs turning on and off. I just meant everything seemed stable, sorry for the confusion.

@ajtravis I did see your post. I wasn't using a powered hub until today. The HUB I have is just a fairly cheap generic one so I'm not sure that it isn't back feeding power, however if it is it might be an important part to the success I had today... continue reading..

Since last week I did manage to get a USB powered hub and this is where it gets a bit strange...

I plugged in the powered hub and booted the device, the USB interface initialised which as per other threads is what might happen. After plugging the powered hub in the HDMI also initialised successfully. lsusb reported the on board hub and the display initialised during boot. This initially indicated to me that my issue was a power issue...

Here is the strange thing though. When I unplug everything then plugged only the display back in and left the powered hub detached the device boots and initialises the HDMI and USB interface. So the board is working with USB and HDMI but without the power hub attached. i.e. the same configuration I had been trying before testing with a powered HUB.

I don't know enough about the details of the chips on board. I'm also a programmer so don't necessarily know what I am talking about here. But my experience suggests to me that some registers might have been in a bad state or something and remained that way until a powered hub was attached, which caused the hardware to reset the state. I don't know if this is possible but the board seems to be working as I would have expected to begin with.

So I'm not sure if this sheds light on the issue for anyone else. I still don't fully understand what the problem was but everything seems to be working now.

Thanks for your help. I'm looking forward to playing with this device =)
slip
 
Posts: 4
Joined: Wed Aug 05, 2015 5:00 am

Re: USB Issue Troubleshooting

Postby davewr2015 » Sun Aug 30, 2015 9:47 pm

Here and there throughout the forum you will see this line:

Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=0

Usually as part of turning on the devtmpfs for USB drive access


Enable devtmpfs
Create device nodes of the SD card.
Code: Select all
sudo mknod -m 660 /dev/mmcblk0 b 179 0

sudo mknod -m 660 /dev/mmcblk0p1 b 179 1

sudo mknod -m 660 /dev/mmcblk0p2 b 179 2
Install device-tree-compiler.
sudo apt-get install device-tree-compiler
Mount partition1 of the SD card.
sudo mount /dev/mmcblk0p1 /mnt

cd /mnt
Create devicetree.dts from devicetree.dtb.
sudo cp devicetree.dtb devicetree.dtb.bak

sudo dtc -I dtb -O dts -o devicetree.dts devicetree.dtb
Edit devicetree.dts.
sudo nano devicetree.dts
(Search(Ctrl-W) and Edit the "bootargs" line then save)
bootargs = "root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait";
Compile it to dtb to enable it.
sudo dtc -I dts -O dtb -o devicetree.dtb devicetree.dts


Setting the "devtmpfs.mount=0" seems to guarantee the USB issue with lsusb

Hopefully someone else can dconfirm this and explain why.

I do see my drives when I remove the reference to the devtmpfs -- however I cannot access/mount the drives -- they do NOT appear in fdisk -l


Bus 001 Device 004: ID 0951:1624 Kingston Technology DataTraveler G2
Bus 001 Device 005: ID 1058:0702 Western Digital Technologies, Inc. Passport External HDD
Bus 001 Device 003: ID 0781:556b SanDisk Corp.
Bus 001 Device 002: ID 2001:f103 D-Link Corp. DUB-H7 7-port USB 2.0 hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The fdisk -l command

Code: Select all
parallella@parallella:~$ sudo fdisk -l

Disk /dev/mmcblk0: 31.9 GB, 31942770688 bytes
4 heads, 16 sectors/track, 974816 cylinders, total 62388224 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00029239

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1   *        2048      206847      102400    b  W95 FAT32
/dev/mmcblk0p2          206848    62388223    31090688   83  Linux


Any further thoughts on this?
davewr2015
 
Posts: 7
Joined: Sat Aug 29, 2015 8:57 pm

Re: USB Issue Troubleshooting

Postby ajtravis » Sun Aug 30, 2015 11:37 pm

davewr2015 wrote:Here and there throughout the forum you will see this line:

Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait devtmpfs.mount=0

Usually as part of turning on the devtmpfs for USB drive access
[...]
Setting the "devtmpfs.mount=0" seems to guarantee the USB issue with lsusb

Hopefully someone else can dconfirm this and explain why.


Hi, Dave.

The default is "devtmpfs.mount=1", unless it's overidden on the kernel command-line:

Code: Select all
include/generated/autoconf.h:#define CONFIG_DEVTMPFS_MOUNT 1


Removing the kernel command-line argument is equivalent to setting "devtmpfs.mount=1".

I do see my drives when I remove the reference to the devtmpfs -- however I cannot access/mount the drives -- they do NOT appear in fdisk -l
[...]
Any further thoughts on this?


I resolved the issue by compiling a kernel with USB storage enabled: https://parallella.org/forums/viewtopic.php?f=48&t=3124#p15478

HTH,

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

Re: USB Issue Troubleshooting

Postby lanscene » Thu Oct 29, 2015 5:38 am

I use a 7010 with HDMI board, USB doesn't work in most time.
I think most people use ssh/vnc to login to the parallella, so they don't need to use KB & mouse attached to USB, so, not many people report this issue.
but I am sure this is a hw fault with (at least) type 7010 with HDMI.
lanscene
 
Posts: 9
Joined: Sun Oct 05, 2014 1:47 pm

Re: USB Issue Troubleshooting

Postby ajtravis » Thu Oct 29, 2015 10:13 am

lanscene wrote:I use a 7010 with HDMI board, USB doesn't work in most time.
I think most people use ssh/vnc to login to the parallella, so they don't need to use KB & mouse attached to USB, so, not many people report this issue.
but I am sure this is a hw fault with (at least) type 7010 with HDMI.


Hi,

I think Adapteva have tried quite hard to fix this problem, but they have failed to reproduce the USB problem on boards that were returned to them. To be fair, we can't expect Adapteva to resolve a problem that they can't reproduce. I've no doubt that USB is a REAL problem on Parallella and I thought that I'd finally resolved it by cutting the VBUS (+5V) wire on my Parallella OTG <=> powered hub cable to prevent back-feeding power to the Parallella via the USB OTG, but the problem has come back to haunt me again. Please do as I suggested and report the problem the way Andreas suggested http://forums.parallella.org/viewtopic.php?f=50&t=1650&start=80&sid=691c335bca1ccfd2366b887cab4aebc0&sid=691c335bca1ccfd2366b887cab4aebc0#p10185.

Thanks,

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

PreviousNext

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 2 guests