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.

[参考译文] AM625:AM62x EVM–需要澄清 uEnv.txt / uboot.env 的加载地址 FW_printenv

Guru**** 2486625 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1555902/am625-am62x-evm-need-clarification-on-uenv-txt-uboot-env-load-address-for-fw_printenv

器件型号:AM625


工具/软件:

说明:

我正在使用 AM62x-EVM 电路板上并面临环境变量访问方面的问题。
我的问题是fw_printenv无法正常工作、我怀疑这可能是由于 U-Boot 环境偏移/地址配置不正确所致。  

对于您的引用,我提供了日志: root@am62xx-EVM:~# fw_printenv
无法读取环境、使用默认值
无法从文件读取默认环境

我想确认一下 uEnv.txtuboot.env加载地址(或)的位置 以便fw_printenv正确配置。

硬件/软件详细信息:

  • 引导加载程序 (U-Boot): 2025.01.

  • Linux 内核: 6.6.58

  • 存储介质:  eMMC

已尝试的步骤:

  1. 使用 Linux 从 eMMC 启动电路板

  2. 已验证引导日志显示使用 U-Boot 2025.01 成功引导。

  3. 已尝试运行fw_printenv、但无法读取环境。

  4. 我怀疑该fw_env.config文件未指向正确的环境地址。

问题:

  1. 地址/偏移是什么 uEnv.txt / uboot.env 存储在 AM62x-EVM 上(用于 eMMC 和 SD 引导盒)?

  2. 应如何fw_env.config正确配置文件以fw_printenv在此平台上进行访问?

    谢谢。  

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

    您好、Mohsen、

    我相信 fw_printenv 会根据 fw_env.config 中的配置来访问存储在任何块器件中的 env。 但是、AM62x Processor SDK U-Boot 不会将 env 存储在任何块器件中。 ENV 内置在 U-Boot 二进制文件中并加载到 DDR 中、以便 U-Boot 和内核使用。