BSP 版本: PD18.1.0

am57xx中的u-boot环境默认保存位置是sdcard的u-boot.env文件, 如果要把环境保存在emmc中, 需要修改u-boot的源码

include/configs/am572x_phycore_rdk.h
/* Store environment on SD card by default
 *
 * To store the u-boot environment in eMMC instead of
 * SD, uncomment the CONFIG_ENV_IS_IN_MMC line below
 * and comment the CONFIG_ENV_IS_IN_FAT line instead
 */
#define CONFIG_ENV_IS_IN_MMC
/* #define CONFIG_ENV_IS_IN_FAT */

按照源码说明, 取消注释CONFIG_ENV_IS_IN_MMC, 然后注释CONFIG_ENV_IS_IN_FAT.

该源码的注释不能使用'//'符号, 否则会编译出错.

  • No labels