[U-Boot] [PATCH] ARM: compiler options cleanup - improve tool chain support

Simon Kagstrom simon.kagstrom at netinsight.net
Mon Aug 24 10:59:35 CEST 2009


Hi,

On Fri, 21 Aug 2009 23:12:45 +0200
Wolfgang Denk <wd at denx.de> wrote:

> For some time there have been repeated reports about build problems
> with some ARM (cross) tool chains.  Especially issues about
> (in)compatibility with the tool chain provided runtime support
> library libgcc.a caused to add and support a private implementation
> of such runtime support code in U-Boot.  A closer look at the code
> indicated that some of these issues are actually home-made.  This
> patch attempts to clean up some of the most obvious problems and make
> building of U-Boot with different tool chains easier:

I updated my git tree today and got this patch (among other things). It
does not work very well for me, unfortunately. I've tried three
toolchains (4.3.3, 4.3.4, 4.4.1) built with crosstool-ng, and all of
them build an image which doesn't run correct.

It appears to be 64-bit issue:

  U-Boot 2009.08-rc3-00014-gcea1f2a (Aug 24 2009 - 10:31:57)
  Marvell-OpenRD_base

  SoC:   Kirkwood 88F6281_A0
  DRAM:  27507994220560384 MB
  NAND:  27510416582115328 MiB
  nand_bbt: Can't scan flash and build the RAM-based BBT
  Net:   egiga0
  88E1116 Initialized on egiga0
  Hit any key to stop autoboot: 6871947673 0 
  Marvell>> 
  Marvell>> 
  Marvell>> 

(I have 64-bit vsnprintf, and DRAM/NAND is reported correct without
it). If I change PLATFORM_CPPFLAGS in lib_arm/config.mk to use
apcs-linux instead of aapcs-linux it works again.

// Simon


More information about the U-Boot mailing list