From: Graeme Russ Date: Sun, 23 Aug 2009 12:59:48 +1000 Subject: [U-Boot] [PATCH 04/17] Fix environment configuration for eNET board In-Reply-To: <1250996401-13642-4-git-send-email-graeme.russ@gmail.com> References: <1250996401-13642-1-git-send-email-graeme.russ@gmail.com> <1250996401-13642-2-git-send-email-graeme.russ@gmail.com> <1250996401-13642-3-git-send-email-graeme.russ@gmail.com> <1250996401-13642-4-git-send-email-graeme.russ@gmail.com> Message-ID: <1250996401-13642-5-git-send-email-graeme.russ@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The current configuration of the Environment has the redundant copy of the environment in the Boot Flash - This was never the intent. The Environment should instead be in the first two sectors of the first Strata Flash Signed-off-by: Graeme Russ --- include/configs/eNET.h | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/configs/eNET.h b/include/configs/eNET.h index dde4c83..4356714 100644 --- a/include/configs/eNET.h +++ b/include/configs/eNET.h @@ -188,14 +188,13 @@ * Environment configuration */ #define CONFIG_ENV_IS_IN_FLASH 1 -#define CONFIG_ENV_OFFSET 0x20000 /* Offset of Environment Sector */ -#define CONFIG_ENV_SIZE 0x08000 /* Total Size of Environment Sector */ #define CONFIG_ENV_SECT_SIZE 0x20000 /* Total Size of Environment Sector */ -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE_1 + \ - CONFIG_ENV_OFFSET) -#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + \ +#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE +#define CONFIG_ENV_ADDR CONFIG_SYS_FLASH_BASE_1 +/* Redundant Copy */ +#define CONFIG_ENV_ADDR_REDUND (CONFIG_SYS_FLASH_BASE_1 + \ CONFIG_ENV_SECT_SIZE) -#define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE) +#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SECT_SIZE /*----------------------------------------------------------------------- -- 1.6.0.2.GIT