Re: [beagleboard] USB3 on BBAI

2020-09-02 Thread 'Roger Quadros' via BeagleBoard

David,

Does the USB1 automatically switch to host mode when you plug the type-C 
adapter?
Can you please print the kernel log without the adapter connected and then plug 
the
type-C adapter?

Looking at device tree (usb1 dr_mode = "otg") I assumed that the type-C was 
designed for
both device and host cases but it looks like it was never designed to be used 
as a host as
there is no VBUS regulator for the type-C port.

The safest way to provide power to the peripheral is like what Robert suggested
- Use a *powered USB3 hub and connect your camera to that

cheers,
-roger

On 01/09/2020 19:54, David Nolan wrote:

Hi Robert,

For me I've powered the device on P9.5 and P9.1, as you've said, and connected 
a powered USB hub to the Type-C also. In this scenario my camera gets power, 
but is not seen by the BBAI (same for a USB key). When I do a lsusb, it just 
shows the USB hubs (internally) as if nothing is connected. When I connect to 
the USB 2 port everything works as expected.

Has anyone successfully gotten the USB3 to work as a host? If so, how?

Appreciate all the help,

Thanks,
David

On Tue, Sep 1, 2020 at 9:46 AM robert.sty...@gmail.com  
mailto:robert.styles.fors...@gmail.com>> wrote:

 From what I can see on the schematic, there is no way to power a USB 
device plugged into the BBAI USB Type-C socket, there is no path to switch +5V 
power to the Type-C socket VBUS.

You would need some sort of adapter or hub with power to supply your device 
(and the BBAI see below).

The BBAI needs power from either USB Type-C or (+5V) P9.5, P9.6 and (0V) 
P9.1, P9.2.

The USB2 can supply power to a device.

On Tuesday, 1 September 2020 at 17:21:23 UTC+1 David Nolan wrote:

Hi Roger,

I finally got a Type-C to Type-A adapter but when I connected it, I 
still get no power to my camera, or to a USB Thumb Drive. Is there some setting 
I need to change to get this to work perhaps?

Thanks,
David

On Wednesday, August 19, 2020 at 12:35:46 AM UTC-7 Roger Quadros wrote:

David,


On 18/08/2020 21:35, David Nolan wrote:

Hi Roger,

Thanks for your email. Apologies for the delay getting back to you. 
Yes, I'm connecting the camera to the Type-C port. The camera has a Micro B 
connector so what I have right now is a cable with a USB Type-C on one end and 
a Micro-B connector on the other side. Unfortunately my laptop doesn't have a 
USB Type-C connector so I can't check it on my own laptop. The camera supports 
USB 3 according to the manufacturer.


This is not the right way of connecting a device to the Type-C 
port. You will need a Type-C to Type-A adapter to connect non type-C 
peripherals.
The Adapter is important because it will tell the Type-C logic on 
the board to switch to DFP (Downstream facing port mode) and so turn on VBUS.

You should not need to run the script. AFAIK the port is in dual-role mode 
"otg" and should automatically switch to host on connecting the right adapter.
In case you have a type-c thumb drive you should be able to test 
this out.



My Apologies, I was incorrect on P5, it's connected to P9, the cape 
connector on the same side of the board as the Type-C connector.

Your point that the camera should be able to take power from USB 
Type-C connector perhaps could be pointing to an issue. I'm not able to get any 
power out of that port. Is there some setting I have to make, or a jumper or 
something to get that to work? Mine seems to only take power in on the Type-C 
connector.


Right. That's why you need to use the type-C to type-A adapter.
e.g.

https://www.amazon.com/Anker-Adapter-Converts-Technology-Compatible/dp/B01COOQIKU?ref_=fsclp_pl_dp_5

cheers,
-roger



Thanks,
David

On Fri, Aug 14, 2020 at 12:56 AM Roger Quadros  
wrote:

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 connectio

Re: [beagleboard] USB3 on BBAI

