cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP257x-EV1 application OpenAMP_TTY_echo Signature fail

ofer-bahar
Associate II
Hello 
 
Continue to me development on the STM32MP257xEV1, previous failure with the Python crypto packages 
 
the project: OpenAMP_TTY_echo is loaded correctly, built configuration _ns_sign is completed OK, also looks like the .bin file is generated 
 
oferbahar_1-1735652574824.png

 

 
setting the Run configuration with the correct IP address, 
conneting to the board 
run => downloading the bin to the target is progressing till the end
upon completion of the download, the board is powered on - see this in the console
BUT -
remoteproc remoteproc0: powering up m33
remoteproc remoteproc0: Image is corrupted (bad magic)
remoteproc remoteproc0: Boot failed: -22
 
looks like the signing function has a bad key 
 
oferbahar_0-1735652488612.png

 

 
Can it be the python packages versions => pyelftools and pycryptodomex ?
 
 
1 REPLY 1
ofer-bahar
Associate II

Tried to run the _stripped.elf signature externally in a command line using the delivered private RSA key in the .pem file, results in the same 

which looks to me that maybe the python signature algorithm is not suitable to the one that the Linux firmware is expecting to get => again its the python scripts 

Attached are the _stripped.elf , the .pem file and the output binary file (all in .zip)

the command line I run is exactly as in the post build 

python sign_rproc_fw.py --in OpenAMP_TTY_echo_CM33_NonSecure_stripped.elf --out OpenAMP_TTY_echo_CM33_NonSecure_sign.bin --key ../keys/default.pem --plat-tlv BOOTADDR 0x80100000

oferbahar_0-1735659917003.png

where can I find documentation for the exact signature algorithm and working example for the attached file & key?