Hi everyone,
we are trying to write secondary as well as backup keys in our AM64xx based device to convert it from HS-FS to HS-SE.
I am using the sbl_keywriter addon (SDK 9.0) and the gen_keywr_cert.sh script to generate the keywriter binary as well as the certificate.
When using only secondary keys (SMPK, SMEK) everything seems to work just fine.
When adding backup keys (leading to the dual signed certificate) the keywriter/tisci reports an error (KEYWR_ERR_INTERAL_OP):
Keywriter Debug Response:0x20
I am using the following call to generate the keywriter certificate (from the sbl_keywriter SDK addon):
./gen_keywr_cert.sh -t tifek/ti_fek_public.pem -s keys_devel/smpk.pem --smek keys_devel/smek.key -b keys_devel/bmpk.pem --bmek keys_devel/bmek.key --keyrev 1 --keycnt 2
I also tried the suggested single shot certificate generation calls like:
./gen_keywr_cert.sh -t tifek/ti_fek_public.pem --msv 0xC0FFE --sr-sbl 1 --sr-sysfw 1 --sr-sysfw-ovrd --sr-sbl-ovrd --sr-bcfg 1 --sr-bcfg-ovrd -b keys_devel/bmpk.pem --bmek keys_devel/bmek.key -s keys_devel/smpk.pem --smek keys_devel/smek.key --keycnt 2 --keyrev 1
Or with default keys:
./gen_keywr_cert.sh -t tifek/ti_fek_public.pem --msv 0xC0FFE --sr-sbl 1 --sr-sysfw 1 --sr-sysfw-ovrd --sr-sbl-ovrd --sr-bcfg 1 --sr-bcfg-ovrd -b-def --bmek-def -s-def --smek-def --keycnt 2 --keyrev 1
The error remains the same.
Is there anything missing from the docs and/or the certificate generation script?
We are about to write keys in multiple devices sent to customers and would like to deliver them with backup keys in place.
Can anyone help?
Thanks a lot!
Stefan