Whilst trying to build the example Xilinx ZCU102 platform build supplied by ADI with the supplied make file, I get the following error during the software builds. What should I (or the make file) be setting, possibly in .bashrc, so as to make the standard Vitis header files visible to the software build ?
make[3]: Entering directory '/cygdrive/d/projects/adrv9001_zcu102/sw'
aarch64-none-elf-gcc -DADRV9001_ZCU102_BASE -Dlvds -I../../../../platform-bsp/zcu102/sw/xilws/zcu102/zynqmp_fsbl/zynqmp_fsbl_bsp/psu_cortexa53_0/include -I../../../library/common/sw -I../../../library/axi_adrv9001/sw -I../../../library/axi_rxdma/sw -I../../../library/axi_txdma/sw -I../../../library/axi_sysid/sw -I../../../library/axi_mspi/sw -I../../common/sw -I../../adrv9001_common/sw -Wall -O0 -g3 -c -fmessage-length=0 -fno-diagnostics-color -MMD -MP -MT"lvds/objs/axi_clkgen.o" -MF"lvds/objs/axi_clkgen.d" -o lvds/objs/axi_clkgen.o ../../../library/common/sw/axi_clkgen.c
In file included from d:\library\common\sw\axi_clkgen.h:23,
from d:\library\common\sw\axi_clkgen.c:20:
../../common/sw/axi_common.h:26:10: fatal error: xil_io.h: No such file or directory
26 | #include <xil_io.h>
| ^~~~~~~~~~
Hi Mark,
As this question is more focused on the Linux software end of things than it is with the ADRV9001 itself, I'm moving this question to the Linux Software Drivers forum, and someone should assist you there soon.
Kind Regards,
Michał
Please see here: https://wiki.analog.com/resources/no-os/build
It looks like you are using cygwin. You will need to use CMD or Powershell on windows.
-Travis
The ADI build notes specifically recommend the use of Cygwin and ADI provide all of the makefile scripts in order to perform the builds. I was hoping that there would be a simple fix that sets up the search paths to the required Xilinx .h files. There is a Xilinx settings64-Vitis.sh that can be sourced (from the same directory as settings64.bat) but this appears to only setup the paths to the tool build tool directories (PATH variable) and not and form of link to the directory containing the above mentioned .h file.
Can you point me to that doc? The link I sent explicitly says not cygwin
-Travis
So thats for the HDL and not No-OS. Im sorry this is a little confusing but HDL support cygwin but No-OS does not.
-Travis
The makefile is a single unified makefile for both HDL build (works ok) followed by embedded software, calling a number of sub makefiles along the way (unique to HDL / software and multiple target board types). All HDL builds finish ok for all board types but the very first software sub makefile fails with the above error. Hence, the software makefiles seem to be expecting the path to these Xilinx-supplied .h files to have been setup somewhere within the environment, i.e., possibly some sort of environmental within the .bashrc. The .bashrc does setup paths to the Xilinx executables and this is working ok, but the software build is missing the ability to see the .h files.
Can you provide the error from the CMD or Powersheel prompt you receive when building? What branches of No-OS and HDL are you using?
-Travis
I am not using CMD or Powershell, as I am using the recommended Cygwin build environment. The download is from the following link (ADRV9001-SDK Evaluation Software (ZIP)).
Wideband RF Transceiver Evaluation Software | Analog Devices
Ok you are using the SDK and not No-OS. Let me move you to that support forum.
-Travis