Hi,
I want to sign my image using elftosb.exe,but it only show following information,and there is no file named bootloader_signed.bin generated.
> .\elftosb.exe -f imx -V -c imx-sdram-bootloader-signed.bd -o bootloader_signed.bin evkbimxrt1050_flashloader.axf
Section: 0x14
Section: 0x15
Section: 0x16
Section: 0x18
Section: 0x19
Section: 0x1a
I changed evkbimxrt1050_flashloader.axf to evkbimxrt1050_flashloader.bin,the .bin file was generated by utility provided by MCUXpresso IDE. I got following message:
> .\elftosb.exe -f imx -V -c imx-sdram-bootloader-signed.bd -o bootloader_signed.bin evkbimxrt1050_flashloader.bin
Section: 0x14
Section: 0x15
Section: 0x16
Section: 0x18
Section: 0x19
Section: 0x1a
Install SRK
Install CSFK
Authenticate CSF
Install key
Authenticate data
Invalid Block arguments, Blocks start offset and length together exceed file size in command AuthenticateData
error: failed to run code signing tool
it sems that the signing process stoped at Authenticate data phase.Checking the input.csf generated by elftosb,I found the following statements:
[Authenticate Data]
Verification Index = 2
Engine = DCP
Engine Configuration = 0
Blocks = 0x60001000 0x1000 0x20 "temp.bin",\
0x60001020 0x1020 0x20 "temp.bin",\
0x60001040 0x1040 0x420 "temp.bin",\
0x6e6f 0xa0006e6f 0x20990 "temp.bin"
I don't know from where the address 0x6e6f and offset 0xa0006e6f in the last line of input.csf come.
I guess there must be some wrong settings in my customed evkbimxrt1050_flashloader project,but I don't know how and where to modify.
Any suggestion is appreciated .
Best regards.
ps:my evkbimxrt1050_flashloader project can run on RT1052 normally.The axf and BD file i used are attached
Hi @longxing ,
For the signed operation, please refer to our application note AN12681:
You also can refer to my post:
https://community.nxp.com/docs/DOC-344919
The SPT tool also can help you directly:
Wish it helps you!
If you still have questions about it, please use your company email to create the account and the question post, then your case will be higher than the 3rd part email case.
Best Regards,
Kerry