I can`t encrypt "flash_flexspi" target of "imx-mkimage" using the same CSF (for "flash" target):
[ERROR] CST: Offsets are not consistent with the input binary to be signed
Offset in CSF correct - they are from imx-mkimage output.
[Header]
Target = AHAB
Version = 1.0
[Install SRK]
# SRK table generated by srktool
File = "./release/crts/SRK_1_2_3_4_table.bin"
# Public key certificate in PEM format
Source = "./release/crts/SRK1_sha384_secp384r1_v3_usr_crt.pem"
# Index of the public key certificate within the SRK table (0 .. 3)
Source index = 0
# Type of SRK set (NXP or OEM)
Source set = OEM
# bitmask of the revoked SRKs
Revocations = 0x0
[Authenticate Data]
# Binary to be signed generated by mkimage
File = "flash.bin"
# Offsets = Container header Signature block (printed out by mkimage)
Offsets = 0x400 0x590
How to encrypt "flash_flexspi" image for iMX8QXP C0?
Solved! Go to Solution.
The guide in uboot does not consider the spi.
It is for emmc/sdcard.
So you add 4096(0x1000) to offset for spi as I have given you the link, which is printout by build or in the build log.
Suggest you make sure you can sign the emmc/sdcard image.
Hi
You need follow this guide
make SOC=<SoC Name> flash_hdmi_spl_uboot
make SOC=<SoC Name> print_fit_hab
What should I do with this value? Tell me please how I can determine the offsets.
The guide in uboot does not consider the spi.
It is for emmc/sdcard.
So you add 4096(0x1000) to offset for spi as I have given you the link, which is printout by build or in the build log.
Suggest you make sure you can sign the emmc/sdcard image.