Use boot0 and boot1 for primary and secondary bootloader

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Use boot0 and boot1 for primary and secondary bootloader

3,005 次查看
praveen_bharath
Contributor II

On IMX7, that has an eMMC with 2 boot blocks/physical partitions, boot0 and boot1, would it be possible to use one or the other as a redundant bootloader?

I would like to flash primary bootloader on boot0 and secondary bootloader on boot1. Both images are signed and verified by HAB. Verified as in I signed/flashed either images individually and made sure the board boots with either image.

For my use case I would like that if the primary bootloader gets corrupted, the ROM/HAB should validate the secondary bootloader and boot from there. Is this possible?

I have read about the primary and secondary bootloader being flashed on the same boot partition with secondary image table but I really dont want the two bootloader images to reside on the same block. I would like to have it working the way I described above. Please let me know if that is do able?

Thanks

标记 (1)
0 项奖励
回复
1 回复

2,638 次查看
Yuri
NXP Employee
NXP Employee

Hello,

 

   The boot scenario to use the eMMC second boot partition  is not supported by i.MX boot ROM,

at least, directly. Nevertheless, customers can apply the approach, described in section 6.6.5.3.5

(Redundant boot support for expansion device) of the i.MX7D RM, assuming that the secondary 

bootloader, run by the boot ROM, can program properly BOOT_PARTITION_ENABLE field in the

Ext_CSD[179] and try to reboot the system. Note, "the boot partition can be selected for an MMC4.x

card after the card initialization is complete. The ROM code reads the BOOT_PARTITION_ENABLE

field in the Ext_CSD[179] to get the boot partition to be set."

 

Have a great day,

Yuri

 

 

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

0 项奖励
回复