Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to automate UUU to match both USB 2.0 and USB 3.0 port path #390

Open
Dray1998 opened this issue Sep 19, 2023 · 5 comments
Open

How to automate UUU to match both USB 2.0 and USB 3.0 port path #390

Dray1998 opened this issue Sep 19, 2023 · 5 comments

Comments

@Dray1998
Copy link

Hi,
When UUU uses "-m" to monitor USB path, it will get stuck during fastboot because the path has changed.
This is mentioned in the UUU pdf file as well:
"Notes: Some board supports super speed (USB3.0). USB 3.0 port path is difference USB 2.0. If use -m to filter port, you need add USB 3.0 port number otherwise fastboot will not be detected."

I used "uuu -lsusb" to get the USB path of my device, but it does not give the USB 3.0 port number. Currently, I'm using USB device tree viewer to get both USB 2.0 and USB 3.0 port path, but its not suitable if I want to write a script to automate this process. Different PC might have different paths, so the script has to be able to determine itself the corresponding USB 3.0 port path for each detected USB 2.0 path.

May I know if you have any suggestion for this?

@nxpfrankli
Copy link
Contributor

using two -m option to monitor two path, -m Path1 -m path2

@Dray1998
Copy link
Author

Hi @nxpfrankli
Thanks for the reply. Yes, I understand that uuu can monitor multiple paths, but my question is how to determine the corresponding USB 3.0 port path for each detected USB 2.0 path by "uuu -lsusb".

@nxpfrankli
Copy link
Contributor

I use uuu -lsusb again after uuu flash.bin to determinate usb 3.0 port. OS have not provide map info between USB 2.0 and USB 3.0 port

@Dray1998
Copy link
Author

In a scenario of running multiple devices at the same time, it it difficult to differentiate between devices using -lsusb after uuu flash.bin, so its best if can determine it before flash.bin
I'm using USB device tree viewer to get the map info between USB 2.0 and USB 3.0 port. It provides both port chain and companion port chain, which represents USB 2.0 and USB 3.0 port path.
I noticed uuu uses the libusb library, and within it has libusb_get_ss_endpoint_companion_descriptor function. This function finds and parses the USB 3.0 endpoint companion descriptor given by endpoint. Maybe this could help uuu to determine the USB 3.0 port path changes during fastboot?

@nxpfrankli
Copy link
Contributor

try 33f8086, added serial number filter support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants