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-AM62A:如何从 Yocto 重新编译 tiboot3.bin

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1237847/processor-sdk-am62a-how-to-re-compile-the-tiboot3-bin-from-yocto

器件型号:PROCESSOR-SDK-AM62A

您好、专家!  

我正在通过访问论坛 https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1205638/faq-am625-how-to-boot-from-r5-u-boot-spl-directly-into-the-linux-kernel-skipping-a53-spl-and-a53-u-boot-falcon-mode、研究 AM62AX 的 Falcon 模式。  
我在 u-boot 中进行了一些更改、然后编译了它。
据我了解、命令(machine=am62axx-evm bitbake u-boot) 也应该编译  tiboot3.bin、但只  编译了 u-boot.img、tispl.bin 和 u-boot-spl.bin。  

您能告诉我如何从 Yocto 重新编译 tiboot3二进制文件吗?

谢谢。此致、
普兰舒  

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

    Pranshu、您好!

    为了生成 tiboot3.bin 文件、您必须 按照此处提到的步骤操作:

    https://software-dl.ti.com/processor-sdk-linux/esd/AM62AX/08_06_00_45/exports/docs/linux/Foundational_Components/U-Boot/UG-General-Info.html#getting-the-u-boot-source-code

    第3.1.1.2节。 构建 U-Boot

    如果您下载了 K3-image-gen 源代码并执行上述步骤、则可以根据您的器件(HS-FS/GP)生成 tiboot3.bin。

    请告诉我这是否有帮助。

    此致、

    苏伦

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

    尊敬的 Suren:

    感谢您的答复。 但该过程是在 SDK 的帮助下构建 tiboot3.bin 的过程。 但我需要 使用 Yocto 重新编译它。

    您能告诉我如何 使用 Yocto 重新编译二进制文件吗?  

    此致
    普兰舒

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

    Pranshu、您好!

    您可能知道、在引擎盖下面构建了两种型号的 U-Boot、一种用于初始阶段、其中仅使用 SPL、在 R5内核上运行(也是 K3图像发生器相关签名的地方)、 tiboot3.bin (和变体)。 另一种变体是 U-Boot 本身、它会使 U-Boot SPL 和 U-Boot 均在 A53内核上正常运行、 tispl.bin u-boot.img

    为了在 Yocto 中使用 U-Boot 构建初始 R5 SPL 映像、您需要了解/使用"multiconfig"[MC]方法并构建  TI-SCI-FW 方法(将自动作为依赖项构建 R5 U-Boot SPL 本身)。

    以下是其对 AM62x 的工作原理、AM62A 的多配置目标名称应该相同:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    # Clean all stages of U-Boot
    $ MACHINE=am62xx-evm bitbake -c clean mc:k3r5-gp:ti-sci-fw mc:k3r5-hs-fs:ti-sci-fw mc:k3r5-hs-se:ti-sci-fw
    $ MACHINE=am62xx-evm bitbake -c clean u-boot
    # Build and deploy tiboot3.bin (initial boot stage running on Cortex-R5)
    $ MACHINE=am62xx-evm bitbake -c deploy mc:k3r5-gp:ti-sci-fw mc:k3r5-hs-fs:ti-sci-fw mc:k3r5-hs-se:ti-sci-fw
    # Build and deploy tispl.bin and u-boot.img (next boot stages running on Cortex-A53)
    # Note: only use '-f' option when you really want to force a build
    $ MACHINE=am62xx-evm bitbake [-f] -c deploy u-boot
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    此致、Andreas