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.

[FAQ] [参考译文] 【常见问题解答】AM625:使用 Yocto 为 AM62 器件构建支持 DFU 的 U-boot

Guru**** 2899250 points

Other Parts Discussed in Thread: AM62P, AM62L

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1646627/faq-am625-build-dfu-enabled-u-boot-with-yocto-for-am62-devices

器件型号: AM625
主题中讨论的其他器件: AM62PAM62L

概述

本文介绍了如何使用 Yocto 在 AM62X、AM62A AM62P、AM62L 和 AM64L 等 TI-K3 器件上构建和引导启用 DFU 的 U-boot 映像

USB-DFU(设备固件升级)是 USB-IF 定义的一种标准机制、用于直接通过 USB 电缆升级、更新或修复设备的固件。

USB-DFU 只能用于通过 USB 连接和主机 PC 来刷写器件。 这对于工厂配置、现场恢复期间或在没有其他引导介质(例如 SD 卡)可用的情况下的定制电路板特别有用。

根据 SoC 和 SDK 版本、 DFU 可能已在默认 U-Boot defconfig 中启用 、或者  必须添加其他 DFU 配置片段。 

对于需要 DFU 支持的平台、 必须添加 am62x_r5_usbdfu.config 片段以及默认的 R5 SPL defconfig 。 

必要条件

要求

  1. AM62P/AM62A/AM62X/AM62L/AM64X EVM
  2. 具有必要 Yocto SDK 设置的主机 Linux PC。

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

    AM62A

      

    SDK 10.01/SDK 11.01 

     

       按照以下 指南中所述设置 Yocto 环境

    10.01- https://software-dl.ti.com/processor-sdk-linux/esd/AM62AX/10_01_00/exports/docs/linux/Overview_Building_the_SDK.html

    11.01- https://software-dl.ti.com/processor-sdk-linux/esd/AM62AX/11_01_07_05/exports/docs/linux/Overview_Building_the_SDK.html

    更新 conf/local.conf  

    将以下代码添加到 local.conf 中以启用 R5 DFU 配置片段。

    # U-Boot R5 的配置和片段  
    uBoot_config_s片段:am62axx-evm-k3r5 =“am62x_r5_usbdfu.config“
     

    注意:AM62X R5 配置片段用于 AM62A

      

    从 Yocto 重建 U-Boot

    #清理 U-Boot  

    MACHINE=am62axx-EVM 位 bake  MC:k3r5:u-boot-ti-staging -c cleanstate  
    cleanstate.am62axx-EVM 位 bake u-boot-ti-staging -c cleanstate MACHINE=  
     

    #构建 U-Boot  

    Machine=am62axx-EVM 位烘烤 mc:k3r5:u-boot-ti-staging  
    usc.am62axx-EVM 位 bake u-boot-ti-staging MACHINE=

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

    AM62P

    对于 AM62P、SDK 11 和 SDK 12 的步骤略有不同。  

     

    SDK 11.02 

       按照以下指南中所述设置 Yocto 环境

    11.02- https://software-dl.ti.com/processor-sdk-linux/esd/AM62PX/11_02_08_02/exports/docs/linux/Overview_Building_the_SDK.html

    更新 conf/local.conf  

    将以下代码添加到 local.conf 中以启用 R5 DFU 配置片段。

    # U-Boot R5 的配置和片段 
    uBoot_config_s片段:am62pxx-evm-k3r5 =“am62x_r5_usbdfu.config

    注意:AM62X R5 配置片段用于 AM62P

      

    SDK 12.00

       按照以下指南中所述设置 Yocto 环境

    12.00– https://software-dl.ti.com/processor-sdk-linux/esd/AM62PX/12_00_00_07_04/exports/docs/linux/Overview_Building_the_SDK.html

    更新 conf/local.conf  

    将以下代码添加到 local.conf 中以启用 R5 DFU 配置片段。

    # R5 的 U-Boot 配置 
    UBOOT_CONFIG:am62pxx-evm-k3r5 =“usbdfu“

     

    从 Yocto 重建 U-Boot

    #清理 U-Boot  

    MACHINE=am62pxx-EVM 位 bake  MC:k3r5:u-boot-ti-staging -c cleanstate  
    cleanstate.am62pxx-EVM 位 bake u-boot-ti-staging -c cleanstate MACHINE=  

    #构建 U-Boot  

    Machine=am62pxx-EVM 位烘烤 mc:k3r5:u-boot-ti-staging  
    usc.am62pxx-EVM 位 bake u-boot-ti-staging MACHINE=

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

     

    AM62X

    对于 AM62X、SDK 11 和 SDK 12 的步骤也各不相同。  

     

    SDK 11.02

       按照以下指南中所述设置 Yocto 环境

    11.02- https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/11_02_08_02/exports/docs/linux/Overview_Building_the_SDK.html

    更新 conf/local.conf  

    将以下代码添加到 local.conf 中以启用 R5 DFU 配置片段。

    # U-Boot R5 的配置和片段 
    uBoot_config_s片段:am62xx-evm-k3r5 =“am62x_r5_usbdfu.config“

    注意:AM62X R5 配置片段用于 AM62P

     

    SDK 12.00

       按照以下指南中所述设置 Yocto 环境

    12.00– software-dl.ti.com/.../Overview_Building_the_SDK.html

    更新 conf/local.conf  

    将以下代码添加到 local.conf 中以启用 R5 DFU 配置片段。

    # U-Boot R5 的配置和片段 
    UBOOT_MACHINE:am62xx-evm-k3r5 =“am62x_evm_r5_defconfig“ 
    uBoot_config_s片段:am62xx-evm-k3r5 =“am62x_r5_usbdfu.config“

     

    从 Yocto 重建 U-Boot

    #清理 U-Boot  

    MACHINE=am62xx-EVM 位 bake  mc:k3r5:u-boot-ti-staging -c cleanstate  
    cleanstate.am62xx-EVM 位 bake u-boot-ti-staging -c cleanstate MACHINE=  
     

    #构建 U-Boot  

    Machine=am62xx-EVM 位烘烤 mc:k3r5:u-boot-ti-staging  
    MACHINE= am62xx-EVM 位 bake u-boot-ti-staging

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

      

    AM62L/AM64X

    对于 AM62L 和 AM64X、默认 U-Boot 会在启用 DFU 的情况下构建。

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

      

    构建工件

    可以在以下位置找到构建的构件

    R5 SPL:build/deploy-ti/images//tiboot3.bin 
    A53 SPL:build/deploy-ti/images//tispl.bin 
    u-boot 正确:build/deploy-ti/images//u-boot.img