Hi,
I am working on the task to enable secure boot on imx7 processors.
Based on the application note i have generated SRK keys and Bootloader. Now i am trying to attach the key with bootloader. for that, i have genrated csf file with below data. But while generating binary data for CSF file, i am receiving the below error.
*** Error in './cst' : realloc(): invalid pointer: 0x0000000008020e0
Content of My CSF file is :
-------------------------------------------------------------------------------
[Header]
Version = 4.2
Hash Algorithm = sha256
Engine = ANY
Engine Configuration = 0
Certificate Format = X509
Signature Format = CMS
[Install SRK]
File = “../crts/SRK_1_2_3_4_table.bin”
# Index of the key location in the SRK table to be installed
Source index = 0
[Install CSFK]
# Key used to authenticate the CSF data
File = “../crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem”
[Authenticate CSF]
[Install Key]
# Key slot index used to authenticate the key to be installed
Verification index = 0
# Target key slot in HAB key store where key will be installed
Target Index = 2
# Key to install
File= ”../crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem”
[Authenticate Data]
# Key slot index used to authenticate the image data
Verification index = 2
# Address Offset Length Data File Path
Blocks = 0x877ff400 0x000 0x8bc00 “u-boot-dtb.imx”, \
0x00910000 0x2C 0x1C4 "u-boot-dtb.imx"
----------------------------------------------------------------------------------------------------------------------------------
please let me know what might be the issue and how to rectify the same.
Hi Raguram
also additional documents were provided in service request 00262206.
Best regards
igor
Please verify below things at your end:
1. The files SRK_1_2_3_4_table.bin, CSF1_1_sha256_2048_65537_v3_usr_crt.pem, IMG1_1_sha256_2048_65537_v3_usr_crt.pem, and u-boot-dtb.imx are on the correct relative path from where you are executing your cst application?
2. If you have copied the CSF file from the document have you change the "(double quotes) to readable to linux?
Regards,
Karan Gajjar