ports cross-compilers vs. native toolchain

Stanislav Sedov stas at FreeBSD.org
Sat Mar 3 08:17:37 UTC 2012


On Jan 18, 2012, at 9:49 PM, Tim Kientzle <tim at kientzle.com> wrote:

> I'm trying to build a customized u-boot (so that I can
> add the bootelf command, which is needed to chain
> Rafał's ubldr version of loader(8)).  Of course, I'm trying
> to build this from TI's sources customized for this board,
> which means I'm not using the FreeBSD-customized
> sources from denx.de.
> 
> Since ubldr is built with the native cross-tools, I've been
> trying to build u-boot the same way, but I've run into
> a few problems that make me wonder if it would make
> more sense to build u-boot with the cross-* ports instead,
> hence my question.  (If I understand correctly, ubldr
> calls into u-boot, so the two need to be built
> compatibly, hence the question.)
> 
> Sounds like I should keep poking at u-boot with the
> native cross tools….
> 
> Unfortunately, the native cross-version of ld is crashing,
> and I have not yet been able to successfully build a debug
> version of the native cross tools so I can figure out why.
> 
> I'll no doubt have more questions very 

Hi, Tim.

You can use arm-rtems-gcc or build one with arm/eabi settings to build
uboot.  Personally, I've been using the rtems gcc port.  The uboot is
a freestanding application, so it does not need FreeBSD libs tool chain to
build and work.

--
ST4096-RIPE



More information about the freebsd-arm mailing list