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
Observer simalps
Observer
4,969 Views
Registered: ‎06-07-2016

Petalinux 2016.4 + UltraZed: u-boot compilation failure

Jump to solution

Hello,

I'm trying to compile petalinux 2016.4 for my new UltraZed using my synthesized hardware. However, the compilation workflow fails when compiling the package u-boot-xlnx_2016.07.bb. The reason is

 

cc1: error: unknown value 'armv5' for -march

The entire log is here:

 

DEBUG: Executing shell function do_compile
NOTE: make -j 4 CROSS_COMPILE=aarch64-linux-gnu- CC=aarch64-linux-gnu-gcc  --sysroot=/home/simalps/test/pproj/build/tmp/sysroots/plnx_aarch64 V=1 HOSTCC=gcc  -isystem/home/simalps/test/pproj/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -L/home/simalps/test/pproj/build/tmp/sysroots/x86_64-linux/usr/lib -L/home/simalps/test/pproj/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/simalps/test/pproj/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/simalps/test/pproj/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath,/home/simalps/test/pproj/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/simalps/test/pproj/build/tmp/sysroots/x86_64-linux/li
make: Entering directory '/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git'
make -C /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/build KBUILD_src=/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git \
-f /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/Makefile all
make[1]: Entering directory '/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/build'
make -f /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/Makefile silentoldconfig
make -f /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/scripts/Makefile.build obj=scripts/basic
ln -fsn /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git source
rm -f .tmp_quiet_recordmcount
/bin/sh /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/scripts/mkmakefile \
    /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git . 2016 07
  GEN     ./Makefile
make -f /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/scripts/Makefile.build obj=scripts/kconfig silentoldconfig
mkdir -p include/config include/generated
scripts/kconfig/conf  --silentoldconfig Kconfig
make -f /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/scripts/Makefile.autoconf || \
	{ rm -f include/config/auto.conf; false; }
mkdir -p include/asm
if [ -d /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/arch/arm/mach-zynq/include/mach ]; then	\
	dest=arch/arm/mach-zynq/include/mach;			\
else									\
	dest=arch/arm/include/asm/arch-zynq;	\
