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

Failed to open USB device on windows 10 device. #376

Open
PREMjITHT opened this issue Jun 12, 2023 · 16 comments
Open

Failed to open USB device on windows 10 device. #376

PREMjITHT opened this issue Jun 12, 2023 · 16 comments

Comments

@PREMjITHT
Copy link

PREMjITHT commented Jun 12, 2023

Hi @nxpfrankli,

The programming failed due to the Failure in opening the USB device on Windows 10 device.
Opened Windows PowerShell with admin rights,
The device is detected(imx6s), but it showing the below-mentioned error while programming.

FYI: The same UUU tool is working on the Linux machine.

Please find the attached screenshots,

uuu1
uuu2

@nxpfrankli
Copy link
Contributor

Can you check devices manage if winusb driver correct install automatcally?
I am not sure if your uboot is updated

@PREMjITHT
Copy link
Author

I am using U-boot 2019.
I am testing the UUU Tool on Windows 10. As per the documentation only in Windows 7, I need to use winusb to install the driver.
FYI: The same UUU Tool is working on Linux host machines.

@nxpfrankli
Copy link
Contributor

uboot need provide USB WCID information to let win10 can auto load winusb driver, It is needed only for windows.

you can use https://zadig.akeo.ie/ check if WCID work at your machine.

Please check your uboot include below commits.

https://github.com/search?q=repo%3Anxp-imx%2Fuboot-imx++WCID&type=commits

@PREMjITHT
Copy link
Author

I checked the WCID driver using Zadig.
Below are the results,

Zadig-2
After installing the WCID driver, the Zadig application is showing that the driver is not installed.

The above scenario is when I connected the serial USB cable to a powered USB Hub(USB 3.0).

I tried connecting using a normal adapter(Type A - Type C),
That time I am getting an error that "The USB device is not recognized".

usb err

Zadig-unknown

@nxpfrankli
Copy link
Contributor

I think you choose wrong USB devices, USB ID 0x0E0F and 0001 is not our devices.

Sorry, I read you first screen shot carefully, Your devices still be in ROM HID phase.

Can you use uuu -v to get more detail information.

@PREMjITHT
Copy link
Author

Below is the result of uuu.exe -v

uuu err

@nxpfrankli
Copy link
Contributor

Can you show full log included uuu cmd line

@PREMjITHT
Copy link
Author

Please find the requested image attached below,

uuu err vv

@nxpfrankli
Copy link
Contributor

when appear Fail open usb devices, can you check if there are "usb download devices" at zadig?

@PREMjITHT
Copy link
Author

PREMjITHT commented Jun 20, 2023

Hi @nxpfrankli ,
The same UUU Tool is working on another Windows machine.
It has a USB Type-A port. Previously I was using a laptop with a Type C port.

Now the tool is able to detect the OTG and flashing.
But while programming the rootfs it got stuck, The progress bar was not moving. But this is not happening on Linux machines.

@nxpfrankli
Copy link
Contributor

Did you use bz2 as rootfs?

@PREMjITHT
Copy link
Author

yes.
Please check the below error snapshot for more information.

bulk error

Sometimes it works, but sometimes the flashing gets stuck and later throws the above error.

@nxpfrankli
Copy link
Contributor

It should not related your windows environment. The decompress was done at boards. Maybe boards was out memory and kill tar by linux.

can you try drain some file system cache before tar?

https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/

@PREMjITHT
Copy link
Author

Okay, I will try this.
But I wonder why this is not happening in the Linux Host. There it works always without any lag/hangs/USB Bulk error.

In the Windows host, I observed that the rootfs programming speed got reduced and stuck at one point, later I got the error mentioned in the previous comment.

@nxpfrankli
Copy link
Contributor

Yes, suppose all transferred's data should be the same between linux and windows. Maybe wireshark trace some usb packages to help diagnosis. Try clean cache firstly.

@PREMjITHT
Copy link
Author

sure, Let me try that and get back to you. Thank you.

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