U-BOOT build problem

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

On March 11, 2004, someone posted a question about u-boot.

An excerpt follows.

--------------------------------------------------------------
ppc_8xx-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0x40000
000 -I/opt/u-boot-1.0.2/include -fno-builtin -ffreestanding -nostdinc -isyst
em
/opt/eldk/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/include -pipe -DCONFIG_PPC
-D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu86%0 -msoft-
float -Wall -Wstrict-prototypes -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__
 -DTEXT_BASE=0x40000000 -I/opt/u-boot-1.0.2/include -fno-builtin -ffreestand
ing -nostdinc

-isystem
/opt/eldk/usr/bin/../lib/gcc-lib/ppc-linux/3.2.2/include -pipe -DCONFIG_PPC
-D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu86%0 -msoft-
float -I.. -Bstatic -T /opt/u-boot-1.0.2/board/tqm8xx/u-boot.lds -Ttext
0x40000000 -n hello_world.c -o hello_world

ppc_8xx-gcc: 0x40000000: No such file or directory
--------------------------------------------------------------

I had a similar problem (in u-boot-1.1.0).
I'm still not sure what causes it, but if I edit the Makfile
in the examples directory the problem goes away.

at line 125....

%:    %.o $(LIB)
    echo $(EX_LDFLAGS)
    echo ""
    $(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
        -o $@ -e $(<:.o=) $< $(LIB) \
        -L$(gcclibdir) -lgcc

All I did was add the echo commands and the problem goes away.
The weird thing is, if I put the Makefile back the way it was,
the problem does not reappear -- for a while, anyway.
After 2 days of successful building, it came back.
I think EX_LDFLAGS is never set anywhere, but I don't know if or
why that might be a problem.
So, I'm assuming this is a problem in the tools and not u-boot.

Regards,
George Varndell

Site Timeline