Re: Error reading USB camera in BeagleBone with ARM Debian

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 18 Oct 2018, Josep M. Mirats Tur wrote:

> Hi
> 
> I've recently acquired a BeagleBone Green with AM335x processor. I 'm
> connecting a USB device (actually a 3D camera from ORBBEC) to the
> Beagle USB host port. It recognizes well as I can see at the dmesg
> output:
> 
> [12411.643517] usb 1-1: new high-speed USB device number 2 using musb-hdrc
> [12411.784848] usb 1-1: New USB device found, idVendor=2bc5, idProduct=0404
> [12411.784912] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> [12411.784951] usb 1-1: Product: ORBBEC Depth Sensor
> [12411.784986] usb 1-1: Manufacturer: Orbbec(R)
> 
> However, when I try to read data from the camera using the OpenNi SDK
> that ORBBEC provides for Arm devices, although I can connect to the
> camera (in fact it toggles on the IR) I get a timeout and get no data
> ever. The 'dmesg' output show the errors:
> 
> [12446.755020] usb 1-1: usbfs: usb_submit_urb returned -121
> 
> Other users seemed to have this problem in the past, and it seems
> related to the EHCI driver itself,

The log message above indicates that the BeagleBone's USB host 
controller uses the musb-hdrc driver.  This means it is not EHCI.

>  but I've not been able to find a
> solution and need help urgently to solve this issue.
> 
> The system version in my BeagleBoneGreen is Debian Debian 8.3
> (4.1.15-ti-rt-r43). In fact I've tested several versions including the
> newest one available for BeagleBone (the debian 9.5 - 4.14.71-ti-r80),
> but without success. In this case I got a different error from dmesg:
> 
> Oct 17 16:59:29 arm kernel: [ 215.611056] musb_host_rx 1965: Rx
> interrupt with no errors or packet!
> Oct 17 16:59:29 arm kernel: [ 215.617649] musb_host_rx 1965: Rx
> interrupt with no errors or packet!
> Oct 17 16:59:29 arm kernel: [ 215.625557] musb_ep_program 916: broken
> !rx_reinit, ep2 csr 0003
> 
> 
> Please I need some clues about this.

First question: Does you get similar failures if you plug the device
into a standard PC rather than the BeagleBone?

Second question: Have you tried looking at usbmon traces to see where 
the communication starts to fail?

> Should I load different usb modules  in the system kernel? Should I
> modify a given module?

It certainly looks like a problem in the musb-hdrc driver.  You might 
try asking the maintainer for that driver.

Alan Stern




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux