Dear Team,
I am working on i.MX8MQ platform with Linux 5.4.70 and OP-TEE support.
I am able to flash the default image which is builded as per NXP build procedure.
Now I added some extra drivers in OP-TEE and enabled some configuration (Increased TEE RAM), so that size of OP-TEE binary is increased.
As SPL, ATF, OP-TEE, U-Boot are combined as one binary (flash.bin), size of u-boot (flash.bin) also increased.
Now I used the UUU tool version :
libuuu_1.4.72-0-g8e9e189
libuuu_1.4.139-0-g1a8f760
I tried with latest version of uuu tool also. But getting the error like below:
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.72-0-g8e9e189
Success 0 Failure 1
1:1 3/ 3 [image too large for partition ] FB: flash bootloader Binaries/flash_hdmi_spl_uboot
"image too large for partition" - This message I am getting. I am trying to flash to on board emmc.
I checked by booting the board. First 10 MB is used for RAW partition.
root@imx8m-iwg33m:~# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 7.29 GiB, 7820083200 bytes, 15273600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd2656eba
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 20480 1044479 1024000 500M c W95 FAT32 (LBA)
/dev/mmcblk0p2 1228800 15273599 14044800 6.7G 83 Linux
root@imx8m-iwg33m:~#
Here start of the VFAT partition is 20480 sector i.e 20480*512 = 10485760 Bytes = 10MB.
So first 10MB is RAW partition.
I tried to flash by command line manually as below:
dd if=flash.bin of=/dev/mmcblk0 bs=1k seek=32 conv=fsync
It shows successful, but when power off and on, old u-boot image only booting.
Please can you suggest me how we can flash more than 4MB U-Boot image to on board emmc with UUU tool ?
Thanks and Regards,
Devendra