Re: [U-Boot-Users] MPC860T POST

Hi,
Sorry if I didn't make it clear enough. I'm using version 3.0.4 of gcc. I downloaded a copy of u-boot-0.3.0 and I'm seeing the same error:
make[1]: Leaving directory `/home/myhong/u-boot-0.3.0/drivers' make[1]: Entering directory `/home/myhong/u-boot-0.3.0/post' powerpc-linux-gcc -Wa,-gstabs -D__ASSEMBLY__ -g -Os -mrelocatable -ffixed-r14 -meabi -mrelocatable -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0x40000000 -I/home/myhong/u-boot-0.3.0/include -fno-builtin -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -c -o cache_8xx.o /home/myhong/u-boot-0.3.0/post/cache_8xx.S powerpc-linux-gcc -g -Os -mrelocatable -ffixed-r14 -meabi -mrelocatable -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0x40000000 -I/home/myhong/u-boot-0.3.0/include -fno-builtin -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -Wall -Wstrict-prototypes -c -o post.o post.c {standard input}: Assembler messages: {standard input}:676: Error: Relocation cannot be done when using -mrelocatable {standard input}:682: Error: Relocation cannot be done when using -mrelocatable {standard input}:688: Error: Relocation cannot be done when using -mrelocatable make[1]: *** [post.o] Error 1 make[1]: Leaving directory `/home/myhong/u-boot-0.3.0/post' make: *** [subdirs] Error 1 myhong@nemo ~/u-boot-0.3.0 $powerpc-linux-gcc -dumpversion 3.0.4
Regards, My Hong
------------------------------------------------------------------ Acoustic Mine Imaging Thales Underwater Systems 274 Victoria Road Rydalmere NSW 2116 +61 2 9848 3872 +61404 483 823 My-Hong.Vuong@au.thalesgroup.com ------------------------------------------------------------------
Wolfgang Denk 06/23/03 05:25pm >>>
In message <sef6ed4e.055@gw_tus_syd3.tus.au.thales> you wrote:
I'm working with an MPC860T on a custom designed board, using ppcboot-2.0.0. I've only recently tried to turn on the POSTs that is
PPCBoot is dead. Please use U-Boot instead.
offered with ppcboot/uboot and have tried to #define CONFIG_POST (CFG_POST_RTC | \ CFG_POST_MEMORY | \ CFG_POST_CPU | \ CFG_POST_CACHE | \ CFG_POST_UART | \ CFG_POST_ETHER \ )
However, on compilation, I get the following:
{standard input}: Assembler messages: {standard input}:513: Error: Relocation cannot be done when using -mrelocatable {standard input}:519: Error: Relocation cannot be done when using -mrelocatable {standard input}:525: Error: Relocation cannot be done when using -mrelocatable
You have omitted the interesting part: the command line causing the error. It seems to me you are not using the correct command line switches.
Any ideas? should I be able to compile this with version 3.0.4? If so, how can I get this to work?
Version 3.0.4 of what?
Best regards,
Wolfgang Denk

In message M2003062410175010019@safemail.tcs-aus.com.au you wrote:
Sorry if I didn't make it clear enough. I'm using version 3.0.4 of gcc.
Any chance that your compiler is not working correctly?
I downloaded a copy of u-boot-0.3.0 and I'm seeing the same error:
...
powerpc-linux-gcc -g -Os -mrelocatable -ffixed-r14 -meabi -mrelocatable -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0x40000000 -I/home/myhong/u-boot-0.3.0/include -fno-builtin -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -Wall -Wstrict-prototypes -c -o post.o post.c {standard input}: Assembler messages: {standard input}:676: Error: Relocation cannot be done when using -mrelocatable {standard input}:682: Error: Relocation cannot be done when using -mrelocatable {standard input}:688: Error: Relocation cannot be done when using -mrelocatable make[1]: *** [post.o] Error 1 make[1]: Leaving directory `/home/myhong/u-boot-0.3.0/post' make: *** [subdirs] Error 1 myhong@nemo ~/u-boot-0.3.0 $powerpc-linux-gcc -dumpversion 3.0.4
Works fine for me (and always did):
-> ppc_8xx-gcc -g -Os -mrelocatable -ffixed-r14 -meabi -mrelocatable -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0x40000000 -I/home/wd/u-boot/include -fno-builtin -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -Wall -Wstrict-prototypes -c -o post.o post.c -> ppc_8xx-gcc -dumpversion 2.95.4
[I'm using our ELDK.]
Best regards,
Wolfgang Denk
participants (2)
-
Vuong My-Hong
-
Wolfgang Denk