Signed zImage iMX6Q: Missing Parameters

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

Signed zImage iMX6Q: Missing Parameters

跳至解决方案
1,513 次查看
satyadamarla
Contributor III

Hello Guys,

I have been successful with getting the signed u-boot working. I want to get the same with zImage running. I have signed the zImage according to the following procedure:

1. Pad the original zImage to 0x1000 (4kBytes) -> zImage-padded

2. Create an IVT table and add it to the zImage -> zImage-padded-ivt

3. Generate the Signature for the above and attach it -> zImage-padded-ivt-csf

4. Pad the above image -> zImage-padded-ivt-csf-padded

This final zImage runs without any problem. But I see no HAB events at all for the zImage. I made changes to my u-boot cmd_bootm.c file at the function bootz_start

#ifdef CONFIG_SECURE_BOOT

  extern uint32_t authenticate_image(

  uint32_t ddr_start, uint32_t image_size);

  if (authenticate_image(images->ep, zi_end - zi_start) == 0) {

  printf("Authenticate zImage Fail, Please check\n");

  return 1;

  }

#endif

I also added caam to the kernel parameters but still I dont see any HAB events for zImage

So, I would like to know if there are any missing parameters at kernel or u-boot level or any u-boot settings that enables the authentication of zImage before loading?

Greets,

Satya

标签 (3)
0 项奖励
回复
1 解答
1,129 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  Have You followed recommendations of "i.MX 6 Linux High Assurance Boot
(HAB) User's Guide" ?

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,130 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  Have You followed recommendations of "i.MX 6 Linux High Assurance Boot
(HAB) User's Guide" ?

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复