iMX 8mm - anti rollback protection

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

iMX 8mm - anti rollback protection

跳至解决方案
2,659 次查看
jorge_ramirez
Contributor III

Hi,

i.MX families using AHAB seem to have firmware anti-rollback protection via SECO as documented here https://www.nxp.com/docs/en/application-note/AN12312.pdf

What about other iMX8 socs (like iMX8mm) with HAB instead of AHAB? how could they protect from firmware roll-back at hardware level? is there any command that can be set by the CST to enable this?

many thanks

Jorge

 

标签 (1)
0 项奖励
1 解答
2,642 次查看
jorge_ramirez
Contributor III

@Yuri, ok thanks for confirming so quick. that is pretty much what I thought as well.

在原帖中查看解决方案

0 项奖励
5 回复数
2,635 次查看
jorge_ramirez
Contributor III

@Yuri, just another thing, in the case of AHAB, can the ROM check the version during SPL boot?

0 项奖励
2,623 次查看
Yuri
NXP Employee
NXP Employee

@jorge_ramirez 

Hello,
   

    the boot ROM in itself does not check versions. SPL as user's code - can check 
versions.

 

~Yuri.

0 项奖励
2,616 次查看
jorge_ramirez
Contributor III

right but it seems strange, since the version can be embedded in the container header at build time for AHAB to process. https://www.nxp.com/docs/en/application-note/AN12312.pdf [page 4]

do you know why ROM/AHAB do not run this check and instead it expects the bootloader to do it? seems much safer the other way around...

 

0 项奖励
2,643 次查看
jorge_ramirez
Contributor III

@Yuri, ok thanks for confirming so quick. that is pretty much what I thought as well.

0 项奖励
2,644 次查看
Yuri
NXP Employee
NXP Employee

@jorge_ramirez 
Hello,

   The boot ROM (HAB) does not check boot image versions, this verification
can be implemented by customer's secondary boot (as U-boot).
Note, i.MX8Mm supports non-rollover monotonic counter. Please refer to
Security Reference Manual for i.MX 8M Mini for more details.

https://www.nxp.com/webapp/Download?colCode=IMX8MMSRM&appType=moderatedWithoutFAE

 

Regards,
Yuri.