[U-Boot] [PATCH 3/7] tegra: ventana: store environment in eMMC

Stephen Warren swarren at wwwdotorg.org
Thu May 24 23:38:35 CEST 2012


From: Stephen Warren <swarren at nvidia.com>

Store the environment in eMMC, at the end of the second boot sector.
This should not conflict with any other eMMC usage: U-Boot is stored
well below this location, and the kernel only uses the general area
of the eMMC once booted, not the boot sectors.

Signed-off-by: Stephen Warren <swarren at nvidia.com>
---
 include/configs/ventana.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/configs/ventana.h b/include/configs/ventana.h
index 2c7355b..665076d 100644
--- a/include/configs/ventana.h
+++ b/include/configs/ventana.h
@@ -57,8 +57,10 @@
 #define CONFIG_CMD_EXT2
 #define CONFIG_CMD_FAT
 
-/* Environment not stored */
-#define CONFIG_ENV_IS_NOWHERE
+/* Environment in eMMC, at the end of 2nd "boot sector" */
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_ENV_OFFSET ((2 * 1024 * 1024) - CONFIG_ENV_SIZE)
+#define CONFIG_SYS_MMC_ENV_DEV 0
 
 /* USB Host support */
 #define CONFIG_USB_EHCI
-- 
1.7.0.4



More information about the U-Boot mailing list