Hi David,
On 13/08/2020 19:21, Dave wrote:
Hi there,
I'm trying to connect a USB3 camera I have to the BBAI (uname -r gives
4.14.108-ti-r131).
How are you connecting the camera to the Type-C port? Does the camera support
Type-C?
If not what type-C to Type-A adaptor are you using? Does it support USB3.0? Did
you verify it with your laptop's type-C port for example?
I've run "sudo /opt/scripts/boot/bbai_usb_host.sh" to change the USB port from
a client into a host. I'm powering my camera from the 5V on the beaglebone on P5, pin 8.
However the camera is not getting detected when connected. I know the camera works as if
I connect it to the USB2 port it all works perfectly.
What is P5?
Camera should be able to take power from the USB port. Why the custom power
connection?
lsusb gives:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The relevant messages from dmesg I get are as follows:
[ 578.405741] xhci-hcd xhci-hcd.2.auto: remove, state 4
[ 578.405797] usb usb4: USB disconnect, device number 1
[ 578.410192] xhci-hcd xhci-hcd.2.auto: USB bus 4 deregistered
[ 578.410264] xhci-hcd xhci-hcd.2.auto: remove, state 4
[ 578.410312] usb usb3: USB disconnect, device number 1
[ 578.414352] xhci-hcd xhci-hcd.2.auto: USB bus 3 deregistered
[ 578.422839] dwc3 48890000.usb: changing max_speed on rev 5533202a
[ 579.151738] using random self ethernet address
[ 579.151765] using random host ethernet address
[ 579.283590] Mass Storage Function, version: 2009/09/11
[ 579.283620] LUN: removable file: (no medium)
[ 579.347612] using random self ethernet address
[ 579.347640] using random host ethernet address
[ 579.374212] usb0: HOST MAC 28:ec:9a:eb:df:84
[ 579.374471] usb0: MAC 28:ec:9a:eb:df:85
[ 579.388618] usb1: HOST MAC 28:ec:9a:eb:df:86
[ 579.389016] usb1: MAC 28:ec:9a:eb:df:87
[ 579.516850] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 579.589767] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready
[ 583.176056] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 583.176124] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus
number 3
[ 583.185551] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f04c hci version
0x100 quirks 0x0000000002010010
[ 583.185633] xhci-hcd xhci-hcd.2.auto: irq 223, io mem 0x48890000
[ 583.186576] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[ 583.186602] usb usb3: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 583.186624] usb usb3: Product: xHCI Host Controller
[ 583.186644] usb usb3: Manufacturer: Linux 4.14.108-ti-r131 xhci-hcd
[ 583.186664] usb usb3: SerialNumber: xhci-hcd.2.auto
[ 583.190665] hub 3-0:1.0: USB hub found
[ 583.190793] hub 3-0:1.0: 1 port detected
[ 583.191869] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 583.191916] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus
number 4
[ 583.191961] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
[ 583.194273] usb usb4: We don't know the algorithms for LPM for this host,
disabling LPM.
[ 583.194695] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[ 583.194721] usb usb4: New USB device strings: Mfr=3, Product=2,
SerialNumber=1
[ 583.194743] usb usb4: Product: xHCI Host Controller
[ 583.194762] usb usb4: Manufacturer: Linux 4.14.108-ti-r131 xhci-hcd
[ 583.194781] usb usb4: SerialNumber: xhci-hcd.2.auto
[ 583.199144] hub 4-0:1.0: USB hub found
[ 583.201451] hub 4-0:1.0: 1 port detected
I'm thinking that the line "We don't know the algorithms for LPM for this host,
disabling LPM" may be pointing me to the issue, but I'm not sure what to do about
it. Has anyone experienced this issue before and if so, how did you get around it? Any
help you can give would be much appreciated.
No. That line is harmless. It just says that the XHCI driver doesn't undrestand
the LPM mechanism so LPM will be disabled.
(LPM->Link power management)
The issue is more about signal integrity at 3.0 speeds or power sequencing of
the camera.
cheers,
-roger
Thanks,
David
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/17b66917-3622-418f-9b98-88daa38b61fbo%40googlegroups.com
<https://groups.google.com/d/msgid/beagleboard/17b66917-3622-418f-9b98-88daa38b61fbo%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/4419b4a1-41b9-5e8e-843b-a1df9faafa32%40ti.com.