• 0
nattaponj

making U-boot.elf For Zybo Zynq

Question

I am attempting to make the u-boot.elf file for the Zybo following this guide.

I have a problem in Step 21: Compile U-Boot

I am running into an error though that I am not sure how to resolve.
Has anyone seen this before?
I just learn about Zybo board. Thanks in advance.
Using
- Vivado 2014.1
- Host : Debian 9.2

nattaponj@debian:~/zybo_debian$ source /opt/Xilinx/Vivado/2014.1/settings64.sh nattaponj@debian:~/zybo_debian$ git clone https://github.com/Digilent/u-boot-Digilent-Dev.git
Cloning into 'u-boot-Digilent-Dev'...
remote: Counting objects: 252883, done.
remote: Total 252883 (delta 0), reused 0 (delta 0), pack-reused 252883
Receiving objects: 100% (252883/252883), 72.54 MiB | 158.00 KiB/s, done.
Resolving deltas: 100% (200043/200043), done.
nattaponj@debian:~/zybo_debian$ make CROSS_COMPILE=arm-xilinx-linux-gnueabi- zynq_zybo_config
make: *** No rule to make target 'zynq_zybo_config'.  Stop.
nattaponj@debian:~/zybo_debian$ cd u-boot-Digilent-Dev/
nattaponj@debian:~/zybo_debian/u-boot-Digilent-Dev$ make CROSS_COMPILE=arm-xilinx-linux-gnueabi- zynq_zybo_config
Configuring for zynq_zybo board...
nattaponj@debian:~/zybo_debian/u-boot-Digilent-Dev$ sudo make CROSS_COMPILE=arm-xilinx-linux-gnueabi-
[sudo] password for nattaponj: 
make: arm-xilinx-linux-gnueabi-gcc: Command not found
/bin/sh: arm-xilinx-linux-gnueabi-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
Generating include/autoconf.mk
/bin/sh: line 3: arm-xilinx-linux-gnueabi-gcc: command not found
Generating include/autoconf.mk.dep
/bin/sh: line 3: arm-xilinx-linux-gnueabi-gcc: command not found
make: arm-xilinx-linux-gnueabi-gcc: Command not found
/bin/sh: arm-xilinx-linux-gnueabi-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
/bin/sh: arm-xilinx-linux-gnueabi-gcc: command not found
/bin/sh: arm-xilinx-linux-gnueabi-ld: command not found
Generating include/spl-autoconf.mk
/bin/sh: line 3: arm-xilinx-linux-gnueabi-gcc: command not found
Generating include/tpl-autoconf.mk
/bin/sh: line 3: arm-xilinx-linux-gnueabi-gcc: command not found
arm-xilinx-linux-gnueabi-gcc -DDO_DEPS_ONLY \
	-g  -Os   -ffunction-sections -fdata-sections -fno-common -ffixed-r8 -msoft-float  -fno-strict-aliasing -mno-unaligned-access -D__KERNEL__ -I/home/nattaponj/zybo_debian/u-boot-Digilent-Dev/include -fno-builtin -ffreestanding -nostdinc -isystem  -pipe  -DCONFIG_ARM -D__ARM__     -march=armv5 -Wall -Wstrict-prototypes       \
	-o lib/asm-offsets.s lib/asm-offsets.c -c -S
make: arm-xilinx-linux-gnueabi-gcc: Command not found
Makefile:747: recipe for target 'lib/asm-offsets.s' failed
make: *** [lib/asm-offsets.s] Error 127
nattaponj@debian:~/zybo_debian/u-boot-Digilent-Dev$ 

or

nattaponj@debian:~/zybo_debian/u-boot-Digilent-Dev$ export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
nattaponj@debian:~/zybo_debian/u-boot-Digilent-Dev$ export ARCH=arm
nattaponj@debian:~/zybo_debian/u-boot-Digilent-Dev$ sudo make
make: arm-linux-gcc: Command not found
/bin/sh: arm-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
/bin/sh: arm-linux-gcc: command not found
/bin/sh: arm-linux-ld: command not found
arm-linux-gcc -DDO_DEPS_ONLY \
	-g  -Os   -ffunction-sections -fdata-sections -fno-common -ffixed-r8 -msoft-float  -fno-strict-aliasing -mno-unaligned-access -D__KERNEL__ -I/home/nattaponj/zybo_debian/u-boot-Digilent-Dev/include -fno-builtin -ffreestanding -nostdinc -isystem  -pipe  -DCONFIG_ARM -D__ARM__     -march=armv5 -Wall -Wstrict-prototypes       \
	-o lib/asm-offsets.s lib/asm-offsets.c -c -S
make: arm-linux-gcc: Command not found
Makefile:747: recipe for target 'lib/asm-offsets.s' failed
make: *** [lib/asm-offsets.s] Error 127
nattaponj@debian:~/zybo_debian/u-boot-Digilent-Dev$ 

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

HI @nattaponj,

The links on step 20 of the Instructable you linked seem to not work. Where are you getting the u-boot files? Also If you were interested in petalinux Here is the Quick start guide along with an instructable here.

thank you,

Jon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now