public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] QUAD100HD: Allow the environment to be put into flash.
@ 2008-05-14 11:39 Gary Jennejohn
  2008-05-15  6:37 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Jennejohn @ 2008-05-14 11:39 UTC (permalink / raw)
  To: u-boot


After moving TEXT_BASE the value for CFG_ENV_ADDR was incorrect.  Also
use a redundant environment.

Signed-off-by: Gary Jennejohn <garyj@denx.de>
---
 include/configs/quad100hd.h |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/include/configs/quad100hd.h b/include/configs/quad100hd.h
index b2a7030..c0813bf 100644
--- a/include/configs/quad100hd.h
+++ b/include/configs/quad100hd.h
@@ -41,7 +41,9 @@
 #define PLLMR0_DEFAULT		PLLMR0_266_133_66 /* no PCI */
 #define PLLMR1_DEFAULT		PLLMR1_266_133_66 /* no PCI */
 
-#define CFG_ENV_IS_IN_EEPROM    1   /* use the EEPROM for environment vars */
+/* the environment is in the EEPROM by default */
+#define CFG_ENV_IS_IN_EEPROM
+#undef CFG_ENV_IS_IN_FLASH
 
 #define CONFIG_NET_MULTI	1
 #define CONFIG_HAS_ETH1		1
@@ -198,9 +200,12 @@
 
 #ifdef CFG_ENV_IS_IN_FLASH
 #define CFG_ENV_SECT_SIZE	0x10000	/* size of one complete sector	*/
-#define	CFG_ENV_SIZE		0x10000	/* Total Size of Environment Sector */
-#define CFG_ENV_OFFSET		0x00050000 /* Offset of Environment Sector  */
-#define CFG_ENV_ADDR		(CFG_FLASH_BASE + CFG_ENV_OFFSET)
+/* the environment is located before u-boot */
+#define CFG_ENV_ADDR		(TEXT_BASE - CFG_ENV_SECT_SIZE)
+
+/* Address and size of Redundant Environment Sector	*/
+#define CFG_ENV_ADDR_REDUND	(CFG_ENV_ADDR - CFG_ENV_SECT_SIZE)
+#define CFG_ENV_SIZE_REDUND	(CFG_ENV_SECT_SIZE)
 #endif
 
 #ifdef CFG_ENV_IS_IN_EEPROM
-- 
1.5.5

---
Gary Jennejohn
*********************************************************************
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
*********************************************************************

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

* [U-Boot-Users] [PATCH] QUAD100HD: Allow the environment to be put into flash.
  2008-05-14 11:39 [U-Boot-Users] [PATCH] QUAD100HD: Allow the environment to be put into flash Gary Jennejohn
@ 2008-05-15  6:37 ` Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2008-05-15  6:37 UTC (permalink / raw)
  To: u-boot

On Wednesday 14 May 2008, Gary Jennejohn wrote:
> After moving TEXT_BASE the value for CFG_ENV_ADDR was incorrect.  Also
> use a redundant environment.
>
> Signed-off-by: Gary Jennejohn <garyj@denx.de>

Applied to quad100hd branch. Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

end of thread, other threads:[~2008-05-15  6:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-14 11:39 [U-Boot-Users] [PATCH] QUAD100HD: Allow the environment to be put into flash Gary Jennejohn
2008-05-15  6:37 ` Stefan Roese

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