Hello,
I was following the directions at http://processors.wiki.ti.com/index.php/GSG:_AM35x_EVM_Software_Setup#Installing_the_software to get my board booted up but the u-boot build is failing. After following the instructions in the sections 'Installing the Target Linux Software', 'Installing the Toolchain' and 'Setting Up The Build/Development Environment', I tried the instructions under 'Rebuilding U-boot'. All of the commands worked except the last one to actually build u-boot (make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm), with the output pasted below. I am running Ubuntu 10.04 LTS - the Lucid Lynx and apparently, there may be a path issue regarding the 'arm-none-linux-gnueabi-gcc' compiler. But I am not so sure because I verified that the compiler is in my path and I tried logging out and logging back in, changing terminals etc. but I still get the errors saying that the compiler cannot be found. Here is my path variable: ~/toolchain/arm-2009q1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games.
Also, here is the output when I run the command 'arm-none-linux-gnueabi-gcc –v':
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --with-specs='%{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables}' --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2009q1-203' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/obj/host-libs-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/obj/host-libs-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203)
Any help is appreciated. Thank you.
Steven
/bin/bash: arm-none-linux-gnueabi-gcc: command not found /bin/bash: arm-none-linux-gnueabi-gcc: command not found dirname: missing operand Try `dirname --help' for more information. Generating include/autoconf.mk /bin/bash: line 3: arm-none-linux-gnueabi-gcc: command not found /bin/bash: arm-none-linux-gnueabi-gcc: command not found dirname: missing operand Try `dirname --help' for more information. Generating include/autoconf.mk.dep /bin/bash: line 3: arm-none-linux-gnueabi-gcc: command not found /bin/bash: arm-none-linux-gnueabi-gcc: command not found /bin/bash: arm-none-linux-gnueabi-gcc: command not found dirname: missing operand Try `dirname --help' for more information. /bin/bash: arm-none-linux-gnueabi-gcc: command not found dirname: missing operand Try `dirname --help' for more information. for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done /bin/bash: arm-none-linux-gnueabi-gcc: command not found dirname: missing operand Try `dirname --help' for more information. make[1]: arm-none-linux-gnueabi-gcc: Command not found make[1]: Entering directory `/home/steve/workdir/opt/u-boot-03.00.01.06/tools' make[1]: Leaving directory `/home/steve/workdir/opt/u-boot-03.00.01.06/tools' make[1]: arm-none-linux-gnueabi-gcc: Command not found make[1]: Entering directory `/home/steve/workdir/opt/u-boot-03.00.01.06/tools' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/home/steve/workdir/opt/u-boot-03.00.01.06/tools' make[1]: arm-none-linux-gnueabi-gcc: Command not found make[1]: Entering directory `/home/steve/workdir/opt/u-boot-03.00.01.06/examples/standalone' /bin/sh: arm-none-linux-gnueabi-gcc: not found dirname: missing operand Try `dirname --help' for more information. /bin/sh: arm-none-linux-gnueabi-gcc: not found /bin/sh: arm-none-linux-gnueabi-gcc: not found make[1]: *** No rule to make target `.depend', needed by `_depend'. Stop. make[1]: Leaving directory `/home/steve/workdir/opt/u-boot-03.00.01.06/examples/standalone' make[1]: arm-none-linux-gnueabi-gcc: Command not found make[1]: Entering directory `/home/steve/workdir/opt/u-boot-03.00.01.06/examples/api' /bin/sh: arm-none-linux-gnueabi-gcc: not found dirname: missing operand Try `dirname --help' for more information. make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/home/steve/workdir/opt/u-boot-03.00.01.06/examples/api' make -C tools all /bin/bash: arm-none-linux-gnueabi-gcc: command not found dirname: missing operand Try `dirname --help' for more information. make[1]: arm-none-linux-gnueabi-gcc: Command not found make[1]: Entering directory `/home/steve/workdir/opt/u-boot-03.00.01.06/tools' gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o crc32.o /home/steve/workdir/opt/u-boot-03.00.01.06/lib_generic/crc32.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o default_image.o /home/steve/workdir/opt/u-boot-03.00.01.06/tools/default_image.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fit_image.o /home/steve/workdir/opt/u-boot-03.00.01.06/tools/fit_image.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o image.o /home/steve/workdir/opt/u-boot-03.00.01.06/common/image.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o kwbimage.o /home/steve/workdir/opt/u-boot-03.00.01.06/tools/kwbimage.c gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o md5.o /home/steve/workdir/opt/u-boot-03.00.01.06/lib_generic/md5.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o mkimage.o /home/steve/workdir/opt/u-boot-03.00.01.06/tools/mkimage.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o os_support.o /home/steve/workdir/opt/u-boot-03.00.01.06/tools/os_support.c gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o sha1.o /home/steve/workdir/opt/u-boot-03.00.01.06/lib_generic/sha1.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt.o /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt/fdt.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_ro.o /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt/fdt_ro.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_rw.o /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt/fdt_rw.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_strerror.o /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt/fdt_strerror.c gcc -g -Wall -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o fdt_wip.o /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt/fdt_wip.c gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include2 -idirafter /home/steve/workdir/opt/u-boot-03.00.01.06/include -I /home/steve/workdir/opt/u-boot-03.00.01.06/libfdt -I /home/steve/workdir/opt/u-boot-03.00.01.06/tools -DTEXT_BASE=0x80e80000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -o mkimage crc32.o default_image.o fit_image.o image.o kwbimage.o md5.o mkimage.o os_support.o sha1.o fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o strip mkimage make[1]: Leaving directory `/home/steve/workdir/opt/u-boot-03.00.01.06/tools' make -C examples/standalone all /bin/bash: arm-none-linux-gnueabi-gcc: command not found dirname: missing operand Try `dirname --help' for more information. make[1]: arm-none-linux-gnueabi-gcc: Command not found make[1]: Entering directory `/home/steve/workdir/opt/u-boot-03.00.01.06/examples/standalone' /bin/sh: arm-none-linux-gnueabi-gcc: not found dirname: missing operand Try `dirname --help' for more information. arm-none-linux-gnueabi-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x80e80000 -I/home/steve/workdir/opt/u-boot-03.00.01.06/include -fno-builtin -ffreestanding -nostdinc -isystem -pipe -DCONFIG_ARM -D__ARM__ -march=armv5 -Wall -Wstrict-prototypes -o hello_world.o hello_world.c -c make[1]: arm-none-linux-gnueabi-gcc: Command not found make[1]: *** [hello_world.o] Error 127 make[1]: Leaving directory `/home/steve/workdir/opt/u-boot-03.00.01.06/examples/standalone' make: *** [examples/standalone] Error 2