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?
已解决! 转到解答。
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.