2020-09-01 Thread robert.sty...@gmail.com
Sorry replies crossed.

The BBAI has a TUSB322IRWBR chip to monitor VBUS, CC1 and CC2 -- it detects 
power (signalling), cable orientation (DIR) and power from (ID) (host?) 

So hardware wise may be the VBUS = 0, and CC1 (or upside-down CC2) set to 
indicate device, that USB 3 Type A socket should signal it is a device to 
the BBAI

Otherwise it is software/driver problem


On Tuesday, 1 September 2020 at 17:56:26 UTC+1 robert.sty...@gmail.com 
wrote:

> Would this work?
>
>- RSHTECH  ASIN : B07KFDFT4D 
>
> On Tuesday, 1 September 2020 at 17:46:12 UTC+1 robert.sty...@gmail.com 
> wrote:
>
>> From what I can see on the schematic, there is no way to power a USB 
>> device plugged into the BBAI USB Type-C socket, there is no path to switch 
>> +5V power to the Type-C socket VBUS.
>>
>> You would need some sort of adapter or hub with power to supply your 
>> device (and the BBAI see below).
>>
>> The BBAI needs power from either USB Type-C or (+5V) P9.5, P9.6 and (0V) 
>> P9.1, P9.2.
>>
>> The USB2 can supply power to a device.
>>
>> On Tuesday, 1 September 2020 at 17:21:23 UTC+1 David Nolan wrote:
>>
>>> Hi Roger,
>>>
>>> I finally got a Type-C to Type-A adapter but when I connected it, I 
>>> still get no power to my camera, or to a USB Thumb Drive. Is there some 
>>> setting I need to change to get this to work perhaps? 
>>>
>>> Thanks,
>>> David
>>>
>>> On Wednesday, August 19, 2020 at 12:35:46 AM UTC-7 Roger Quadros wrote:
>>>
 David,


 On 18/08/2020 21:35, David Nolan wrote:

 Hi Roger, 

 Thanks for your email. Apologies for the delay getting back to you. 
 Yes, I'm connecting the camera to the Type-C port. The camera has a Micro 
 B 
 connector so what I have right now is a cable with a USB Type-C on one end 
 and a Micro-B connector on the other side. Unfortunately my laptop doesn't 
 have a USB Type-C connector so I can't check it on my own laptop. The 
 camera supports USB 3 according to the manufacturer. 


 This is not the right way of connecting a device to the Type-C port. 
 You will need a Type-C to Type-A adapter to connect non type-C peripherals.
 The Adapter is important because it will tell the Type-C logic on the 
 board to switch to DFP (Downstream facing port mode) and so turn on VBUS.

 You should not need to run the script. AFAIK the port is in dual-role 
 mode "otg" and should automatically switch to host on connecting the right 
 adapter.
 In case you have a type-c thumb drive you should be able to test this 
 out.


 My Apologies, I was incorrect on P5, it's connected to P9, the cape 
 connector on the same side of the board as the Type-C connector. 

 Your point that the camera should be able to take power from USB Type-C 
 connector perhaps could be pointing to an issue. I'm not able to get any 
 power out of that port. Is there some setting I have to make, or a jumper 
 or something to get that to work? Mine seems to only take power in on the 
 Type-C connector.


 Right. That's why you need to use the type-C to type-A adapter.
 e.g.

 https://www.amazon.com/Anker-Adapter-Converts-Technology-Compatible/dp/B01COOQIKU?ref_=fsclp_pl_dp_5

 cheers,
 -roger


 Thanks,
 David

 On Fri, Aug 14, 2020 at 12:56 AM Roger Quadros  wrote:

> 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.41026

Re: [beagleboard] USB3 on BBAI

2020-09-01 Thread David Nolan
Hi Roger,

That's exactly the one I'm using actually. This gives power to the device,
but it's still not recognized by the device.

David

On Tue, Sep 1, 2020 at 9:56 AM robert.sty...@gmail.com <
robert.styles.fors...@gmail.com> wrote:

