Hello Experts,
I'm working on the i.MX95 platform and enabling rollback protection using ROLLBACK_INDEX_IN_CONTAINER.
I introduced the following variable in my local.conf:
export ROLLBACK_INDEX_IN_CONTAINER = "1"
This value is propagated through the build, and the build log confirms that mkimage_imx8 is invoked with "1"
When building an eMMC boot image, parsing the generated image shows the container software version updated correctly.
if [ 1 ]; then \
./../mkimage_imx8 -soc IMX9 -cntr_version 2 -sw_version 1 -c \
-ap bl31.bin a55 0x8A200000 \
-ap u-boot-hash.bin a55 0x90200000 \
-ap tee.bin a55 0x8C000000 \
-out u-boot-atf-container.img; \
However, when building the FlexSPI boot image (imx-boot-imx95-19x19-verdin-fspi.bin-flash_a55_flexspi), parsing the image still reports the default SW version
./mkimage_imx8 -soc IMX9 -parse imx-boot-imx95-19x19-verdin-fspi.bin-flash_a55_flexspi
SOC: IMX9
Input container binary to be parsed: imx-boot-imx95-19x19-verdin-fspi.bin-flash_a55_flexspi
*********************************
* *
* APP CONTAINER 1 *
* *
*********************************
Length: 0X320 (800)
Tag: 0X87
Version: 0X2
Flags: 0X10
Num images: 6
Fuse version: 0
SW version: 0X0
Sig blk offset: 0X310
I noticed an interesting thing in iMX95/soc.mak as there is no sw_version included during the build for flash_a55_flexspi
flash_a55_flexspi: $(MKIMG) $(AHAB_IMG) $(MCU_IMG) $(SPL_A55_IMG) $(OEI_IMG_M33) fcb.bin u-boot-atf-container.img
./$(MKIMG) -soc IMX9 -cntr_version $(CTNR_VERSION) $(XSPI_FAST_HASH) -dev flexspi -append $(AHAB_IMG) -c $(OEI_OPT_M33) -msel $(MSEL) \
-m33 $(MCU_IMG) 0 $(MCU_TCM_ADDR) \
-ap $(SPL_A55_IMG) a55 $(SPL_LOAD_ADDR_M33_VIEW) $(V2X_DUMMY) -fcb fcb.bin $(FCB_LOAD_ADDR) -out flash.bin
$(call append_container,u-boot-atf-container.img,1)
$(call append_fcb)
My questions are:
- Is ROLLBACK_INDEX_IN_CONTAINER expected to update the software version for FlexSPI boot images?
- Does the FlexSPI image follow a different container generation flow where the rollback index/software version must be configured separately?
- Is this a known limitation or issue in the i.MX95 imx-mkimage build flow?
If anyone has successfully enabled ROLLBACK_INDEX_IN_CONTAINER for FlexSPI boot images on i.MX95, could you please share the expected flow or any additional configuration required?
Thanks in advance!
Best Regards,
Arun Kumar