[U-Boot] Building Uboot for Nios2 - linker not found on Linux environment

Dave Williams dave.williams.lists at gmail.com
Sat Aug 15 04:45:16 CEST 2015


I am trying to build Uboot for Nios2.

I do the following on Linux bash.

> git clone git://git.denx.de/u-boot-nios.git
> cd u-boot-nios/
> make menuconfig

These proceeding steps complete with no visible errors or warnings.

> make all

This step fails with the following error

        LD arch/nios2/cpu/built-in.o
/bin/sh: nios2-elf-ld.bfd: command not found
scripts/Makefile.build:354: recipe for target 'arch/nios2/cpu/built-in.o'
failed
make[1]: *** [arch/nios2/cpu/built-in.o] Error 127
Makefile:1037: recipe for target 'arch/nios2/cpu' failed
make: *** [arch/nios2/cpu] Error 2

I tested to confirm that both 'nios2-elf-gcc' and 'nios2-elf-ld' are in the
path and are executable.

It appears the compile completed but the nios2 linker is not found.  The
Nios2 binaries  - nios2-elf-gcc and nios2-elf-ld are in same path location.

I have been running Nios2 successfully on Linux.

Anyone else seen this error or found a workaround?

Dave
USA


More information about the U-Boot mailing list