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.

[参考译文] am3352:在 U-Boot 中保存环境变量

Guru**** 2582405 points
Other Parts Discussed in Thread: AM3352

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/633012/am3352-saving-environment-variable-in-u-boot

器件型号:AM3352

大家好、

      我们设计了一款具有1 GB DDR3和512MB nand 闪存的 AM3352处理器的定制电路板。

       我们已成功在 nand 闪存中移植 U-Boot。 但我们无法保存环境变量。 如何保存在环境变量中所做的更改(例如.e、nand booting )。

此致、

Avinash N

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

    只需在 u-boot 中的 include/configs/AM335x_evm.h 中添加它们:
    #define CONFIG_Extra ENV_SETTINGS \
    DEFAULT_LINUX_BOOT_ENV \
    DEFAULT_MMC_TI_args \
    DEFAULT_FIT TI_args \
    "bootpart=0:2\0"\
    "bootdir=/boot\0"\
    "BootFile=zImage\0"\
    "Fdtfile=undefined\0"\
    "console=ttyO0、115200n8\0"\

    也可以使用 saveenv 命令并从 u-boot 用户空间中保存它们。

    此致、
    Yordan