[U-Boot] ARMV7: OMAP3: Implement relocation for Overo

This patch fixes the build breakage introduced by the recent relocation changes for ARMV7. It is based on the patch for Beagleboard.
Signed-off-by: Steve Sakoman steve@sakoman.com ---
diff --git a/board/overo/config.mk b/board/overo/config.mk index d372fd9..59b651f 100644 --- a/board/overo/config.mk +++ b/board/overo/config.mk @@ -26,4 +26,4 @@ # (mem base + reserved)
# For use with external or internal boots. -TEXT_BASE = 0x80e80000 +TEXT_BASE = 0x80008000 diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h index daa4515..49a0b95 100644 --- a/include/configs/omap3_overo.h +++ b/include/configs/omap3_overo.h @@ -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 */

Dear Steve Sakoman,
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.
Signed-off-by: Steve Sakoman steve@sakoman.com
diff --git a/board/overo/config.mk b/board/overo/config.mk index d372fd9..59b651f 100644 --- a/board/overo/config.mk +++ b/board/overo/config.mk @@ -26,4 +26,4 @@ # (mem base + reserved)
# For use with external or internal boots. -TEXT_BASE = 0x80e80000 +TEXT_BASE = 0x80008000 diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h index daa4515..49a0b95 100644 --- a/include/configs/omap3_overo.h +++ b/include/configs/omap3_overo.h @@ -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

On Thu, Sep 30, 2010 at 10:52 AM, Wolfgang Denk wd@denx.de wrote:
Dear Steve Sakoman,
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.
Signed-off-by: Steve Sakoman steve@sakoman.com
diff --git a/board/overo/config.mk b/board/overo/config.mk index d372fd9..59b651f 100644 --- a/board/overo/config.mk +++ b/board/overo/config.mk @@ -26,4 +26,4 @@ # (mem base + reserved)
# For use with external or internal boots. -TEXT_BASE = 0x80e80000 +TEXT_BASE = 0x80008000 diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h index daa4515..49a0b95 100644 --- a/include/configs/omap3_overo.h +++ b/include/configs/omap3_overo.h @@ -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.
OK. I copied it from the Beagle example. I'll submit a cleanup patch to remove it from there too.
Steve

Dear Steve Sakoman,
In message AANLkTik25K_fjcY027-oYGfkfH0tLzubFy2=O+NLup1c@mail.gmail.com you wrote:
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
participants (3)
-
Steve Sakoman
-
Steve Sakoman
-
Wolfgang Denk