]> git.sur5r.net Git - u-boot/commitdiff
mx51evk: savenv or env save command does not work
authorJason Liu <r64343@freescale.com>
Wed, 17 Nov 2010 08:01:18 +0000 (16:01 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 21 Nov 2010 17:24:10 +0000 (18:24 +0100)
fix saveenv or env save command not work on mx51evk board.
with this patch, we can use savenv or env save to
store enviroments to mmc card slot 0

Signed-off-by: Jason Liu <r64343@freescale.com>
include/configs/mx51evk.h

index f98438d6373215f944cb829a81f009f117119946..b4e57387af0929ed524db5b0e0f14888d5bbaa18 100644 (file)
  */
 #define CONFIG_SYS_NO_FLASH
 
-#define CONFIG_ENV_SECT_SIZE    (128 * 1024)
-#define CONFIG_ENV_SIZE                CONFIG_ENV_SECT_SIZE
-#define CONFIG_ENV_IS_NOWHERE
+#define CONFIG_ENV_OFFSET      (6 * 64 * 1024)
+#define CONFIG_ENV_SIZE        (8 * 1024)
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 0
 
 #endif