[U-Boot-Users] Compiling u-boot for coldfire

Jens Scharsig esw at bus-elektronik.de
Tue Nov 7 15:46:16 CET 2006


Hello,

I use gcc 3.4.x with uboot. But If you prefer version 4.x, you sould 
modify the config.mk near line 173 to:

# turn jbsr into jsr for m68k
ifeq ($(ARCH),m68k)
ifeq ($(findstring 3.4,$(shell $(CC) --version)),3.4)
AFLAGS_DEBUG := -Wa,-gstabs,-S
endif
ifeq ($(findstring 4.1,$(shell $(CC) --version)),4.1)
AFLAGS_DEBUG := -Wa,-gstabs,-S
endif
endif

A missing option -S will generate this error.

Regards Jens Scharsig

Aitor Calderón schrieb:
> Hi there.
> 
> I am trying to build u-boot for coldfire mcf52x2 CPU.
> I have run "make M5282EVB_config" and "make all" but I get this error:
> 
> make[1]: Entering directory `/tmp/u-boot-1.1.6/cpu/mcf52x2'
> m68k-elf-gcc  -D__ASSEMBLY__ -g  -Os   -ffixed-d7 -msep-data -D__KERNEL__ 
> -DTEXT_BASE=0x20000  -I/tmp/u-boot-1.1.6/include -fno-builtin -ffreestanding 
> -nostdinc -isystem /usr/local/lib/gcc/m68k-uclinux/4.1.1/include -pipe  
> -DCONFIG_M68K -D__M68K__ -m5307 -c -o start.o start.S
> start.S: Mensajes del ensamblador:
> start.S:442: Error fatal: Se intentó convertir una ramificación condicional 
> relativa al PC a un salto absoluto
> make[1]: *** [start.o] Error 1
> make[1]: Leaving directory `/tmp/u-boot-1.1.6/cpu/mcf52x2'
> make: *** [cpu/mcf52x2/start.o] Error 2
> 
> the start.S message translated:
> 
> start.S: Assembler messages:
> start.S:442: Fatal error: attempted to convert a conditional tree relative to 
> PC into an absolut jump
> 
> I was not sure about which compiler to use, so I am using m68k-elf-gcc 4.1.1 
> from last m68k-uclinux-tools. Should I use other?
> 
> I am using u-boot 1.1.6
> 
>   Thanks,
>   Aitor.
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642





More information about the U-Boot mailing list