]> git.sur5r.net Git - u-boot/commitdiff
Fix environment configuration for eNET board
authorGraeme Russ <graeme.russ@gmail.com>
Sun, 23 Aug 2009 02:59:48 +0000 (12:59 +1000)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:09 +0000 (09:04 -0500)
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 <graeme.russ@gmail.com>
include/configs/eNET.h

index dde4c8321304e32fd126acbea489bbc8fe6b96ae..435671423238dc271683b1e93fc59eee6e773ed5 100644 (file)
   * 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
 
 
  /*-----------------------------------------------------------------------