Skip to contentSkip to conversation

M5282EVB compilation errors

U-Boot-Users Marco Cavallini 2 participants 5 messages Jan 23, 2008

lore
Share & tools
lore
#0 lore raw

Hi,
I'm trying to build u-boot-1.1.6 for ColdFire 5282 but I face to the following error ( using gcc version 2.95.3 20010315 m68k-elf-tools-20031003.sh )

a - string.o
a - vsprintf.o
a - zlib.o
make[1]: Leaving directory `/home/koan/u-boot/u-boot-1.1.6/lib_generic' make -C board/m5282evb/
make[1]: Entering directory `/home/koan/u-boot/u-boot-1.1.6/board/m5282evb'
m68k-elf-gcc: m5282evb.o: No file or directory
m68k-elf-gcc: flash.o: No file or directory
make[1]: *** No rule to make target .depend', needed by libm5282evb.a'. Stop.
make[1]: Leaving directory `/home/koan/u-boot/u-boot-1.1.6/board/m5282evb'
make: *** [board/m5282evb/libm5282evb.a] Error 2

I tested also using m68k-uclinux-tools-20061214.sh without success.

a - string.o
a - complex.o
make[1]: Leaving directory `/home/koan/u-boot/u-boot-1.1.6/post/cpu' make -C cpu/mcf52x2 start.o
make[1]: Entering directory `/home/koan/u-boot/u-boot-1.1.6/cpu/mcf52x2'
m68k-uclinux-gcc -D__ASSEMBLY__ -g -Os -ffixed-d7 -msep-data
-D__KERNEL__ -DTEXT_BASE=0x20000 -I/home/koan/u-boot/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: Assembler messages:
start.S:442: Fatal error: Tried to convert PC relative conditional branch to absolute jump
make[1]: *** [start.o] Error 1
make[1]: Leaving directory `/home/koan/u-boot/u-boot-1.1.6/cpu/mcf52x2'
make: *** [cpu/mcf52x2/start.o] Error 2

Seems that everybody use dBUG+CoLilo with this cpu, so I wonder if it is u-boot-1.1.6 for ColdFire 5282 a good choice because I'd like to use it. Maybe I'm missing something or I'm using the wrong toolchain, any hint about how to build this will be greatly appreciated.
TIA

/marco

#1 lore raw

Marco,

Quoted 3 lines

I'm trying to build u-boot-1.1.6 for ColdFire 5282 but I face to the following error ( using gcc version 2.95.3 20010315 m68k-elf- tools-20031003.sh )

Your compiler is out-of-date, please goto
http://www.codesourcery.com/gnu_toolchains/coldfire/download.html to download the latest compiler.

Quoted 3 lines

Seems that everybody use dBUG+CoLilo with this cpu, so I wonder if it is u-boot-1.1.6 for ColdFire 5282 a good choice because I'd like to use it.

No. Please use the latest u-boot version. There are many changes since then.

Thanks.

Regards,
TsiChung

#2 lore raw

Liew Tsi Chung ha scritto:

Quoted 15 lines

Marco,

Quoted 3 lines

I'm trying to build u-boot-1.1.6 for ColdFire 5282 but I face to the following error ( using gcc version 2.95.3 20010315 m68k-elf- tools-20031003.sh )

Your compiler is out-of-date, please goto
http://www.codesourcery.com/gnu_toolchains/coldfire/download.html to download the latest compiler.

Quoted 3 lines

Seems that everybody use dBUG+CoLilo with this cpu, so I wonder if it is u-boot-1.1.6 for ColdFire 5282 a good choice because I'd like to use it.

Quoted 7 lines

No. Please use the latest u-boot version. There are many changes since then.

Thanks.

Regards,
TsiChung

Thank you for answering.
Now Im'using u-boot-1.3.1 and freescale-coldfire-4.2-47-m68k-elf-i686-pc-linux-gnu.tar.bz2 (or freescale-coldfire-4.2-47-m68k-uclinux-i686-pc-linux-gnu.tar.bz2)

I have again errors.
Which u-boot and m68k-uclinux version are you using ?

make -C cpu/mcf52x2 start.o
make[1]: Entering directory `/home/koan/u-boot/u-boot-1.3.1/cpu/mcf52x2' /opt/ktch/freescale-coldfire-4.2/bin/m68k-elf-gcc -D__ASSEMBLY__ -g
-Os -ffixed-d7 -msep-data -D__KERNEL__ -DTEXT_BASE=0xFFE00000
-I/home/koan/u-boot/u-boot-1.3.1/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/ktch/freescale-coldfire-4.2/bin/../lib/gcc/m68k-elf/4.2.1/include -pipe -DCONFIG_M68K -D__M68K__ -mcpu=5282 -c -o start.o start.S start.S: Assembler messages:
start.S:171: Error: operands mismatch -- statement `movec %d0,%RAMBAR0' ignored
make[1]: *** [start.o] Error 1
make[1]: Leaving directory `/home/koan/u-boot/u-boot-1.3.1/cpu/mcf52x2'
make: *** [cpu/mcf52x2/start.o] Error 2

TIA

/marco

#3 lore raw

Marco,

Quoted 5 lines

I have again errors.
Which u-boot and m68k-uclinux version are you using ?

start.S: Assembler messages:
start.S:171: Error: operands mismatch -- statement `movec

%d0,%RAMBAR0'

Can you edit the start.S @ 171 and rename from 0 to 1? That should take care the error.

Regards,
TsiChung

#4 lore raw

Liew Tsi Chung ha scritto:

Quoted 7 lines

Marco,

Quoted 5 lines

I have again errors.
Which u-boot and m68k-uclinux version are you using ?

start.S: Assembler messages:
start.S:171: Error: operands mismatch -- statement `movec

Quoted 7 lines

%d0,%RAMBAR0'

Can you edit the start.S @ 171 and rename from 0 to 1? That should take care the error.

Regards,
TsiChung

Perfect!
thank you

movec %d0, %RAMBAR1
/* movec %d0, %RAMBAR0 */

/opt/ktch/freescale-coldfire-4.2/bin/m68k-elf-ld: warning: library search path "/lib" is unsafe for cross-compilation /opt/ktch/freescale-coldfire-4.2/bin/m68k-elf-ld: warning: library search path "/usr/lib" is unsafe for cross-compilation /opt/ktch/freescale-coldfire-4.2/bin/m68k-elf-ld: warning: library search path "/usr/local/lib" is unsafe for cross-compilation /opt/ktch/freescale-coldfire-4.2/bin/m68k-elf-objcopy --gap-fill=0xff -O srec u-boot u-boot.srec /opt/ktch/freescale-coldfire-4.2/bin/m68k-elf-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin

--
Marco Cavallini | KOAN SAS | Bergamo - Italia
embedded and real-time software engineering
Phone:+39-035-255.235 - Fax:+39-178-22.39.748
http://www.KoanSoftware.com
Meet us @ Embedded World 2008 - Nurenberg
February 26-28, 2008 Hall 11 - 224