From: Stephen Warren Date: Thu, 24 May 2012 11:38:35 +0000 (+0000) Subject: tegra: ventana: store environment in eMMC X-Git-Tag: v2012.07-rc1~11^2~189 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=294cd67c8d4a7049dc8d972a52527f605dbdaff7;p=oweals%2Fu-boot.git tegra: ventana: store environment in eMMC 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 Signed-off-by: Tom Warren --- diff --git a/include/configs/ventana.h b/include/configs/ventana.h index 2c7355b197..665076d08e 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