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.

[参考译文] PROCESSOR-SDK-AM64X:函数 Bootloader_socGetBootSeqOid 中的幻数

Guru**** 2460850 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1480634/processor-sdk-am64x-magic-number-in-function-bootloader_socgetbootseqoid

器件型号:PROCESSOR-SDK-AM64X

工具与软件:

您好!  

有关引导加载程序中这段代码的信息、我知道它是在认证中搜索 Seq  但这种幻数的来源是什么?

你会在文档中指出我吗?  

代码

/**
 * \brief API to get boot sequence oid
 *
 * \param boot_seq_oid [in] pointer to integer array for populating boot sequence oid
 *
 */
void Bootloader_socGetBootSeqOid(uint8_t* boot_seq_oid){
    uint8_t boot_seq[] = {0x06, 0x09, 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x26, 0x01, 0x22};
    memcpy(boot_seq_oid, boot_seq, sizeof(boot_seq));
}


这里可能有文档

https://software-dl.ti.com/mcu-plus-sdk/esd/AM64X/latest/exports/docs/api_guide_am64x/TOOLS_SECURITY.html#TOOLS_BOOT_SIGNING



但是、我无法识别 Seq OID。 OID 太多、数字似乎与上述代码不匹配。 谢谢。