[U-Boot] problem building uboot

JPT j-p-t at gmx.net
Sun Apr 7 21:21:38 CEST 2013


Hi,

I decided to just try a random kirkwood config.
but I've got a problem with linking:

$ make all
...
armv5te-gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ 
-DCONFIG_SYS_TEXT_BASE=0x00600000 
-I/home/jan/src/u-boot-2013.01.01/include -fno-builtin -ffreestanding 
-nostdinc -isystem 
/opt/eldk-5.3/armv5te/sysroots/i686-eldk-linux/usr/lib/armv5te-linux-gnueabi/gcc/arm-linux-gnueabi/4.7.2/include 
-pipe  -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork 
-mabi=aapcs-linux -march=armv5te -Wall -Wstrict-prototypes 
-fno-stack-protector -Wno-format-nonliteral -Wno-format-security 
-fstack-usage     -o cache.o cache.c -c
armv5te-ld.bfd -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed   -r -o 
libkirkwood.o  cpu.o dram.o mpp.o timer.o cache.o
armv5te-ld.bfd: unrecognized option '-Wl,-O1'
armv5te-ld.bfd: use the --help option for usage information
make[1]: *** [libkirkwood.o] Fehler 1
make: *** [arch/arm/cpu/arm926ejs/kirkwood/libkirkwood.o] Fehler 2

$ which armv5te-ld.bfd
/opt/eldk-5.3/armv5te/sysroots/i686-eldk-linux/usr/bin/armv5te-linux-gnueabi/armv5te-ld.bfd

$ armv5te-ld.bfd --version
GNU ld (GNU Binutils) 2.22
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later 
version.
This program has absolutely no warranty.

now what?

thanks,

Jan



Am 07.04.2013 12:06, schrieb JPT:
> Hi,
>
> Well, I decided to build uboot myself. To access uboot env in NAND I
> only need working: CPU, NAND, RAM, UART. Correct?
> Could you please give some hints on how to choose the right config?




More information about the U-Boot mailing list