mfgtools icon indicating copy to clipboard operation
mfgtools copied to clipboard

Random errors while flashing

Open aleeraser opened this issue 1 year ago • 4 comments

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 https://github.com/nxp-imx/mfgtools/issues/233.

aleeraser avatar Jul 13 '23 13:07 aleeraser

which imx8? which libusb version in your system?

nxpfrankli avatar Jul 13 '23 14:07 nxpfrankli

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

aleeraser avatar Jul 13 '23 18:07 aleeraser

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.

nxpfrankli avatar Jul 14 '23 18:07 nxpfrankli

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

aleeraser avatar Jul 16 '23 17:07 aleeraser