Flash Android 10 Dual Bootloader on IMX8MM with 8G eMMC

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

Flash Android 10 Dual Bootloader on IMX8MM with 8G eMMC

2,014 Views
jarvis_tsai
Contributor I

Hi NXP support team,

I am using IMX8M mini cpu and try to flash dual bootloader on our 8G eMMc board.

However there are not ".bpt file" for "7GB dual-bootloader" in "device/fsl/common/partition".

 pastedImage_1.png

So i create and modify one for "7GB" based on "device-partitions-13GB-ab-dual-bootloader.bpt".

You can see attached .btp file and the patch i modified like below.
@@ -1,6 +1,6 @@
{
"settings": {
- "disk_size": "13 GiB",
+ "disk_size": "7 GiB",
"disk_alignment": 2097152,
"first_partition_offset": 8388608
},
@@ -54,14 +54,14 @@
{
"ab": true,
"label": "vendor",
- "size": "512 MiB",
+ "size": "256 MiB",
"guid": "auto",
"type_guid": "2578eab2-a534-43e2-92c0-fed1b01c5d1d"
},
{
"ab": true,
"label": "product",
- "size": "1792 MiB",
+ "size": "896 MiB",
"guid": "auto",
"type_guid": "c1dedb9a-a0d3-42e4-b74d-0acf96833624"
},

After i build and try to flsah image with command ".\uuu_imx_android_flash.bat -f imx8mm -a -c 7 -u dual".

It always fails in flashing "vendor.img" like below :

dual bootloader is supported
dtbo is supported
dual slot is supported
generate lines to flash spl-imx8mm-dual.bin to the partition of bootloader0
generate lines to flash partition-table-dual.img to the partition of gpt
generate lines to flash bootloader-imx8mm-dual.img to the partition of bootloader_a
generate lines to flash dtbo-imx8mm.img to the partition of dtbo_a
generate lines to flash boot.img to the partition of boot_a
generate lines to flash system.img to the partition of system_a
generate lines to flash vendor.img to the partition of vendor_a
generate lines to flash product.img to the partition of product_a
generate lines to flash vbmeta-imx8mm.img to the partition of vbmeta_a
uuu script generated, start to invoke uuu with the generated uuu script
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.171-0-g4249f93

Success 0 Failure 1


1:13 15/22 [Request would exceed partition size! ] FB: flash vendor_a vendor.img.link

I also modify vendor size to 512 MiB in .btp file, but it still fails as above.   

{
"ab": true,
"label": "vendor",
"size": "512 MiB",
"guid": "auto",
"type_guid": "2578eab2-a534-43e2-92c0-fed1b01c5d1d"
},

My vendor.img only has 69,073 KB.

Please help to create a "7GB dual-bootloader" .btp file to flash. 

Thanks.

Labels (1)
0 Kudos
2 Replies

1,828 Views
jarvis_tsai
Contributor I

Hi Igor,

I check the document you provided and i still flash failed.

After i test several times i found something may be the root cause.

Here are my tests :

1. I modify a "7GB dual-bootloader" .bpt file based on "13GB dual-bootloader" one (I only change "disk_size: 13 GiB" to "disk_size: 7 GiB").

2. I build failed because the sum of capacity in "7GB dual-bootloader" .bpt file is bigger than 7GB.

3. So I modify the "product" size from "1792 MiB" to "896 MiB" in the "7GB dual-bootloader" .bpt file and i can build it.

4. Then I flash image by UUU, it failed on flashing "product.img".

    The error log shows "16/22 [Request would exceed partition size!  ] FB: flash product_a product.img.link".

5. And I try to adjust the capacity of "system", "vendor" and "product" in the "7GB dual-bootloader" .bpt file and it all flash failed.

So I think the size of partition is the root cause, but I can't create a useful "7GB dual-bootloader" .bpt file.

Please help to modify a "7GB dual-bootloader" .bpt file for 8G eMMC.

Btw, it will build failed when enable "IMX_NO_PRODUCT_PARTITION := true", even on "evk_8mm" platform.

Please check this in NXP Android 10 BSP.

Thanks.

0 Kudos

1,829 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jarvis

for changing partition size one can try to follow sect.8.8.2 Changing the partition size

attached Android Guide.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos