cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
1,083 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
Highlighted
Xilinx Employee
Xilinx Employee
1,022 Views
Registered: ‎10-06-2016

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