> Would this work?
>
>- RSHTECH  ASIN : B07KFDFT4D
>
> On Tuesday, 1 September 2020 at 17:46:12 UTC+1 robert.sty...@gmail.com
> wrote:
>
>> From what I can see on the schematic, there is no way to power a USB
>> device plugged into the BBAI USB Type-C socket, there is no path to switch
>> +5V power to the Type-C socket VBUS.
>>
>> You would need some sort of adapter or hub with power to supply your
>> device (and the BBAI see below).
>>
>> The BBAI needs power from either USB Type-C or (+5V) P9.5, P9.6 and (0V)
>> P9.1, P9.2.
>>
>> The USB2 can supply power to a device.
>>
>> On Tuesday, 1 September 2020 at 17:21:23 UTC+1 David Nolan wrote:
>>
>>> Hi Roger,
>>>
>>> I finally got a Type-C to Type-A adapter but when I connected it, I
>>> still get no power to my camera, or to a USB Thumb Drive. Is there some
>>> setting I need to change to get this to work perhaps?
>>>
>>> Thanks,
>>> David
>>>
>>> On Wednesday, August 19, 2020 at 12:35:46 AM UTC-7 Roger Quadros wrote:
>>>
 David,


 On 18/08/2020 21:35, David Nolan wrote:

 Hi Roger,

 Thanks for your email. Apologies for the delay getting back to you.
 Yes, I'm connecting the camera to the Type-C port. The camera has a Micro B
 connector so what I have right now is a cable with a USB Type-C on one end
 and a Micro-B connector on the other side. Unfortunately my laptop doesn't
 have a USB Type-C connector so I can't check it on my own laptop. The
 camera supports USB 3 according to the manufacturer.


 This is not the right way of connecting a device to the Type-C port.
 You will need a Type-C to Type-A adapter to connect non type-C peripherals.
 The Adapter is important because it will tell the Type-C logic on the
 board to switch to DFP (Downstream facing port mode) and so turn on VBUS.

 You should not need to run the script. AFAIK the port is in dual-role
 mode "otg" and should automatically switch to host on connecting the right
 adapter.
 In case you have a type-c thumb drive you should be able to test this
 out.


 My Apologies, I was incorrect on P5, it's connected to P9, the cape
 connector on the same side of the board as the Type-C connector.

 Your point that the camera should be able to take power from USB Type-C
 connector perhaps could be pointing to an issue. I'm not able to get any
 power out of that port. Is there some setting I have to make, or a jumper
 or something to get that to work? Mine seems to only take power in on the
 Type-C connector.


 Right. That's why you need to use the type-C to type-A adapter.
 e.g.

 https://www.amazon.com/Anker-Adapter-Converts-Technology-Compatible/dp/B01COOQIKU?ref_=fsclp_pl_dp_5

 cheers,
 -roger


 Thanks,
 David

 On Fri, Aug 14, 2020 at 12:56 AM Roger Quadros  wrote:

> 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 4889.usb: changing max_speed on rev 5533202a
> > 

Re: [beagleboard] USB3 on BBAI

2020-09-01 Thread robert.sty...@gmail.com
Would this work?
- RSHTECH  ASIN : B07KFDFT4D 
On Tuesday, 1 September 2020 at 17:46:12 UTC+1 robert.sty...@gmail.com 
wrote:

