public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] mx51evk: savenv or env save command does not work
@ 2010-11-16  8:41 Jason Liu
  2010-11-16 17:28 ` Stefano Babic
  0 siblings, 1 reply; 12+ messages in thread
From: Jason Liu @ 2010-11-16  8:41 UTC (permalink / raw)
  To: u-boot

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 |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h
index f98438d..4af492c 100644
--- a/include/configs/mx51evk.h
+++ b/include/configs/mx51evk.h
@@ -216,8 +216,9 @@
  */
 #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        (2 * 64 * 1024)
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 0
 
 #endif
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-11-17 21:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-16  8:41 [U-Boot] [PATCH 1/1] mx51evk: savenv or env save command does not work Jason Liu
2010-11-16 17:28 ` Stefano Babic
2010-11-17  1:44   ` Jason Liu
2010-11-17  7:03     ` Wolfgang Denk
2010-11-17  7:29       ` Jason Liu
2010-11-17  7:42         ` Wolfgang Denk
2010-11-17 21:28           ` Scott Wood
2010-11-17 21:50             ` Wolfgang Denk
2010-11-17  7:54         ` Stefano Babic
2010-11-17  8:03           ` Jason Liu
2010-11-17 13:00             ` Wolfgang Denk
2010-11-17  7:44     ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox