uboot无法保存环境变量的问题 error:end address not on sector boundary

当输入saveenv命令时,出现错误:

MINI2440 => saveenv

Saving Environment to Flash...
Error: end address not on sector boundary
Error: end address not on sector boundary

可以修改include/configs/mini2440.h

在最后面有这样两句话:

/* 16k Total Size of Environment Sector */
#define CONFIG_ENV_SIZE  0x4000

这里定义了环境变量的空间大小,改成

/* 64k Total Size of Environment Sector */
#define CONFIG_ENV_SIZE  0x10000

改成一整个sector就可以了。

原文地址:https://www.cnblogs.com/javawebsoa/p/3030633.html