edminiv2: add support for ELF relocations
authorAlbert Aribaud <albert.aribaud@free.fr>
Mon, 11 Oct 2010 11:13:29 +0000 (13:13 +0200)
committerWolfgang Denk <wd@denx.de>
Wed, 13 Oct 2010 08:10:22 +0000 (10:10 +0200)
Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
board/LaCie/edminiv2/config.mk
include/configs/edminiv2.h

index 3dec1aaeee29356f117d118e88fcbd751fd59166..bf3581def241e35f0430ed24f422a2b73fe6efdc 100644 (file)
@@ -23,5 +23,5 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301 USA
 #
-
-TEXT_BASE = 0x00100000
+# TEXT_BASE must equal the intended FLASH location of u-boot.
+TEXT_BASE = 0xfff90000
index ccfc66053b5627553ccd9730b67ae949a37430b3..43e5e870f009df4f48807d93a305569e5028fe3f 100644 (file)
 #define CONFIG_SYS_RESET_ADDRESS       0xffff0000
 #define CONFIG_SYS_MAXARGS             16
 
+/* additions for new relocation code, must be added to all boards */
+#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 */