> From what I can see on the schematic, there is no way to power a USB 
> device plugged into the BBAI USB Type-C socket, there is no path to switch 
> +5V power to the Type-C socket VBUS.
>
> You would need some sort of adapter or hub with power to supply your 
> device (and the BBAI see below).
>
> The BBAI needs power from either USB Type-C or (+5V) P9.5, P9.6 and (0V) 
> P9.1, P9.2.
>
> The USB2 can supply power to a device.
>
> On Tuesday, 1 September 2020 at 17:21:23 UTC+1 David Nolan wrote:
>
>> Hi Roger,
>>
>> I finally got a Type-C to Type-A adapter but when I connected it, I still 
>> get no power to my camera, or to a USB Thumb Drive. Is there some setting I 
>> need to change to get this to work perhaps? 
>>
>> Thanks,
>> David
>>
>> On Wednesday, August 19, 2020 at 12:35:46 AM UTC-7 Roger Quadros wrote:
>>
>>> David,
>>>
>>>
>>> On 18/08/2020 21:35, David Nolan wrote:
>>>
>>> Hi Roger, 
>>>
>>> Thanks for your email. Apologies for the delay getting back to you. Yes, 
>>> I'm connecting the camera to the Type-C port. The camera has a Micro B 
>>> connector so what I have right now is a cable with a USB Type-C on one end 
>>> and a Micro-B connector on the other side. Unfortunately my laptop doesn't 
>>> have a USB Type-C connector so I can't check it on my own laptop. The 
>>> camera supports USB 3 according to the manufacturer. 
>>>
>>>
>>> This is not the right way of connecting a device to the Type-C port. You 
>>> will need a Type-C to Type-A adapter to connect non type-C peripherals.
>>> The Adapter is important because it will tell the Type-C logic on the 
>>> board to switch to DFP (Downstream facing port mode) and so turn on VBUS.
>>>
>>> You should not need to run the script. AFAIK the port is in dual-role 
>>> mode "otg" and should automatically switch to host on connecting the right 
>>> adapter.
>>> In case you have a type-c thumb drive you should be able to test this 
>>> out.
>>>
>>>
>>> My Apologies, I was incorrect on P5, it's connected to P9, the cape 
>>> connector on the same side of the board as the Type-C connector. 
>>>
>>> Your point that the camera should be able to take power from USB Type-C 
>>> connector perhaps could be pointing to an issue. I'm not able to get any 
>>> power out of that port. Is there some setting I have to make, or a jumper 
>>> or something to get that to work? Mine seems to only take power in on the 
>>> Type-C connector.
>>>
>>>
>>> Right. That's why you need to use the type-C to type-A adapter.
>>> e.g.
>>>
>>> https://www.amazon.com/Anker-Adapter-Converts-Technology-Compatible/dp/B01COOQIKU?ref_=fsclp_pl_dp_5
>>>
>>> cheers,
>>> -roger
>>>
>>>
>>> Thanks,
>>> David
>>>
>>> On Fri, Aug 14, 2020 at 12:56 AM Roger Quadros  wrote:
>>>
 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 4889.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 etherne

Re: [beagleboard] USB3 on BBAI

2020-09-01 Thread David Nolan
Hi Robert,

For me I've powered the device on P9.5 and P9.1, as you've said, and
connected a powered USB hub to the Type-C also. In this scenario my camera
gets power, but is not seen by the BBAI (same for a USB key). When I do a
lsusb, it just shows the USB hubs (internally) as if nothing is connected.
When I connect to the USB 2 port everything works as expected.

Has anyone successfully gotten the USB3 to work as a host? If so, how?

Appreciate all the help,

Thanks,
David

On Tue, Sep 1, 2020 at 9:46 AM robert.sty...@gmail.com <
robert.styles.fors...@gmail.com> wrote:

