cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
786 Views
Registered: ‎04-23-2020

Unable to build U-Boot for Zynqmp zcu102: config file not found xilinx_zynqmp_zcu102_rev1_0_defconfig

I am trying to build U-boot for Zcu102, by following https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841973/Build+U-Boot
Getting following error:

make xilinx_zynqmp_zcu102_rev1_0_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
LEX scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
***
*** Can't find default configuration "arch/../configs/xilinx_zynqmp_zcu102_rev1_0_defconfig"!
***
scripts/kconfig/Makefile:128: recipe for target 'xilinx_zynqmp_zcu102_rev1_0_defconfig' failed
make[1]: *** [xilinx_zynqmp_zcu102_rev1_0_defconfig] Error 1
Makefile:540: recipe for target 'xilinx_zynqmp_zcu102_rev1_0_defconfig' failed
make: *** [xilinx_zynqmp_zcu102_rev1_0_defconfig] Error 2


It seems no configuration file is present..Am i missing something?

Tags (3)
7 Replies
Highlighted
Visitor
Visitor
658 Views
Registered: ‎06-12-2020

+1
I have the same problem.
0 Kudos
Highlighted
Contributor
Contributor
633 Views
Registered: ‎10-08-2018

Did you do the

"export CROSS_COMPILE=aarch64-linux-gnu- export ARCH=aarch64"

step?  It looks like it's trying to build for the default arch, probably x86.  You need the aarch64 tools in your path as well, of course.


Nathan Sullivan - Senior Embedded Software Engineer - www.designlinxhs.com
0 Kudos
Highlighted
Visitor
Visitor
554 Views
Registered: ‎06-12-2020

Hi,

Thanks Nathan for your reply. Unfortunately, the 2 variables are correctly set.

$ echo $CROSS_COMPILE
aarch64-linux-gnu-
$ echo $ARCH
aarch64
$ make xilinx_zynqmp_zcu102_rev1_0_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
***
*** Can't find default configuration "arch/../configs/xilinx_zynqmp_zcu102_rev1_0_defconfig"!
***
scripts/kconfig/Makefile:128: recipe for target 'xilinx_zynqmp_zcu102_rev1_0_defconfig' failed
make[1]: *** [xilinx_zynqmp_zcu102_rev1_0_defconfig] Error 1
Makefile:540: recipe for target 'xilinx_zynqmp_zcu102_rev1_0_defconfig' failed
make: *** [xilinx_zynqmp_zcu102_rev1_0_defconfig] Error 2
$

 The building tools are in the path

$ source /opt/Xilinx/SDK/2018.3/settings64.sh
$ aarch64-linux-gnu-gcc --version
aarch64-linux-gnu-gcc (Linaro GCC 7.3-2018.04-rc3) 7.3.1 20180314
Copyright © 2017 Free Software Foundation, Inc.
Ce logiciel est un logiciel libre; voir les sources pour les conditions de copie.  Il n'y a
AUCUNE GARANTIE, pas même pour la COMMERCIALISATION ni L'ADÉQUATION À UNE TÂCHE PARTICULIÈRE.

The requested file doesn't exist and my git repo is up to date. 

$ find . -name "*zcu102*"
./arch/arm/dts/zynqmp-zcu102-revA.dts
./arch/arm/dts/zynqmp-zcu102-revB.dts
./arch/arm/dts/zynqmp-zcu102-rev1.0.dts
./board/xilinx/zynqmp/zynqmp-zcu102-revA
./board/xilinx/zynqmp/zynqmp-zcu102-rev1.0

 

 

0 Kudos
Highlighted
Moderator
Moderator
546 Views
Registered: ‎12-04-2016

Hi @msalmankhalid_m 

Please check if you have the defconfig file in this path:

u-boot-xlnx/configs/xilinx_zynqmp_zcu102_rev1_0_defconfig

I tried at our end with the same steps as yours, it's working for me

 

Best Regards

Shabbir

 

0 Kudos
Highlighted
Explorer
Explorer
488 Views
Registered: ‎10-04-2017

Are you trying to update to 2020.1?   

After looking at the git log I found this:

commit a4254a12e811621d7100d9a070f3a173c1f4e8c6
Author: Michal Simek <michal.simek@xilinx.com>
Date: Fri Dec 6 11:52:09 2019 +0100

arm64: zynqmp: Use zynqmp_virt platform

Decrease amount of the similar defconfigs and use generic one instead.
The change was declared by commit 4b37c13dc353
("arm64: zynqmp: Introduce virtual defconfig") and this patch removes
configs for the most of the boards.
Utra96/zcu100/zcu102/zcu102 and ZynqMP based System controllers *a2197*.
have been also boot tested to make sure that funcionality
remains the same.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
State: upstream (be1b6c32d940)

 

=============

which deleted xilinx_zynqmp_zcu102_rev1_0_defconfig.  So I updated my config to use 'xilinx_zynqmp_virt_defconfig'

which made it past this error by now I have to figure out this one:

 

20.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/git/include/common.h:22:
| include/config.h:5:10: fatal error: configs/platform-top.h: No such file or directory
| 5 | #include <configs/platform-top.h>
| | ^~~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.

 

jeff

Highlighted
Moderator
Moderator
440 Views
Registered: ‎09-12-2007

The defconfigs can be seen here:

  • u-boot-xlnx\configs

There is a generic defconfig for zynqmp

  • make xilinx_zynqmp_virt_defconfig
0 Kudos
Highlighted
Observer
Observer
204 Views
Registered: ‎02-07-2020

Thanks. I had this error with my minized and I noticed "xilinx_zynq_virt_defconfig" should be used instead of "zynq_minized_defconfig". The latter does not exist in my configs folder.

0 Kudos