UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor nattaponj
Visitor
911 Views
Registered: ‎04-09-2017

making u-boot.elf for Zybo

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

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 2015.4

- Host : Debian 9.2

nattaponj@debian:~/zybo_debian/sw/u-boot-xlnx$ source /opt/Xilinx/Vivado/2015.4/settings64.sh
nattaponj@debian:~/zybo_debian/sw/u-boot-xlnx$ export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
nattaponj@debian:~/zybo_debian/sw/u-boot-xlnx$ export ARCH=arm
nattaponj@debian:~/zybo_debian/sw/u-boot-xlnx$ make zynq_zybo_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
nattaponj@debian:~/zybo_debian/sw/u-boot-xlnx$ sudo make
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk
In file included from include/linux/compiler.h:54:0,
                 from include/linux/byteorder/little_endian.h:12,
                 from ./arch/arm/include/asm/byteorder.h:29,
                 from include/compiler.h:125,
                 from include/image.h:19,
                 from ./include/common.h:82:
include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory
 #include gcc_header(__GNUC__)
                              ^
compilation terminated.
scripts/Makefile.autoconf:72: recipe for target 'include/autoconf.mk' failed
make[1]: *** [include/autoconf.mk] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
nattaponj@debian:~/zybo_debian/sw/u-boot-xlnx$ 
Tags (2)
0 Kudos
1 Reply
Moderator
Moderator
850 Views
Registered: ‎10-06-2016

Re: making u-boot.elf for Zybo

Hi @nattaponj

 

Can you try to compile without exporting the ARCH variable? I did not take a look in deep but I never use it when I compile U-Boot on my end and I know that it has some issues with ZynqMP when aarch64 is used as U-Boot differences aarch64 and armv8 (see here).

 

It's a quick test so let see if you can see any difference.

 

Regards

Ibai


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos