Ok, I have signed "flash" (SD card or USB) target of "imx-mkimage" because that process well described in documentation, and it works - ahab_status prints no security events (OTG USB boot through UUU).
But I found that can`t sign "flash_flexspi" target of "imx-mkimage" using the same CSF (for "flash" target):
But offset in CSF correct - they are from imx-mkimage output.
[Header]
Target = AHAB
Version = 1.0
[Install SRK]
# Output of srktool
File = "../SRK_1_2_3_4_table.bin"
# Public key certificate in PEM or DER format
Source = "../crts/SRK1_sha384_secp384r1_v3_ca_crt.der"
# Index of SRK in SRK table
Source index = 0
# Origin of SRK table
Source set = OEM
# Revoked SRKs
Revocations = 0x0
[Install Certificate]
# Public key certificate in PEM or DER format
File = "../crts/SGK1_1_sha384_secp384r1_v3_usr_crt.der"
Permissions = 0x1
[Authenticate Data]
# Output of mkimage
File = "flash.bin"
# Offsets = Container_header Signature_block (printed out by mkimage)
Offsets = 0x400 0x590
How to sign "flash_flexspi" image for iMX8QXP C0?
Solved! Go to Solution.
Please add spi header size
You mean to add to CSF offsets the size of imx-mkimage/iMX8QX/imx-fspi-header.bin (1536 bytes) ?
So if I have CSF:
[Authenticate Data]
# Output of mkimage
File = "flash.bin"
# Offsets = Container_header Signature_block (printed out by mkimage)
Offsets = 0x400 0x590
I should change offsets to 0xA00 0xB90 respectively?
4096
GREAT THANKS, BiyongSUN!
I have exactly the same issue but sorry I don't understand the answer what is exacly the offset you have used ? I don't understand 4096
BR Pierre