uuu -b emmc_all, image too large for partition

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

uuu -b emmc_all, image too large for partition

ソリューションへジャンプ
3,412件の閲覧回数
mariusoctavian
Contributor IV


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.

 

ラベル(1)
0 件の賞賛
返信
1 解決策
2,979件の閲覧回数
mariusoctavian
Contributor IV

Thank you.

Appreciate.

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
3,004件の閲覧回数
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 件の賞賛
返信
2,980件の閲覧回数
mariusoctavian
Contributor IV

Thank you.

Appreciate.

0 件の賞賛
返信
3,370件の閲覧回数
jackie2
Contributor III

truncate -s 2G myimage.img

0 件の賞賛
返信
3,322件の閲覧回数
mariusoctavian
Contributor IV
Still having same problem.
0 件の賞賛
返信