> From what I can see on the schematic, there is no way to power a USB
> device plugged into the BBAI USB Type-C socket, there is no path to switch
> +5V power to the Type-C socket VBUS.
>
> You would need some sort of adapter or hub with power to supply your
> device (and the BBAI see below).
>
> The BBAI needs power from either USB Type-C or (+5V) P9.5, P9.6 and (0V)
> P9.1, P9.2.
>
> The USB2 can supply power to a device.
>
> On Tuesday, 1 September 2020 at 17:21:23 UTC+1 David Nolan wrote:
>
>> Hi Roger,
>>
>> I finally got a Type-C to Type-A adapter but when I connected it, I still
>> get no power to my camera, or to a USB Thumb Drive. Is there some setting I
>> need to change to get this to work perhaps?
>>
>> Thanks,
>> David
>>
>> On Wednesday, August 19, 2020 at 12:35:46 AM UTC-7 Roger Quadros wrote:
>>
>>> David,
>>>
>>>
>>> On 18/08/2020 21:35, David Nolan wrote:
>>>
>>> Hi Roger,
>>>
>>> Thanks for your email. Apologies for the delay getting back to you. Yes,
>>> I'm connecting the camera to the Type-C port. The camera has a Micro B
>>> connector so what I have right now is a cable with a USB Type-C on one end
>>> and a Micro-B connector on the other side. Unfortunately my laptop doesn't
>>> have a USB Type-C connector so I can't check it on my own laptop. The
>>> camera supports USB 3 according to the manufacturer.
>>>
>>>
>>> This is not the right way of connecting a device to the Type-C port. You
>>> will need a Type-C to Type-A adapter to connect non type-C peripherals.
>>> The Adapter is important because it will tell the Type-C logic on the
>>> board to switch to DFP (Downstream facing port mode) and so turn on VBUS.
>>>
>>> You should not need to run the script. AFAIK the port is in dual-role
>>> mode "otg" and should automatically switch to host on connecting the right
>>> adapter.
>>> In case you have a type-c thumb drive you should be able to test this
>>> out.
>>>
>>>
>>> My Apologies, I was incorrect on P5, it's connected to P9, the cape
>>> connector on the same side of the board as the Type-C connector.
>>>
>>> Your point that the camera should be able to take power from USB Type-C
>>> connector perhaps could be pointing to an issue. I'm not able to get any
>>> power out of that port. Is there some setting I have to make, or a jumper
>>> or something to get that to work? Mine seems to only take power in on the
>>> Type-C connector.
>>>
>>>
>>> Right. That's why you need to use the type-C to type-A adapter.
>>> e.g.
>>>
>>> https://www.amazon.com/Anker-Adapter-Converts-Technology-Compatible/dp/B01COOQIKU?ref_=fsclp_pl_dp_5
>>>
>>> cheers,
>>> -roger
>>>
>>>
>>> Thanks,
>>> David
>>>
>>> On Fri, Aug 14, 2020 at 12:56 AM Roger Quadros  wrote:
>>>
 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

Re: [beagleboard] USB3 on BBAI

2020-09-01 Thread robert.sty...@gmail.com
>From what I can see on the schematic, there is no way to power a USB device 
plugged into the BBAI USB Type-C socket, there is no path to switch +5V 
power to the Type-C socket VBUS.

You would need some sort of adapter or hub with power to supply your device 
(and the BBAI see below).

The BBAI needs power from either USB Type-C or (+5V) P9.5, P9.6 and (0V) 
P9.1, P9.2.

The USB2 can supply power to a device.

On Tuesday, 1 September 2020 at 17:21:23 UTC+1 David Nolan wrote:

