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?

ソリューションへジャンプ
543件の閲覧回数
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 解決策
498件の閲覧回数
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 返答(返信)
499件の閲覧回数
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 件の賞賛
返信
484件の閲覧回数
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 件の賞賛
返信