I am working with imx1176 evm board. for secure boot, I need to create signed flashloader.
as input, I took flashloader.srec file from "C:\nxp\MCUX_Provi_v3.1\bin\tools\elftosb\win\flashloader.srec". Tool does not work with srec file and its generate empty bin file as output.
Command used : "elftosb.exe -f imx -V -c imx-flexspinor-flashloader-signed.bd -o new.bin flashloader.srec"
So, I have converted srec file to bin format.
I have created BD command file and added option as below
options {
flags = 0x08;
startAddress = 0x20250000;
ivtOffset = 0x0000;
initialLoadSize = 0x2000;
}
Then I have run command as "Command used : "elftosb.exe -f imx -V -c imx-flexspinor-flashloader-signed.bd -o new.bin flashloader_test.bin"
this time its worked partially.
Sections are created but fails with cst tool chain
Issue listed as below:
Authenticate data
Invalid Block arguments, Blocks start offset and length together exceed file size in command AuthenticateData
error: failed to run code signing tool.
Please, can anyone suggest to make it work?