> Hi Roger,
>
> I finally got a Type-C to Type-A adapter but when I connected it, I still 
> get no power to my camera, or to a USB Thumb Drive. Is there some setting I 
> need to change to get this to work perhaps? 
>
> Thanks,
> David
>
> On Wednesday, August 19, 2020 at 12:35:46 AM UTC-7 Roger Quadros wrote:
>
>> David,
>>
>>
>> On 18/08/2020 21:35, David Nolan wrote:
>>
>> Hi Roger, 
>>
>> Thanks for your email. Apologies for the delay getting back to you. Yes, 
>> I'm connecting the camera to the Type-C port. The camera has a Micro B 
>> connector so what I have right now is a cable with a USB Type-C on one end 
>> and a Micro-B connector on the other side. Unfortunately my laptop doesn't 
>> have a USB Type-C connector so I can't check it on my own laptop. The 
>> camera supports USB 3 according to the manufacturer. 
>>
>>
>> This is not the right way of connecting a device to the Type-C port. You 
>> will need a Type-C to Type-A adapter to connect non type-C peripherals.
>> The Adapter is important because it will tell the Type-C logic on the 
>> board to switch to DFP (Downstream facing port mode) and so turn on VBUS.
>>
>> You should not need to run the script. AFAIK the port is in dual-role 
>> mode "otg" and should automatically switch to host on connecting the right 
>> adapter.
>> In case you have a type-c thumb drive you should be able to test this out.
>>
>>
>> My Apologies, I was incorrect on P5, it's connected to P9, the cape 
>> connector on the same side of the board as the Type-C connector. 
>>
>> Your point that the camera should be able to take power from USB Type-C 
>> connector perhaps could be pointing to an issue. I'm not able to get any 
>> power out of that port. Is there some setting I have to make, or a jumper 
>> or something to get that to work? Mine seems to only take power in on the 
>> Type-C connector.
>>
>>
>> Right. That's why you need to use the type-C to type-A adapter.
>> e.g.
>>
>> https://www.amazon.com/Anker-Adapter-Converts-Technology-Compatible/dp/B01COOQIKU?ref_=fsclp_pl_dp_5
>>
>> cheers,
>> -roger
>>
>>
>> Thanks,
>> David
>>
>> On Fri, Aug 14, 2020 at 12:56 AM Roger Quadros  wrote:
>>
>>> 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 4889.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):

Re: [beagleboard] USB3 on BBAI

2020-09-01 Thread David Nolan
Hi Roger,

I finally got a Type-C to Type-A adapter but when I connected it, I still 
get no power to my camera, or to a USB Thumb Drive. Is there some setting I 
need to change to get this to work perhaps? 

Thanks,
David

On Wednesday, August 19, 2020 at 12:35:46 AM UTC-7 Roger Quadros wrote:

> David,
>
>
> On 18/08/2020 21:35, David Nolan wrote:
>
> Hi Roger, 
>
> Thanks for your email. Apologies for the delay getting back to you. Yes, 
> I'm connecting the camera to the Type-C port. The camera has a Micro B 
> connector so what I have right now is a cable with a USB Type-C on one end 
> and a Micro-B connector on the other side. Unfortunately my laptop doesn't 
> have a USB Type-C connector so I can't check it on my own laptop. The 
> camera supports USB 3 according to the manufacturer. 
>
>
> This is not the right way of connecting a device to the Type-C port. You 
> will need a Type-C to Type-A adapter to connect non type-C peripherals.
> The Adapter is important because it will tell the Type-C logic on the 
> board to switch to DFP (Downstream facing port mode) and so turn on VBUS.
>
> You should not need to run the script. AFAIK the port is in dual-role mode 
> "otg" and should automatically switch to host on connecting the right 
> adapter.
> In case you have a type-c thumb drive you should be able to test this out.
>
>
> My Apologies, I was incorrect on P5, it's connected to P9, the cape 
> connector on the same side of the board as the Type-C connector. 
>
> Your point that the camera should be able to take power from USB Type-C 
> connector perhaps could be pointing to an issue. I'm not able to get any 
> power out of that port. Is there some setting I have to make, or a jumper 
> or something to get that to work? Mine seems to only take power in on the 
> Type-C connector.
>
>
> Right. That's why you need to use the type-C to type-A adapter.
> e.g.
>
> https://www.amazon.com/Anker-Adapter-Converts-Technology-Compatible/dp/B01COOQIKU?ref_=fsclp_pl_dp_5
>
> cheers,
> -roger
>
>
> Thanks,
> David
>
> On Fri, Aug 14, 2020 at 12:56 AM Roger Quadros  wrote:
>
>> 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 4889.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 0x02010010
>> > [  583.185633] xhci-hcd xhci-hcd.2.auto: irq 223, io mem 0x4889
>> > [  583.186576] usb usb3: New USB device found, idVendor=1d6b, 
>> idProduct=0002
>> > [  583.186602] usb usb3: New USB device strings: Mfr=3, Product=2

