LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   problem with compiling u-boot 1.1.4 (https://www.linuxquestions.org/questions/programming-9/problem-with-compiling-u-boot-1-1-4-a-649908/)

hoshangi 06-17-2008 10:46 AM

problem with compiling u-boot 1.1.4
 
hi
i'm using suse 10.0 and when i compile u-boot 1.1.4 Errors has appeared

first i apply
make rmu_config
and then
make

then following error has appear

make[1]: powerpc-linux-gcc: Command not found
make[1]: Entering directory `/home/Hoshangi/Desktop/u-boot-1.1.4/tools'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/Hoshangi/Desktop/u-boot-1.1.4/tools'
make[1]: powerpc-linux-gcc: Command not found
make[1]: Entering directory `/home/Hoshangi/Desktop/u-boot-1.1.4/examples'
/bin/sh: powerpc-linux-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
/bin/sh: powerpc-linux-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/Hoshangi/Desktop/u-boot-1.1.4/examples'
make[1]: powerpc-linux-gcc: Command not found
make[1]: Entering directory `/home/Hoshangi/Desktop/u-boot-1.1.4/post'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/Hoshangi/Desktop/u-boot-1.1.4/post'
make[1]: powerpc-linux-gcc: Command not found
make[1]: Entering directory `/home/Hoshangi/Desktop/u-boot-1.1.4/post/cpu'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/home/Hoshangi/Desktop/u-boot-1.1.4/post/cpu'
make -C tools all
make[1]: powerpc-linux-gcc: Command not found
make[1]: Entering directory `/home/Hoshangi/Desktop/u-boot-1.1.4/tools'
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -c mkimage.c
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -c crc32.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -o mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -c envcrc.c
gcc -g -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -c environment.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -c gen_eth_addr.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O -o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/home/Hoshangi/Desktop/u-boot-1.1.4/include/bmp_logo.h
make[1]: Leaving directory `/home/Hoshangi/Desktop/u-boot-1.1.4/tools'
make -C examples all
make[1]: powerpc-linux-gcc: Command not found
make[1]: Entering directory `/home/Hoshangi/Desktop/u-boot-1.1.4/examples'
/bin/sh: powerpc-linux-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
/bin/sh: powerpc-linux-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
powerpc-linux-gcc -g -Os -fPIC -ffixed-r14 -meabi -fno-strict-aliasing -D__KERNEL__ -DTEXT_BASE=0xfff00000 -I/home/Hoshangi/Desktop/u-boot-1.1.4/include -fno-builtin -ffreestanding -nostdinc -isystem -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -Wall -Wstrict-prototypes -c -o test_burst.o test_burst.c
make[1]: powerpc-linux-gcc: Command not found
make[1]: *** [test_burst.o] Error 127
make[1]: Leaving directory `/home/Hoshangi/Desktop/u-boot-1.1.4/examples'
make: *** [examples] Error 2

i dont know what it's needed please help me thanks

knudfl 06-18-2008 03:35 AM

Quote from http://sourceforge.net/project/showf...group_id=65938
The "U-Boot" Universal Bootloader project provides firmware for many CPU architectures and boards with full source code under GPL. See http://www.denx.de/wiki/UBoot for more information and http://www.denx.de/wiki/UBoot/SourceCode for current source co....

I think it is very clear, what you are missing :
powerpc-linux-gcc: command not found

My understanding is that you are "crosscompiling" for an "rmu-circuit"
( Quote: 'make rmu_config' )

First: Please read everything in u-boot README.
You may also want to have the latest u-boot > > u-boot-1.1.6.tar.bz2

And some "cross - tools" : e.g. gdc-0.23-powerpc-linux-gcc-4.1.1.tar.bz2
(do your own search to find the right version)
and other stuff from http://sourceforge.net/project/showf...roup_id=154306

Generally : try powerpc-linux-gcc as keyword for Google and find online books
and files concerning the subject. (Lots of info on the first 4 pages of Google)

Rgds


All times are GMT -5. The time now is 04:58 AM.