[PATCH 1/6] openrisc: generic board: reserve 512K for barebox

Antony Pavlov antonynpavlov at gmail.com
Wed Aug 6 14:42:10 PDT 2014


Here is a linker's error message for some configurations:

  or1k-elf-ld: barebox section `.eh_frame' will not fit in region `ram'
  or1k-elf-ld: region `ram' overflowed by 16868 bytes

This patch increases space reserved for barebox from 256K to 512K
so the error's probability is dramatically decreased.

Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
Cc: Franck Jullien <franck.jullien at gmail.com>
---
 arch/openrisc/boards/generic/config.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/openrisc/boards/generic/config.h b/arch/openrisc/boards/generic/config.h
index 6ebab42..10c33a1 100644
--- a/arch/openrisc/boards/generic/config.h
+++ b/arch/openrisc/boards/generic/config.h
@@ -13,8 +13,8 @@
 
 #define OPENRISC_SOPC_ETHOC_BASE	0x92000000
 
-/* We reserve 256K for barebox */
-#define BAREBOX_RESERVED_SIZE		0x40000
+/* We reserve 512K for barebox */
+#define BAREBOX_RESERVED_SIZE		0x80000
 
 /* Barebox will be at top of main memory */
 #define OPENRISC_SOPC_TEXT_BASE		(OPENRISC_SOPC_MEMORY_BASE + OPENRISC_SOPC_MEMORY_SIZE - BAREBOX_RESERVED_SIZE)
-- 
2.0.1




More information about the barebox mailing list