Hello,
To check which partition is used for booting the Android image on i.MX8MP, you can use the following methods:
For detecting the boot partition in use, two approaches are available:
1. Use different U-Boot versions on each partition with variables indicating primary or secondary boot. This allows you to determine which version is running during the boot process.
2. Parse the ROM event log in U-Boot by reading address 0x0090bff0 after boot. The boot stage values from the ROM API provide information about which boot source was used:
- PRI_IMG_BOOT = 0x6 (primary image boot)
- SND_IMG_BOOT = 0x9 (secondary image boot)
- REC_BOOT = 0xA (recovery boot)
- SDP_BOOT = 0x5 (SDP boot)
These values can help you identify which partition was used for booting the Android image on your i.MX8MP device.
For more detailed information about ROM API messages, refer to application note AN12853.
regards