This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

U-boot build fails

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

  • Hi Steven,

    I'm not sure what your problem is, but I'm wondering how you set your PATH variable.

    Did you do something similar to this execept with your specific path to your compiler tools:

    PATH=$PATH:/opt/arm-2009q1/bin:

    export PATH

    Regards,

  • hello, it seems we have the same problem, i was following the instructions in this wiki

    http://processors.wiki.ti.com/index.php/DM6467_EVM_Installation

    but in the section Prerequisites For Build y Building U-Boot, i get the same eroor as you, i see an interesting answer, but i dont know how to set a variable in the bash, like the wiki says, i wonder if you colud resolve this, since this is a late post, because i get the same error, and by the way, satrted a post on this matter but nobody answered me yet.

    http://e2e.ti.com/support/embedded/f/354/p/130782/470890.aspx#470890

    administrator@administrator:~/git$ make davinci_dm6467_evm_config
    /bin/bash: arm-linux-gcc: command not found
    Configuring for davinci_dm6467_evm board...
    administrator@administrator:~/git$ sudo gedit /bin/bash
    [sudo] password for administrator:
    administrator@administrator:~/git$ cd /bin/bash
    bash: cd: /bin/bash: Not a directory
    administrator@administrator:~/git$ make
    /bin/bash: arm-linux-gcc: command not found
    Generating include/autoconf.mk
    /bin/bash: line 3: arm-linux-gcc: command not found
    Generating include/autoconf.mk.dep
    /bin/bash: line 3: arm-linux-gcc: command not found
    /bin/bash: arm-linux-gcc: command not found
    for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done
    make[1]: arm-linux-gcc: Command not found
    make[1]: Entering directory `/home/administrator/git/tools'
    make[1]: Nothing to be done for `_depend'.
    make[1]: Leaving directory `/home/administrator/git/tools'
    make[1]: arm-linux-gcc: Command not found
    make[1]: Entering directory `/home/administrator/git/examples/standalone'
    /bin/sh: arm-linux-gcc: not found
    dirname: missing operand
    Try `dirname --help' for more information.
    /bin/sh: arm-linux-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/administrator/git/examples/standalone'
    make[1]: arm-linux-gcc: Command not found
    make[1]: Entering directory `/home/administrator/git/examples/api'
    /bin/sh: arm-linux-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/administrator/git/examples/api'
    make -C tools all
    make[1]: arm-linux-gcc: Command not found
    make[1]: Entering directory `/home/administrator/git/tools'
    gcc -g -Wall -idirafter /home/administrator/git/include -idirafter /home/administrator/git/include2 -idirafter /home/administrator/git/include -I /home/administrator/git/libfdt -I /home/administrator/git/tools -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o mkimage.o /home/administrator/git/tools/mkimage.c
    gcc -g -Wall -idirafter /home/administrator/git/include -idirafter /home/administrator/git/include2 -idirafter /home/administrator/git/include -I /home/administrator/git/libfdt -I /home/administrator/git/tools -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o image.o /home/administrator/git/common/image.c
    gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/administrator/git/include -idirafter /home/administrator/git/include2 -idirafter /home/administrator/git/include -I /home/administrator/git/libfdt -I /home/administrator/git/tools -DTEXT_BASE=0x81080000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O  -o mkimage mkimage.o crc32.o image.o md5.o sha1.o fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o os_support.o
    strip mkimage
    make[1]: Leaving directory `/home/administrator/git/tools'
    make -C examples/standalone all
    make[1]: arm-linux-gcc: Command not found
    make[1]: Entering directory `/home/administrator/git/examples/standalone'
    /bin/sh: arm-linux-gcc: not found
    dirname: missing operand
    Try `dirname --help' for more information.
    /bin/sh: arm-linux-gcc: not found
    dirname: missing operand
    Try `dirname --help' for more information.
    arm-linux-gcc  -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x81080000 -I/home/administrator/git/include -fno-builtin -ffreestanding -nostdinc -isystem  -pipe  -DCONFIG_ARM -D__ARM__         -march=armv5te -march=armv5te -Wall -Wstrict-prototypes    -o hello_world.o hello_world.c -c
    make[1]: arm-linux-gcc: Command not found
    make[1]: *** [hello_world.o] Error 127
    make[1]: Leaving directory `/home/administrator/git/examples/standalone'
    make: *** [examples/standalone] Error 2

     

  • well, i managed to buil uboot.bin, how, i just set the crooscompiler variable in the file .bashrc in the home directory, and added in this variable, the path of my compiler, in my case were export CROSS_COMPILE=/opt/arm-2009ql/arm-none-gnuebi/bin, its not exactly how i put it, but its pretty similar, in the following link are the steps i used to do that

    http://processors.wiki.ti.com/index.php/DM6467_EVM_Installation#Flashing_UBL_to_NAND

    i was stucked in Building U-Boot, but now i finally created the image, and now im in the step Flashing UBL and U-Boot to NAND using Serial Flasher, because i succesfully created the uboot.bin and davinciUBLais.bin, and alredy have the sfh_DM646x.exe, this was a tool that comed with the board-utilities-dm646x.rar. Ok, so i typed sfh_DM646x.exe -p COM1 -nandflash  -UBLStartAddr 0x20 davinciUBLais.bin u-boot.bin
    in wondows command promt and after it finishes it displays only BOOTME at the end, i closed the prompt and now switched SW3[0-3]:1110, then opened terater, and connected it via UART mode, and the following message displays in the window


    Booting PSP Boot Loader

    Starting NAND Copy

    NAND Boot failed. Starting UART
     BOOTPSP