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.

[参考译文] AM62P:我可以登录构建映像吗?

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1504691/am62p-can-i-signed-on-a-build-image

部件号:AM62P

工具/软件:

大家好、团队
我想知道我是否可以在上签名

MCU_R5_image 由他人构建?

感谢您的支持。

此致、Kong XiangXu

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

    您好:

    以下脚本用于对应用程序映像进行签名:

    https://github.com/TexasInstruments/mcupsdk-core-k3/blob/k3_next/tools/boot/signing/appimage_x509_cert_gen.py#L1-L1

    它可用作构建过程之外的独立脚本、用于对生成的应用程序二进制文件进行签名。

    此致、

    Prashant

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

    # arguments definition
    my_parser = argparse.ArgumentParser(description="Generates a x509 certificate for an application binary to boot it in HS device")
    
    my_parser.add_argument('--bin',        type=str, help='Bin file that needs to be signed')
    my_parser.add_argument('--key',        type=str, help='File with signing key inside it')
    my_parser.add_argument('--enckey',     type=str, help='File with encryption key inside it')
    my_parser.add_argument('--cert',       type=str, help='Certificate file name (optional, will use a default name otherwise)')
    my_parser.add_argument('--output',     type=str, help='Output file name (concatenated cert+bin)')
    my_parser.add_argument('--core',       type=str, help='Core on which the binary is meant to be loaded. Optional')
    my_parser.add_argument('--enc',        type=str, help='If the binary need to be encrypted or not [y/n]')
    my_parser.add_argument('--loadaddr',   type=str, help='Target load address of the binary in hex. Default to 0x70000000')
    my_parser.add_argument('--authtype',   type=str, help='Authentication type. [0/1/2]. 0 - Move to destination address specified after authentication, 1 - In place authentication, 2 - Move to the certificate start after authentication. Default is 1')
    my_parser.add_argument('--keyversion', type=str, help='App signing key version. [1.5/2.2]. 1.5 - RSASSA PKCS v1.5 schem

    你能给我一个例子,如何填充 这些 Argus 吗?

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

    任何示例的 makefile 都可以用于签名命令:

    github.com/.../makefile