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

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

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

Jump to solution
315 Views
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 Kudos
1 Solution
270 Views
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

View solution in original post

0 Kudos
2 Replies
271 Views
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 Kudos
256 Views
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 Kudos