fi;									\
ln -fsn /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/$dest include/asm/arch
set -e; : '  CHK     include/config.h'; mkdir -p include/; 	(echo "/* Automatically generated - do not edit */"; for i in $(echo "" | sed 's/,/ /g'); do echo \#define CONFIG_$i | sed '/=/ {s/=/	/;q; } ; { s/$/	1/; }'; done; echo \#define CONFIG_BOARDDIR board/xilinx/zynq; echo \#include \<config_defaults.h\>; echo \#include \<config_uncmd_spl.h\>; echo \#include \<configs/"platform-top".h\>; echo \#include \<asm/config.h\>; echo \#include \<config_fallbacks.h\>;) < /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/scripts/Makefile.autoconf > include/config.h.tmp; if [ -r include/config.h ] && cmp -s include/config.h include/config.h.tmp; then rm -f include/config.h.tmp; else : '  UPD     include/config.h'; mv -f include/config.h.tmp include/config.h; fi
  aarch64-linux-gnu-gcc  --sysroot=/home/simalps/test/pproj/build/tmp/sysroots/plnx_aarch64 -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time  -D__KERNEL__ -D__UBOOT__   -D__ARM__           -fno-pic   -ffunction-sections -fdata-sections -fno-common -ffixed-r9    -pipe -Iinclude  -I/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/include -I/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/arch/arm/include -include /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/include/linux/kconfig.h  -nostdinc -isystem /opt/Xilinx/petalinux/tools/linux-i386/aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/5.2.1/include -MQ include/config/auto.conf /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/include/common.h > include/autoconf.mk.dep || { rm include/autoconf.mk.dep; false; }
  aarch64-linux-gnu-gcc  --sysroot=/home/simalps/test/pproj/build/tmp/sysroots/plnx_aarch64 -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time  -D__KERNEL__ -D__UBOOT__   -D__ARM__           -fno-pic   -ffunction-sections -fdata-sections -fno-common -ffixed-r9    -pipe -Iinclude  -I/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/include -I/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/arch/arm/include -include /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/include/linux/kconfig.h  -nostdinc -isystem /opt/Xilinx/petalinux/tools/linux-i386/aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/5.2.1/include  -DDO_DEPS_ONLY -dM /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/include/common.h > include/autoconf.mk.tmp && { sed -n -f /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/tools/scripts/define2mk.sed include/autoconf.mk.tmp | while read line; do if [ -n "" ] || ! grep -q "${line%=*}=" include/config/auto.conf; then echo "$line"; fi done > include/autoconf.mk; rm include/autoconf.mk.tmp; } || { rm include/autoconf.mk.tmp; false; }
touch include/config/auto.conf
set -e; : '  CHK     include/config/uboot.release'; mkdir -p include/config/; 	echo "2016.07$(/bin/sh /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/scripts/setlocalversion /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git)" < include/config/auto.conf > include/config/uboot.release.tmp; if [ -r include/config/uboot.release ] && cmp -s include/config/uboot.release include/config/uboot.release.tmp; then rm -f include/config/uboot.release.tmp; else : '  UPD     include/config/uboot.release'; mv -f include/config/uboot.release.tmp include/config/uboot.release; fi
ln -fsn /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git source
set -e; : '  CHK     include/generated/timestamp_autogenerated.h'; mkdir -p include/generated/; 	(if test -n "${SOURCE_DATE_EPOCH}"; then SOURCE_DATE="@${SOURCE_DATE_EPOCH}"; DATE=""; for date in gdate date.gnu date; do ${date} -u -d "${SOURCE_DATE}" >/dev/null 2>&1 && DATE="${date}"; done; if test -n "${DATE}"; then LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_TIME "%T"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_TZ "%z"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_DMI_DATE "%m/%d/%Y"'; else return 42; fi; else LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C date +'#define U_BOOT_TIME "%T"'; LC_ALL=C date +'#define U_BOOT_TZ "%z"'; LC_ALL=C date +'#define U_BOOT_DMI_DATE "%m/%d/%Y"'; fi) < /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/Makefile > include/generated/timestamp_autogenerated.h.tmp; if [ -r include/generated/timestamp_autogenerated.h ] && cmp -s include/generated/timestamp_autogenerated.h include/generated/timestamp_autogenerated.h.tmp; then rm -f include/generated/timestamp_autogenerated.h.tmp; else : '  UPD     include/generated/timestamp_autogenerated.h'; mv -f include/generated/timestamp_autogenerated.h.tmp include/generated/timestamp_autogenerated.h; fi
/bin/sh /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/scripts/mkmakefile \
    /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git . 2016 07
make -f /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/scripts/Makefile.build obj=scripts/basic
  GEN     ./Makefile
rm -f .tmp_quiet_recordmcount
  aarch64-linux-gnu-gcc  --sysroot=/home/simalps/test/pproj/build/tmp/sysroots/plnx_aarch64 -E -Wp,-MD,./.u-boot.cfg.d -D__KERNEL__ -D__UBOOT__   -D__ARM__           -fno-pic   -ffunction-sections -fdata-sections -fno-common -ffixed-r9    -pipe   -march=armv5  -I/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/arch/arm/mach-zynq/include -Iinclude  -I/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/include  -I/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/arch/arm/include -include /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/include/linux/kconfig.h  -nostdinc -isystem /opt/Xilinx/petalinux/tools/linux-i386/aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/5.2.1/include -include /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/include/u-boot/u-boot.lds.h -DCPUDIR=arch/arm/cpu/armv7  -ansi -DDO_DEPS_ONLY -D__ASSEMBLY__ -x assembler-with-cpp -P -dM -E -o u-boot.cfg include/config.h
cc1: error: unknown value 'armv5' for -march
/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git/Makefile:928: recipe for target 'u-boot.cfg' failed
make[1]: *** [u-boot.cfg] Error 1
make[1]: Leaving directory '/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/build'
Makefile:150: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/git'
WARNING: /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/temp/run.do_compile.4339:1 exit 1 from 'exit 1'
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /home/simalps/test/pproj/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2016.07-xilinx+gitAUTOINC+0b94ce5ed4-r0/temp/log.do_compile.4339)

Do you have any idea on how I can correct this issue?

Thanks!

S.

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
8,992 Views
Registered: ‎12-04-2016

Re: Petalinux 2016.4 + UltraZed: u-boot compilation failure

Jump to solution

Hi 

 

It looks like you are taking the wrong BSP file. Check the proper BSP for ultrazed. Is it based on Zynq or ZynqMP?

Your error log shows zynq architecture (armv5), but BSP is actually expecting other ARM architecture may be armv8.

 

Best Regards

Shabbir 

0 Kudos
7 Replies
Moderator
Moderator
4,895 Views
Registered: ‎12-04-2016

Re: Petalinux 2016.4 + UltraZed: u-boot compilation failure

Jump to solution

Hi

 

Please try exporting aarch64 toolchain, using the below command:

 

export CROSS_COMPILE=aarch64-none-elf-

 

This toolchain you can see, after sourcing the petalinux settings.sh

 

 

Best Regards

Shabbir

0 Kudos
Observer simalps
Observer
4,831 Views
Registered: ‎06-07-2016

Re: Petalinux 2016.4 + UltraZed: u-boot compilation failure

Jump to solution

@shabbirk thank you for your reply. Unfortunately, I still have the same error.

 

I have also tried to make a new clean project:  same error.

Do you have any other idea?

Thanks

0 Kudos
Moderator
Moderator
8,993 Views
Registered: ‎12-04-2016

Re: Petalinux 2016.4 + UltraZed: u-boot compilation failure

Jump to solution

Hi 

 

It looks like you are taking the wrong BSP file. Check the proper BSP for ultrazed. Is it based on Zynq or ZynqMP?

Your error log shows zynq architecture (armv5), but BSP is actually expecting other ARM architecture may be armv8.

 

Best Regards

Shabbir 

0 Kudos
Observer simalps
Observer
4,787 Views
Registered: ‎06-07-2016

Re: Petalinux 2016.4 + UltraZed: u-boot compilation failure

Jump to solution

@shabbirk Thanks! yep, definitely, that was the problem

I created a new project using the default template 

petalinux-create --type project --template zynqMP --name zynqdma

and now I can build it successfully.

However, now when I create the SD card and I boot it I have the following error:

*** Warning - bad CRC, using default environment

Both with petalinux 2016.2 and 2016.4.

0 Kudos
Moderator
Moderator
4,783 Views
Registered: ‎12-04-2016

Re: Petalinux 2016.4 + UltraZed: u-boot compilation failure

Jump to solution

Hi

 

Is U-boot hangs there or its booting with this warning? If you are facing this problem, this is not actually the error, will not impact any functionality.

 

 

Best Regards

Shabbir

0 Kudos
Observer simalps
Observer
4,781 Views
Registered: ‎06-07-2016

Re: Petalinux 2016.4 + UltraZed: u-boot compilation failure

Jump to solution

@shabbirk Is booting on the EMMC and not with the uImage of the SD card created with petalinux using

petalinux-package --boot --format BIN --fsbl zynqmp_fsbl.elf --fpga design_1_wrapper.bit --u-boot --force

 

0 Kudos
Moderator
Moderator
4,779 Views
Registered: ‎12-04-2016

Re: Petalinux 2016.4 + UltraZed: u-boot compilation failure

Jump to solution

Hi 

 

Post this issue in another thread, with some other exact issue title. Will be more helpful to you.

 

 

Best Regards

Shabbir

0 Kudos