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.

[参考译文] AM62A7:无法从 eMMC 引导

Guru**** 2422790 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1544092/am62a7-can-not-boot-from-emmc

器件型号:AM62A7


工具/软件:

尊敬的 TI 专家:

我们使用 AM62A SoC 芯片。 根据此 TI 参考链接中所述的方法刷写 eMMC 后:
https://dev.ti.com/tirex/explore/node?node=A__AQkwMvG9F0GKWPdIDOFokg__AM62A-ACADEMY__WeZ9SsL__LATEST
噪声量  无法从 eMMC 引导、且绝对没有控制台输出。

关键详细信息:

  1. 这是  首次编程  eMMC–刷写之前存储完全为空。

  2. 我们确认三个引导加载程序文件(,和)tiboot3.bin tispl.bin u-boot.img已成功刷写到 /dev/mmcblk0boot0 分区中。

  3. 请确认是否需要执行任何其他步骤  以启用正常 eMMC 引导功能。

感谢您的帮助!

此致、
Kangbai Li

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

    尊敬的 Kangbai Li:

    您能否确认为 eMMC 引导设置了引导开关、如下所示:  
    https://dev.ti.com/tirex/explore/node?node=A__AdiJTo4R4V5RmRA6eK4Ocg__AM62-ACADEMY__uiYMDcq__LATEST

    此致、
    Johnson

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

    尊敬的 Johnson:

    我已经确认引导模式设置为 eMMC。

    此致、
    Kangbai Li

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

    嗨、Kangbai、

    我正在邀请一位专家。 请给他一些时间来找你。

    此致、
    Johnson

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

    您好:

    请确认您是否也执行了以下步骤

    dev.ti.com/.../dev-flash-linux-emmc.html

    谢谢!

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

    您好、

    是的、我们根据链接中的方法烧录 eMMC。 下面是我们编写的脚本

    e2e.ti.com/.../2210.emmc.txt

    此致、
    Kangbai Li

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

    您好:

    上一链接引用了该部分

    更改引导模式和 U-Boot Env

    您是否已完成本节中列出的步骤?

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

    您好、

    是的、我省略了这一步。 现在、电路板可以从 eMMC 正常引导。 但是、我们现在还有一个问题:在“更改引导模式和 U-Boot Env“步骤中、我们需要在 UART 控制台中输入命令。 我们希望避免在 UART 控制台中进行手动输入、因为我们有大量电路板需要 eMMC 编程、而这种方法的效率太低。 我们希望在插入 SD 卡后、系统可以运行我们的自定义脚本来对 eMMC 进行编程并更改引导模式。 然后、移除 SD 卡后、该电路板可以从 eMMC 正常引导。 是否有办法实现这一目标?

    此致

    Kangbai Li

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

    您好:

    “mmc partconf“和“mmc bootbus“命令可以保存在 SD 卡 FAT 分区中的 uEnv.txt 文件中。 该文件由 A53 U-Boot 加载、允许在引导 Linux 之前运行某些命令。

    [11:26:59.257] root@am62xx-lp-evm:/run/media/boot-mmcblk1p1# cat uEnv.txt
    [11:27:01.512] # This uEnv.txt file can contain additional environment settings that you
    [11:27:01.531] # want to set in U-Boot at boot time.  This can be simple variables such
    [11:27:01.536] # as the serverip or custom variables.  The format of this file is:
    [11:27:01.540] #    variable=value
    [11:27:01.545] # NOTE: This file will be evaluated after the bootcmd is run and the
    [11:27:01.549] #       bootcmd must be set to load this file if it exists (this is the
    [11:27:01.553] #       default on all newer U-Boot images.  This also means that some
    [11:27:01.563] #       variables such as bootdelay cannot be changed by this file since
    [11:27:01.566] #       it is not evaluated until the bootcmd is run.
    
    [11:27:01.569] uenvcmd=mmc partconf 0 1 1 1;mmc bootbus 0 2 0 0

    必须直接在 A53 U-Boot 的 U-Boot 源代码中修改环境变量“mmcdev"和“和“bootpart",“,以便、以便从 eMMC 自动引导 Linux。

    diff --git a/board/ti/am62ax/am62ax.env b/board/ti/am62ax/am62ax.env
    index f36ac17593f..ea0d81b11fe 100644
    --- a/board/ti/am62ax/am62ax.env
    +++ b/board/ti/am62ax/am62ax.env
    @@ -14,8 +14,8 @@ run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
     
     boot_targets=mmc1 mmc0 usb pxe dhcp
     boot=mmc
    -mmcdev=1
    -bootpart=1:2
    +mmcdev=0
    +bootpart=0:1
     bootdir=/boot
     rd_spec=-
     rproc_fw_binaries= 0 /lib/firmware/am62a-mcu-r5f0_0-fw 2 /lib/firmware/am62a-c71_0-fw