Hello
I am trying to perform secure boot on MX6UL board, As per NXP documents , I am able to generate the Key infrastructure properly and able to create a csf.txt file without any errors.
But While running the command ./cst --o csf.bin --i csf.txt from cst folder/cst/linux64/bin
I am getting the error
realloc(): invalid pointer
Aborted (core dumped)
Help me out how to proceed further and how to use the IVT tool and further steps
Contents of csf.txt file
[Header]
Version = 4.2
Hash Algorithm = SHA256
Engine = CAAM
Engine Configuration = 0
Certificate Format = X509
Signature Format = CMS
[Install SRK]
File=/home/vasu/cst/crts/SRK_1_2_3_4_table.bin
Source index = 0
Hash Algorithm = SHA256
[Install CSFK]
File = "../crts/CSF1_1_sha256_2048_65537_v3_usr_crt.pem"
[Authenticate CSF]
[Install Key]
Verification index = 0
Target Index = 2
File = "../crts/IMG1_1_sha256_2048_65537_v3_usr_crt.pem"
[Authenticate Data]
Blocks = 0x877fb000 0x000 0x48000 "/home/vasu/Uboot/u-boot-tagged.imx"
Hello @sreenivasu
Please refer to this thread, it seems to be the same issue:
https://community.nxp.com/t5/i-MX-Processors/Signing-error-in-i-MX8M-Mini-FIT-Image/m-p/1076430
Best regards.
Salas.