uuu -b emmc_all, image too large for partition

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

uuu -b emmc_all, image too large for partition

Jump to solution
1,546 Views
mariusoctavian
Contributor III


My disk image looks like,

mariusoctavian_1-1688144213372.png

The emmc is imx8M dart and is 16 GB.

I am issuing the command

uuu -b emmc_all  uboot_flashed.bin myimage.img

Trough the procedure I get 3 progresses.

mariusoctavian_2-1688144775222.png

 

mariusoctavian_3-1688144853516.png

mariusoctavian_4-1688145031710.png

 

Then the error/ warning because the image boots up okay an the partition looks healthy

mariusoctavian_5-1688145102249.png

 

Partition table

  • unalocated 8M
  • P1  ext4 start 16384 end 1656856

 

Device Boot Start End Sectors Size Id Type
/dev/sdb1 16384 2672639 2656256 1.3G 83 Linux

Thank you.

 

Labels (1)
0 Kudos
Reply
1 Solution
1,113 Views
mariusoctavian
Contributor III

Thank you.

Appreciate.

View solution in original post

0 Kudos
Reply
4 Replies
1,143 Views
Luca_Shen
NXP Employee
NXP Employee

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

0 Kudos
Reply
1,114 Views
mariusoctavian
Contributor III

Thank you.

Appreciate.

0 Kudos
Reply
1,509 Views
jackie2
Contributor III

truncate -s 2G myimage.img

0 Kudos
Reply
1,461 Views
mariusoctavian
Contributor III
Still having same problem.
0 Kudos
Reply