This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM625SIP:如何使用 custMpk 密钥为 Zephyr.elf(适用于 M4)签名

Guru**** 2568565 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1554126/am625sip-how-to-sign-zephyr-elf-for-m4-with-custmpk-key

器件型号:AM625SIP


工具/软件:

我想使用 custMpk 密钥为我的 Zephyr.elf 应用程序(适用于 M4 内核)签名。 我使用了 u-boot 源树中的脚本: k3_gen_x509_cert.sh

k3_gen_x509_cert.sh -c 0 -b Zephyr.elf -o Zephyr.signed -k /arch/arm/mach-k3/keys/custMpk.key

但是、当我尝试引导时、会看到“Authentication Failed!“(身份验证失败!):

=> setenv rproc_id 0;setenv rproc_fw /lib/firmware/zephyr.signed;如果 test -e mmc 1:2 ${rproc_fw};则运行 rproc_load_and_boot_one;fi
这种情况在任何时候都不会发生
403881 字节、在 42 ms (9.2 MiB/s) 内读取
TI_sci system-controller@44043000:消息未确认
身份验证失败!
###错误###请重置主板###

我检查了 x509 标头并将其与 tiboot3.bin 标头进行了比较、结果看起来可以接受。

您能指导我做一个正确的分步说明吗?