[U-Boot-Users] U-Boot-NG ?

Carsten Schlote schlote at vahanus.net
Mon Jul 2 21:54:47 CEST 2007


Hi,

and just the first patch for NG :-) When I tried to compile the linux
sandbox, LD aborted with an error.

The cause is the use of CONSTANT( x ) in the linker script. This isn't a
built-in of LD, at least not for 2.17 on debian/etch. I grep-ed the
sources and found nothing, which handles the issue.

So I tweaked u-boot.lds.h a bit. Now it links and loads. I just guessed
some values for the pagesizes - no idea what value they should have. Did
you forget something to commit?

Regards
  Carsten


 include/asm-generic/u-boot.lds.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/linux/lib/u-boot.lds.S b/arch/linux/lib/u-boot.lds.S
diff --git a/include/asm-generic/u-boot.lds.h
b/include/asm-generic/u-boot.lds.h
index e8e9ce1..931074a 100644
--- a/include/asm-generic/u-boot.lds.h
+++ b/include/asm-generic/u-boot.lds.h
@@ -9,4 +9,8 @@
        *(.initcall.6)                  \
        *(.initcall.7)

+#define MAXPAGESIZE 0x10000
+#define COMMONPAGESIZE 4096
+#define CONSTANT( x ) x
+
 #define U_BOOT_CMDS    *(SORT_BY_NAME(.u_boot_cmd*))






More information about the U-Boot mailing list