Skip to contentSkip to conversation

ARMV7: OMAP3: Implement relocation for Overo

U-Boot Steve Sakoman 3 participants 4 messages Sep 30, 2010

lore
Share & tools
lore
#0 lore raw

This patch fixes the build breakage introduced by the recent relocation changes for ARMV7. It is based on the patch for Beagleboard.

---

board/overo/config.mk +1 -1
index d372fd9..59b651f 100644
@@ -26,4 +26,4 @@
 # (mem base + reserved)
 
 # For use with external or internal boots.
-TEXT_BASE = 0x80e80000
+TEXT_BASE = 0x80008000
include/configs/omap3_overo.h +4 -0
index daa4515..49a0b95 100644
@@ -324,4 +324,8 @@ extern unsigned int boot_flash_type;
 
 #endif /* (CONFIG_CMD_NET) */
 
+#undef CONFIG_SYS_ARM_WITHOUT_RELOC /* This board is tested with relocation support */
+#define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
+#define CONFIG_SYS_INIT_SP_ADDR		(LOW_LEVEL_SRAM_STACK - CONFIG_SYS_GBL_DATA_SIZE)
+
 #endif				/* __CONFIG_H */
#1 lore raw

Dear Steve Sakoman,

Quoted 21 lines · In message <1285867914.4705.145.camel@quadra> you wrote:

This patch fixes the build breakage introduced by the recent relocation changes for ARMV7. It is based on the patch for Beagleboard.

---

board/overo/config.mk +1 -1
index d372fd9..59b651f 100644
@@ -26,4 +26,4 @@
 # (mem base + reserved)
 
 # For use with external or internal boots.
-TEXT_BASE = 0x80e80000
+TEXT_BASE = 0x80008000
include/configs/omap3_overo.h +0 -0
index daa4515..49a0b95 100644

include/configs/omap3_overo.h extern unsigned int boot_flash_type; · line 327

Quoted 4 lines
include/configs/omap3_overo.h +1 -0
@@ -324,4 +324,8 @@ extern unsigned int boot_flash_type;
 
 #endif /* (CONFIG_CMD_NET) */
 
+#undef CONFIG_SYS_ARM_WITHOUT_RELOC /* This board is tested with relocation support */

Please remove this line.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Morality is one thing.  Ratings are everything."
- A Network 23 executive on "Max Headroom"
#2 lore raw
Quoted 25 lines · Wolfgang Denk

Dear Steve Sakoman,

Quoted 22 lines · In message <1285867914.4705.145.camel@quadra> you wrote:

This patch fixes the build breakage introduced by the recent relocation changes for ARMV7. It is based on the patch for Beagleboard.

---

board/overo/config.mk +0 -0
index d372fd9..59b651f 100644
@@ -26,4 +26,4 @@
 ?# (mem base + reserved)
 

?# For use with external or internal boots.

board/overo/config.mk +1 -1
-TEXT_BASE = 0x80e80000
+TEXT_BASE = 0x80008000
include/configs/omap3_overo.h +0 -0
index daa4515..49a0b95 100644
@@ -324,4 +324,8 @@ extern unsigned int boot_flash_type;
 
Quoted 5 lines
Quoted 3 lines

?#endif /* (CONFIG_CMD_NET) */

+#undef CONFIG_SYS_ARM_WITHOUT_RELOC /* This board is tested with relocation support */

Please remove this line.

OK. I copied it from the Beagle example. I'll submit a cleanup patch to remove it from there too.

Steve

#3 lore raw

Dear Steve Sakoman,

Quoted 3 lines · In message <[email protected]> you…

OK. I copied it from the Beagle example. I'll submit a cleanup patch to remove it from there too.

Thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Some programming languages manage to  absorb  change,  but  withstand
progress.          -- Epigrams in Programming, ACM SIGPLAN Sept. 1982