Hi @mariusoctavian ,
The error "image too large for partition" reports from U-boot. Actually, there are one or more small partitions (4MB) in eMMC, which is used for bootloader.
If your bootloader is larger than 4MB, just provide two ideas:
OPTION1: Reduce the bootloader to within 4MB
OPTION2: Put both your bootloader and rootfs to user partition
Warning: This method is not recommended, you had better put bootloader to boot partition to achieve more stronger stability, please carefully consider the consequences of this method for your products. If you determine to do in this way, please follow the steps:
step1: rebuild the u-boot
Refer to the patch (which is for i.MX93EVK) in the attachment: copy the bootloader to user partition and increase bootloader size to the appropriate size.
Build the u-boot.bin and rebuild the flash.bin(we call it flash_a.bin) using new u-boot.bin.
step2: flash the your real bootloader(we call it flash_B)
uuu -b emmc flash_A.bin flash_B.bin
step3: Change the boot partition
mmc partconf x x x x
see MMC – Gateworks for more information.
Regards,
Luca