mfgtools
mfgtools copied to clipboard
Transfer error when decompressing big wic.bz2 image
I am facing an issue when I tried to flash a custom (rather big) wic.bz2 image to an I.MX8MP based board using uuu on Linux. The problem seems to be related to the decompression of the image by the tool. Transfer starts correctly but ends up failing after a minute or so.
$ uuu -b emmc_all imx-boot image.wic.bz2
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.193-1-gbdb4cb3
Success 0 Failure 0
1:42 4/ 8 [ 2% ] FB: flash -raw2sparse all image.wic.bz2/*
[1] 5093 killed uuu -b emmc_all imx-boot image.wic.bz2
If I manually decompress the image before then pass it to uuu. The image flashs successfully.
To support multi boards program, we decompressed whole file into memory. When we developed uuu, rootfs generally 2-4GB, it is not problem for moden PC.
After decompress, it is file. uuu use mmap to map whole files, which is no problem for 64bit system.
we try to impliment a small memory version for only one boards. but I takes some time.