Re: [beagleboard] USB3 on BBAI

2020-08-19 Thread 'Roger Quadros' via BeagleBoard

  
  
David,

On 18/08/2020 21:35, David Nolan wrote:


  
  Hi Roger,


Thanks for your email. Apologies for the delay getting back
  to you. Yes, I'm connecting the camera to the Type-C port. The
  camera has a Micro B connector so what I have right now is a
  cable with a USB Type-C on one end and a Micro-B connector on
  the other side. Unfortunately my laptop doesn't have a USB
  Type-C connector so I can't check it on my own laptop. The
  camera supports USB 3 according to the manufacturer. 

  


This is not the right way of connecting a device to the Type-C port.
You will need a Type-C to Type-A adapter to connect non type-C
peripherals.
The Adapter is important because it will tell the Type-C logic on
the board to switch to DFP (Downstream facing port mode) and so turn
on VBUS.

You should not need to run the script. AFAIK the port is in
dual-role mode "otg" and should automatically switch to host on
connecting the right adapter.
In case you have a type-c thumb drive you should be able to test
this out.

  


My Apologies, I was incorrect on P5, it's connected to P9,
  the cape connector on the same side of the board as the Type-C
  connector. 


Your point that the camera should be able to take power
  from USB Type-C connector perhaps could be pointing to an
  issue. I'm not able to get any power out of that port. Is
  there some setting I have to make, or a jumper or something to
  get that to work? Mine seems to only take power in on the
  Type-C connector.
  


Right. That's why you need to use the type-C to type-A adapter.
e.g.
https://www.amazon.com/Anker-Adapter-Converts-Technology-Compatible/dp/B01COOQIKU?ref_=fsclp_pl_dp_5

cheers,
-roger

  


Thanks,
David
  
  
  
On Fri, Aug 14, 2020 at 12:56
  AM Roger Quadros  wrote:

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 4889.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] IP

Re: [beagleboard] USB3 on BBAI

2020-08-18 Thread David Nolan
Hi Roger,

Thanks for your email. Apologies for the delay getting back to you. Yes,
I'm connecting the camera to the Type-C port. The camera has a Micro B
connector so what I have right now is a cable with a USB Type-C on one end
and a Micro-B connector on the other side. Unfortunately my laptop doesn't
have a USB Type-C connector so I can't check it on my own laptop. The
camera supports USB 3 according to the manufacturer.

My Apologies, I was incorrect on P5, it's connected to P9, the cape
connector on the same side of the board as the Type-C connector.

Your point that the camera should be able to take power from USB Type-C
connector perhaps could be pointing to an issue. I'm not able to get any
power out of that port. Is there some setting I have to make, or a jumper
or something to get that to work? Mine seems to only take power in on the
Type-C connector.

Thanks,
David

On Fri, Aug 14, 2020 at 12:56 AM Roger Quadros  wrote:

> 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 4889.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 0x02010010
> > [  583.185633] xhci-hcd xhci-hcd.2.auto: irq 223, io mem 0x4889
> > [  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,

Re: [beagleboard] USB3 on BBAI

2020-08-14 Thread 'Roger Quadros' via BeagleBoard

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 4889.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 0x02010010
[  583.185633] xhci-hcd xhci-hcd.2.auto: irq 223, io mem 0x4889
[  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 
beagleboard+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/17b66917-3622-418f-9b98-88daa38b61fbo%40googlegroups.com
 
.


--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

[beagleboard] USB3 on BBAI

2020-08-13 Thread Dave
Hi there,

I'm trying to connect a USB3 camera I have to the BBAI (uname -r gives 
4.14.108-ti-r131). 

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.

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 4889.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 0x02010010
[  583.185633] xhci-hcd xhci-hcd.2.auto: irq 223, io mem 0x4889
[  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. 

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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/17b66917-3622-418f-9b98-88daa38b61fbo%40googlegroups.com.