genIVT.pl content

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

genIVT.pl content

跳至解决方案
1,902 次查看
antonio_santagi
Contributor IV

Hello,

on imx8M Mini I can read at 

https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/guides/mx8m_mx8mm_secure_boo... 

that I need to change the genIVT.pl content from the sample file that I can find  : 

https://source.codeaurora.org/external/imx/uboot-imx/tree/doc/imx/habv4/script_examples/genIVT.pl?h=... 

This works , but what is the 

print $out pack("V", 0x412000D1); # Signature

what is that address and what should I put there if I have more than one file to check from U-boot with the HAB APIs ?

I could find reference for the other addresses so I know how to change them but not for this one.

thank you

Antonio Santagiuliana 

0 项奖励
回复
1 解答
1,881 次查看
IvanRuiz
NXP Employee
NXP Employee

Hello,

 

After looking for examples and information about that field, it always remains the same; looking deeper into this in some old script they called it "IVT Header" and shows the same value as the "signature".

 

open(my $out, '>:raw', 'ivt.bin') or die "Unable to open: $!";
print $out pack("V", 0x412000D1); # IVT Header
print $out pack("V", 0x10801000); # Jump Location

 

So in conclusion, this field remains the same and the jump location is the load address of the image.

 

Hope it helps!

 

BR,

Ivan.

在原帖中查看解决方案

3 回复数
1,885 次查看
antonio_santagi
Contributor IV

yes, but how to calculate this address :

print $out pack("V", 0x412000D1); # Signature

thank you

0 项奖励
回复
1,882 次查看
IvanRuiz
NXP Employee
NXP Employee

Hello,

 

After looking for examples and information about that field, it always remains the same; looking deeper into this in some old script they called it "IVT Header" and shows the same value as the "signature".

 

open(my $out, '>:raw', 'ivt.bin') or die "Unable to open: $!";
print $out pack("V", 0x412000D1); # IVT Header
print $out pack("V", 0x10801000); # Jump Location

 

So in conclusion, this field remains the same and the jump location is the load address of the image.

 

Hope it helps!

 

BR,

Ivan.

1,897 次查看
IvanRuiz
NXP Employee
NXP Employee

Hello,

 

The load address is the image load address, as mentioned in the following thread where a diagram is shown:

https://community.nxp.com/t5/i-MX-Processors/hab-auth-img-problem/m-p/1032545

 

Hope it helps!

 

BR,

Ivan.

0 项奖励
回复