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

Random errors while flashing #379

Open
aleeraser opened this issue Jul 13, 2023 · 4 comments
Open

Random errors while flashing #379

aleeraser opened this issue Jul 13, 2023 · 4 comments

Comments

@aleeraser
Copy link
Contributor

From a Linux host, I'm performing a flashing stress test on an iMX8 based board. I'm only flashing the bootloader (U-Boot).
I'm using libuuu_1.5.21-0-g1f42172.

The flashing script is dead simple and simply calls uuu -b emmc imx-boot.bin again and again, for 500 times.

The issue I'm seeing is that, randomly, the flashing may fail with apparently no solid reason, since the error message may change. So far I've seen the following messages:

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.21-0-g1f42172

Success 0    Failure 1


3:144112 1/ 1 [HID(W):LIBUSB_ERROR_IO                ] SDPS: boot -f imx-boot.bin

or

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.21-0-g1f42172

Success 0    Failure 1


3:144112 1/ 7 [Failure claim interface               ] FB: ucmd setenv fastboot_dev mmc

I run tests of 500 flashing retries, and I usually have a failure rate of ~5%, i.e. ~25 failures for 500 retries.

What may be the cause of those failures?

This is somehow related to #233.

@nxpfrankli
Copy link
Contributor

which imx8? which libusb version in your system?

@aleeraser
Copy link
Contributor Author

I'm using libusb v1.0.0, and I'm seeing this behavior on various boards with the following iMX8 variants: DX, DXP, QXP.

@nxpfrankli
Copy link
Contributor

nxpfrankli commented Jul 14, 2023

did you run two instances of uuu? I meet similar issue if run two instances. if there are back ground uuu instance, it met failure about 5%-10%, but after I kill back ground uuu instance, It pass 1000times test.

@aleeraser
Copy link
Contributor Author

No, single instance but repeated 500 times, for many rounds. The (single) device which is being flashed lays untouched for the whole time.

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