i.MX8QM how to tell if imx-boot failover to second partition occurred?

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

i.MX8QM how to tell if imx-boot failover to second partition occurred?

跳至解决方案
316 次查看
ambrice
Contributor II

We have an A/B install where we install imx-boot to eMMC using mmcblk0boot0 and mmcblk0boot1 partitions and then "mmc bootpart enable" to switch to the new partition on next boot.  I see that the SCU will automatically failover to the secondary partition if it can't load the imx-boot in the primary partition. How do I know when this happens?  Is there a SCU API for querying which mmc boot partition was actually used to boot?

 

0 项奖励
1 解答
271 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Yes, there is SCFW API called sc_misc_get_boot_container().

 

danwei_luo_0-1708939188683.png

danwei_luo_1-1708939219009.png

在原帖中查看解决方案

0 项奖励
2 回复数
272 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Yes, there is SCFW API called sc_misc_get_boot_container().

 

danwei_luo_0-1708939188683.png

danwei_luo_1-1708939219009.png

0 项奖励
257 次查看
ambrice
Contributor II

Thanks, that works.  And just to be clear after testing, 1 means it booted the primary container successfully which could be either boot0 or boot1 depending on mmc partition config setting, and 2 means it booted the opposite partition than what's in mmc settings.

0 项奖励