parseIVT - a script to help i.MX6 Code Signing

Document created by Biyong Sun Employee on Mar 25, 2020Last modified by Biyong Sun Employee on Mar 25, 2020
Version 4Show Document
  • View in full screen mode

The script to parse the IVT.
It is a script tool for some case debug and  align the output of uboot log(u-boot-dtb.imx.log)

 

It is a bach script.

 

 ./parseIVT u-boot-dtb.imx  0

0x00 | ivt_header          | 0x402000D1
0x04 | ivt_entry           | 0x87800000
0x08 | ivt_reserved1       | 0x00000000
0x0C | ivt_dcd_ptr         | 0x877FF42C
0x10 | ivt_boot_data_ptr   | 0x877FF420
0x14 | ivt_self            | 0x877FF400
0x18 | ivt_csf             | 0x878AE000
0x1C | ivt_reserved2       | 0x00000000
0x20 | boot_data_start     | 0x877FF000
0x24 | boot_data_size      | 0x000B3000
0x28 | plugin              | 0x00000000
---------------------------------------
0x2C | dcd_hdr             | 0x401002D2
0x30 | write_dcd_cmd       | 0x040C02CC

u-boot-dtb.imx file size 715776
IVT Image length SHALL be HEX:0xAEC00 DEC:715776
Need to pad to 715776 if the u-boot-dtb.imx is smaller than 715776.

out/u-boot-dtb.imx no need pad
HAB Blocks:   0x877ff400 0x00000000 0x000aec00 "u-boot-dtb.imx"
DCD Blocks:   0x00910000 0x0000002c 0x00000210 "u-boot-dtb.imx"
Please double confirm the result.

Attachments

Outcomes