Hello,
We’re planning implementation of having a fail-safe update mechanism for bootloader (u-boot) and would like to utilize the “Secondary image boot” feature. Our board boots from 4MB serial NOR over SPI (ECSPI1).
Bootloader is typically divided into two parts, SPL (loaded by CPU) and u-boot (loaded by SPL). The both parts are likely to be dependent on specific configuration of each other and should be updated as a pair.
This is difficult to achieve without knowing if we have booted using “Primary Image boot” or “secondary Image boot”.
Boot flow diagram of reference manual mentions an image index persistent bit.
Does the CPU BOOT ROM store this information in any register or is it possible to somehow find out?
Regards,
Lelle
Solved! Go to Solution.
Hello,
Thank you, this is precisely what I'm looking for.
Regards,
lelle