genIVT.pl content

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

genIVT.pl content

Jump to solution
1,492 Views
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 Kudos
1 Solution
1,471 Views
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.

View solution in original post

3 Replies
1,475 Views
antonio_santagi
Contributor IV

yes, but how to calculate this address :

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

thank you

0 Kudos
1,472 Views
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,487 Views
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 Kudos