* [U-Boot-Users] M5282EVB compilation errors
@ 2008-01-23 15:18 Marco Cavallini
2008-01-23 17:30 ` Liew Tsi Chung
0 siblings, 1 reply; 5+ messages in thread
From: Marco Cavallini @ 2008-01-23 15:18 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] M5282EVB compilation errors
2008-01-23 15:18 [U-Boot-Users] M5282EVB compilation errors Marco Cavallini
@ 2008-01-23 17:30 ` Liew Tsi Chung
2008-01-23 23:03 ` Marco Cavallini
0 siblings, 1 reply; 5+ messages in thread
From: Liew Tsi Chung @ 2008-01-23 17:30 UTC (permalink / raw)
To: u-boot
Marco,
> 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.
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] M5282EVB compilation errors
2008-01-23 17:30 ` Liew Tsi Chung
@ 2008-01-23 23:03 ` Marco Cavallini
2008-01-23 23:18 ` Liew Tsi Chung
0 siblings, 1 reply; 5+ messages in thread
From: Marco Cavallini @ 2008-01-23 23:03 UTC (permalink / raw)
To: u-boot
Liew Tsi Chung ha scritto:
> Marco,
>
>> 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.
>
>
>> 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
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] M5282EVB compilation errors
2008-01-23 23:03 ` Marco Cavallini
@ 2008-01-23 23:18 ` Liew Tsi Chung
2008-01-23 23:24 ` Marco Cavallini
0 siblings, 1 reply; 5+ messages in thread
From: Liew Tsi Chung @ 2008-01-23 23:18 UTC (permalink / raw)
To: u-boot
Marco,
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] M5282EVB compilation errors
2008-01-23 23:18 ` Liew Tsi Chung
@ 2008-01-23 23:24 ` Marco Cavallini
0 siblings, 0 replies; 5+ messages in thread
From: Marco Cavallini @ 2008-01-23 23:24 UTC (permalink / raw)
To: u-boot
Liew Tsi Chung ha scritto:
> Marco,
>
>> 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
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-01-23 23:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-23 15:18 [U-Boot-Users] M5282EVB compilation errors Marco Cavallini
2008-01-23 17:30 ` Liew Tsi Chung
2008-01-23 23:03 ` Marco Cavallini
2008-01-23 23:18 ` Liew Tsi Chung
2008-01-23 23:24 ` Marco Cavallini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox