compiling barebox/u-boot-v2 for beagleboard

Sascha Hauer s.hauer at pengutronix.de
Fri Jan 15 03:05:15 EST 2010


Hello,

On Thu, Jan 14, 2010 at 01:02:39PM -0600, pgmspam20101 at verizon.net wrote:
> Hello,
>  
> I am trying to do the next stage of my build: i.e. building xloader(u-boot-v2)
> that I can load over USB using Nishant Menon's utilities (pusb).
>  
> I went and downloaded the beagleboard version of uboot-v2 from:
>               http://www.pengutronix.de/software/u-boot/v2/download/

Please get the newer version here (or directly from git):
http://barebox.org/download/barebox-2009.12.0.tar.bz2

> 
> [pgmutasi@ u-boot-2.0.0-rc10]$ make -f Makefile ARCH=arm CROSS_COMPILE=/opt/
> WindRiver/wrlinux-3.0/layers/wrll-toolchain-4.3-85/arm/toolchain/x86-linux2/bin
> /arm-wrs-linux-gnueabi-
> scripts/kconfig/conf -s arch/arm/Kconfig
>   SYMLINK include/asm-arm/arch -> include/asm-arm/arch-omap
>   SYMLINK include/asm-arm/proc -> include/asm-arm/proc-armv
>   CHK     include/linux/version.h
>   UPD     include/linux/version.h
>   CHK     include/linux/utsrelease.h
>   UPD     include/linux/utsrelease.h
>   SYMLINK include/asm -> include/asm-arm
>   SYMLINK include/config.h -> board/omap/config.h
>   CC      scripts/mod/empty.o
> scripts/mod/empty.c:1: error: bad value (armv7a) for -march= switch
> make[2]: *** [scripts/mod/empty.o] Error 1
> make[1]: *** [scripts/mod] Error 2
> make: *** [scripts] Error 2

It seems you compiler is too old. I get the same error with our
gcc-4.1.2 based toolchain, but I do not with a gcc-4.3.2 based
toolchain.

As an alternative you might wan't to use the following patch (untested):




More information about the barebox mailing list