genIVT.pl content

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,846件の閲覧回数
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,825件の閲覧回数
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,829件の閲覧回数
antonio_santagi
Contributor IV

yes, but how to calculate this address :

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

thank you

0 件の賞賛
返信
1,826件の閲覧回数
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,841件の閲覧回数
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 件の賞賛
返信