一般uboot分区中会有一个环境变量的分区
dev: size erasesize name
mtd0: 00200000 00020000 "NAND (RO) U-Boot Image"
mtd1: 00200000 00020000 "U-Boot Env"
mtd2: 01400000 00020000 "NAND (RW) Kernel Image"
mtd3: 3e800000 00020000 "NAND (RW) App Image
修改你的uboot配置文件include/configs/xxx.h,找到
#define CONFIG_ENV_IS_IN_NAND 1#define CONFIG_ENV_OFFSET (your addr)
#define CONFIG_ENV_SIZE