Uboot image with trusty os is too large for partition bootloader0 in Android 12

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Uboot image with trusty os is too large for partition bootloader0 in Android 12

跳至解决方案
456 次查看
herman_lin
Contributor II

Hi,

I can generate images individually using the following two defconfigs: imx8mq_evk_android_trusty_defconfig => u-boot-imx8mq-trusty.imx imx8mq_evk_android_trusty_dual_defconfig => spl-imx8mq-trusty-dual.bin + bootloader-imx8mq-trusty-dual.img

However, the u-boot-imx8mq-trusty.imx file exceeds 4MB (with tee-imx8mq.bin alone being 2.8MB), resulting in the following error message when flashing using uuu:

1:9 7/8 [image too large for partition ] FB[-t 600000]: flash bootloader0 u-boot-imx8mq-trusty.imx

Is U-Boot with Trusty OS supported on i.MX8MQ in Android 12(built with imx8mq_evk_android_trusty_defconfig)?

Or need to support Trusty OS based on SPL and a dual bootloader configuration? (built with imx8mq_evk_android_trusty_dual_defconfig)?

 

Thanks

标记 (2)
0 项奖励
1 解答
395 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @herman_lin 

Dual bootloader would provide a more secure way to prevent bootloader rollback attack, so we set the dual bootloader as the default boot mode. 

Best Regards

Zhiming

在原帖中查看解决方案

0 项奖励
3 回复数
433 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @herman_lin 

You can only choose dual, trusty-dual, trusty-secure-unlock-dual from the Android Quick Start Guide. Please use imx8mq_evk_android_trusty_dual_defconfig to build images.

Zhiming_Liu_0-1708308247477.png

 

0 项奖励
421 次查看
herman_lin
Contributor II

Hi Zhiming,

Thanks for your reply.

In the Android 11.0.0_2.2.0 user guide on page 16, it is stated that even non-dual bootloader versions can support Trusty OS.

=> u-boot-imx8mq-trusty.imx (An image containing U-Boot, ATF, and Trusty OS for i.MX 8M Quad EVK board)

 

However, it seems that starting from Android 12, only dual bootloader versions can support Trusty OS.

What is the reason for this?

Is there a chance that Trusty OS support will be available on non-dual bootloader versions in Android12?

Thanks!!

0 项奖励
396 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @herman_lin 

Dual bootloader would provide a more secure way to prevent bootloader rollback attack, so we set the dual bootloader as the default boot mode. 

Best Regards

Zhiming

0 项奖励