- uboot config文件新增配置项,在以下对应文件
- milkv-duo: build/boards/cv180x/cv1800b_milkv_duo_sd/cv1800b_milkv_duo_sd_defconfig
- milkv-duo256m: build/boards/cv181x/cv1812cp_milkv_duo256m_sd/u-boot/cvitek_cv1812cp_milkv_duo256m_sd_defconfig
- milkv-duos: build/boards/cv181x/cv1813h_milkv_duos_sd/u-boot/cvitek_cv1813h_milkv_duos_sd_defconfig
- 确认没有
CONFIG_ENV_IS_NOWHERE=y
选项
- 新增:
CONFIG_ENV_IS_IN_FAT=y
CONFIG_ENV_FAT_INTERFACE="mmc"
CONFIG_ENV_FAT_DEVICE_AND_PART="0"
CONFIG_ENV_FAT_FILE="uboot.env"
- 修改 u-boot-2021.10/include/cvipart.h 文件,注释文件中的5-7行
// #ifndef CONFIG_ENV_IS_NOWHERE
// #define CONFIG_ENV_IS_NOWHERE
// #endif
- 重新编译
- 进入u-boot,运行setenv修改对应的环境变量后,运行saveenv,会保存至SD卡第一个分区uboot.env文件
1 Like