[U-Boot] [PATCH 2/2] [NEXT] edminiv2: enable relocation

Albert Aribaud albert.aribaud at free.fr
Tue Sep 21 21:35:35 CEST 2010


Signed-off-by: Albert Aribaud <albert.aribaud at free.fr>
---
 board/LaCie/edminiv2/config.mk |    4 +++-
 include/configs/edminiv2.h     |    6 ++++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/board/LaCie/edminiv2/config.mk b/board/LaCie/edminiv2/config.mk
index 3dec1aa..b4845ad 100644
--- a/board/LaCie/edminiv2/config.mk
+++ b/board/LaCie/edminiv2/config.mk
@@ -24,4 +24,6 @@
 # MA 02110-1301 USA
 #
 
-TEXT_BASE = 0x00100000
+# with relocation TEXT_BASE now *must* be in FLASH
+
+TEXT_BASE = 0xfff90000
diff --git a/include/configs/edminiv2.h b/include/configs/edminiv2.h
index ccfc660..a61e225 100644
--- a/include/configs/edminiv2.h
+++ b/include/configs/edminiv2.h
@@ -223,4 +223,10 @@
 #define CONFIG_SYS_RESET_ADDRESS	0xffff0000
 #define CONFIG_SYS_MAXARGS		16
 
+/* additions for new relocation code, must added to all boards */
+#undef CONFIG_SYS_ARM_WITHOUT_RELOC
+#define CONFIG_SYS_SDRAM_BASE		0
+#define CONFIG_SYS_INIT_SP_ADDR	\
+	(CONFIG_SYS_SDRAM_BASE + 0x1000 - CONFIG_SYS_GBL_DATA_SIZE)
+
 #endif /* _CONFIG_EDMINIV2_H */
-- 
1.7.0.4



More information about the U-Boot mailing list