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.
工具与软件:
您好!
我正在执行以下链接中的 eMMC 刷写步骤。
这些步骤工作正常、能够在 SK EVM 上刷写 eMMC。
我的问题是、是否有办法自动执行要在 uboot 命令提示符下执行的步骤?
/* Forum said that this command can be built into uboot. Is there any reference for this*/ setenv dfu_alt_info ${dfu_alt_info_emmc} dfu 0 mmc 0 /* Give ROM access to boot partition. To be executed only one time */ mmc partconf 0 1 1 1 mmc bootbus 0 2 0 0
如果可以、请告知我们。
此致、
杰伊
您好、Jay、
请参阅以下指南、其中讨论了基于 DFU 的闪存写入器工具、可自动执行闪存过程
此致、
普拉桑特
尊敬的 Prashant:
感谢您的答复。
我已检查链接、可以使用 uEnv.txt 文件自动执行"Dfu 0 mmc0"和其他用户命令。 但我没有找到任何方法来实现以下两个命令的自动化。
=> mmc partconf 0 1 1 1 => mmc bootbus 0 2 0 0
如果您对此有任何疑问、请告知我们。
此致、
杰伊
您好、Jay、
如果您按原样使用该工具、您可以使这些命令成为 uEnv.txt 模板的一部分
diff --git a/tools/DFU_flash/src/constants.py b/tools/DFU_flash/src/constants.py index 90980fb..e6dddb5 100644 --- a/tools/DFU_flash/src/constants.py +++ b/tools/DFU_flash/src/constants.py @@ -5,7 +5,7 @@ from pathlib import Path # Template for the U-Boot Environment File UENV_TEMPLATE = \ """ -user_commands={} +user_commands=mmc partconf 0 1 1 1;mmc bootbus 0 2 0 0;{} """.lstrip() DFU_SOCID_REG_EXP = r'Found DFU:.*path="(.*)".*name="SocId"'
此致、
普拉桑特
您好、Jay、
添加 DFU 实用程序,我将使用该实用程序作为参考。 您对此错误有任何想法吗?
eMMC 分区和闪存应单独完成。 比如、在第一次 POR 时、您要对 eMMC 进行分区、然后重置板。 在第二个 POR 上、您将执行刷写过程。
我进行上述更改以提供以下文件名来引导二进制文件 tiboot3.bin.raw、tispl.bin.raw 和 u-boot.img.raw。 我更改了文件名以使其与"dfu_alt_info_emmc" u-boot 变量兼容、如下所示:
您不必使其兼容、因此无需进行这些更改。 该工具本身能够从要刷写的映像创建正确的 dfu_alt_info 变量。
您需要进行的唯一更改就是更改 UENV_TEMPLATE、正如我建议向 uEnv.txt 添加自定义命令时那样。
此致、
普拉桑特