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.
Hi @Sanket_Parekh ,
I have two questions.
∙ Is the PERSIST_SECONDARY_BOOT information also removed from the latest RM for i.mx8mp?
∙ If the boot device is a nandflash, does the primary boot fail if the u-boot area is not linear due to the presence of bad blocks?
Best regards,
sakemi
Hello,
Thank you, this is precisely what I'm looking for.
Regards,
lelle