Hi,
I use a imx8mp soc with 8GB emmc flash. I built a yocto image which contains a u-boot 2024.01 and a linux kernel 6.6
The output wic-file has a size of 7.6GB
When I try to flash this wic file over the uuu tool I always got an error.
Command: uuu.exe -b emmc_all myYoctoImage.wic
Error: "write_sparse_image: Request would exceed partition size!"
The error occurs repeatable at the 2GB border.
I enabled the debug outputs of image-sparse.c in the u-boot.
This is the last output:
Flashing sparse image at offset 0
=== Sparse Image Header ===
magic: 0xed26ff3a
major_version: 0x1
minor_version: 0x0
file_hdr_sz: 28
chunk_hdr_sz: 12
blk_sz: 4096
total_blks: 528126
total_chunks: 2
Flashing Sparse Image
=== Chunk Header ===
chunk_type: 0xcac3
chunk_data_sz: 0x7ff00
total_size: 0xc
write_sparse_image: Request would exceed partition size!
dwc3-generic-peripheral usb@38100000: request 00000000bdf52900 was not queued to ep1in-bulk
I need to mention that I use the GPT partition table.
What changed in u-boot that I can not flash my whole wic-file?
Solved! Go to Solution.
I thing I found out how to handle it. I can't use the build-in scripts anymore.
To flash the wic-image I have to use
FB: flash -raw2sparse mmc2 mywicimage
And for flashing the bootloader
FB: flash mmc2boot0 flash.bin
This works with the following configuration of u-boot:
I thing I found out how to handle it. I can't use the build-in scripts anymore.
To flash the wic-image I have to use
FB: flash -raw2sparse mmc2 mywicimage
And for flashing the bootloader
FB: flash mmc2boot0 flash.bin
This works with the following configuration of u-boot: