I.MX6UL HAB event

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

I.MX6UL HAB event

跳至解决方案
620 次查看
benguan
Contributor I

I am working on i.MX6UL and get the following event:

=> hab_status

Secure boot disabled

HAB Configuration: 0xf0, HAB State: 0x66

--------- HAB Event 1 -----------------
event data:
0xdb 0x00 0x14 0x42 0x33 0x22 0x33 0x00
0x00 0x00 0x00 0x0f 0x00 0x90 0x80 0x00
0x00 0x01 0x20 0x00

STS = HAB_FAILURE (0x33)
RSN = HAB_INV_ADDRESS (0x22)
CTX = HAB_CTX_TARGET (0x33)
ENG = HAB_ENG_ANY (0x00)

How to decode the event data to analyze the issue? Thanks in advance.

My csf file:

[Header]
Version = 4.2
Hash Algorithm = sha256
Engine Configuration = 0
Certificate Format = X509
Signature Format = CMS
Engine = CAAM

[Install SRK]
File = "/opt/cst-3.3.1/crts/SRK_1_2_3_4_table.bin"
Source index = 0

[Install CSFK]
File = "/opt/cst-3.3.1/crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate CSF]

[Install Key]
Verification index = 0
Target Index = 2
File= "/opt/cst-3.3.1/crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"

[Authenticate Data]
Verification index = 2
Blocks = 0x00908400 0x00000000 0x0000bc00 "SPL"

标签 (2)
0 项奖励
回复
1 解答
599 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi @benguan 

Based on the CTX = HAB_CTX_TARGET (0x33), It seems the given target region goes beyond the allowed regions.

You can try to check the hab block address when you build the bootloader or try to dump the built bootloader ivt structure, then to verify the load address, offset and length for blocks of the authentication data.

For decoding the date, please refer to HAB4_API.pdf that will be under the directory of doc with the downloaded cst tool.

 

Best regards

Harvey

在原帖中查看解决方案

0 项奖励
回复
1 回复
600 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi @benguan 

Based on the CTX = HAB_CTX_TARGET (0x33), It seems the given target region goes beyond the allowed regions.

You can try to check the hab block address when you build the bootloader or try to dump the built bootloader ivt structure, then to verify the load address, offset and length for blocks of the authentication data.

For decoding the date, please refer to HAB4_API.pdf that will be under the directory of doc with the downloaded cst tool.

 

Best regards

Harvey

0 项奖励
回复