From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Schlote Date: Mon, 02 Jul 2007 21:54:47 +0200 Subject: [U-Boot-Users] U-Boot-NG ? In-Reply-To: <1183402971.3393.2.camel@loki> References: <20070630020850.22A711B2CB9@mercury.denx.de> <20070702164755.GC3361@leda.ptxnet.pengutronix.de> <1183402971.3393.2.camel@loki> Message-ID: <1183406087.3393.11.camel@loki> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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*))