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?
解決済! 解決策の投稿を見る。
Yes, there is SCFW API called sc_misc_get_boot_container().
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.