Post Go back to editing

Compile Error ZCU102+ADRV9009 no-OS (2019_r2): unable to find xil_io.h

Hi,

I am following the instructions given here https://wiki.analog.com/resources/no-os/build. I am using 2019_r2 branch for HDL and no-OS codes and my Vivado version is 2019.1. I noted that Cygwin is not supported and tried using Ubuntu 20.04 on Windows instead although I am not sure if this is supported. In any case, below is the printout on the console. Is there any fix to make it work?

[17:22:15] Building for xilinx
[17:22:15] Evaluating hardware: system_top.hdf
[17:22:46] Creating and configuring the IDE project
[17:23:17] Linking srcs to created project
[17:23:18] [CC] axi_adc_core.c
[17:23:20] [CC] axi_dac_core.c
[17:23:23] [CC] axi_dmac.c
[17:23:26] [CC] clk_axi_clkgen.c
[17:23:29] [CC] axi_adxcvr.c
[17:23:31] [CC] axi_jesd204_rx.c
[17:23:34] [CC] axi_jesd204_tx.c
[17:23:37] [CC] xilinx_transceiver.c
[17:23:39] [CC] ad9528.c
[17:23:42] [CC] hmc7044.c
[17:23:45] [CC] gpio.c
[17:23:47] [CC] axi_io.c
/mnt/d/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/platform/xilinx/axi_io.c:44:10: fatal error: xil_io.h: No such file or directory
44 | #include <xil_io.h>
| ^~~~~~~~~~
compilation terminated.
make[1]: *** [../../tools/scripts/generic.mk:305: /mnt/d/Vincent/adi/no-OS/projects/adrv9009/build/objs/adrv9009/build/app/noos/drivers/platform/xilinx/axi_io.o] Error 1
make: *** [../../tools/scripts/generic.mk:280: all] Error 2

Parents
  • Hello,

    When you say you are using Ubuntu on Windows do you mean a virtual machine, or WSL?

    The xil_io.h header is a part of the Xilinx BSP and should be added to the project in the "Evaluating hardware: system_top.hdf" part.

    First let's try building the project using an admin CMD on Windows. That is the standard way of doing it and should generate the least errors. Secondly, I do recommend trying to use Vitis 2021.1 as that is our currently supported tool. Lastly, we may see more details of what happens if you run the "make VERBOSE=y" command. Post the output for that here if the problem is still not solved.

    Regards,
    Andrei

  • Hi Andrei,

    I am using WSL from https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-10#3-download-ubuntu.

    I tried following the instructions using Powershell and CMD but encountered other issues. I am able to run settings64.bat but "make" command is not recognized which I had installed from http://gnuwin32.sourceforge.net/packages/make.htm. After executing "make", I got the following printout:

    [00:00:00] Building for xilinx
    [00:00:00] [CC] axi_io.c
    process_begin: CreateProcess(NULL, cc -c -DXILINX_PLATFORM -fdata-sections -ffunction-sections -O2 -g3 -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/src -ID:/Vincent/adi/no-OS/projects/adrv9009/build/bsp//include -Wall -Wmissing-field-initializers -Wclobbered -Wempty-body -Wignored-qualifiers -Wmissing-parameter-type -Wno-format -Wold-style-declaration -Woverride-init -Wsign-compare -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wno-unused-parameter -MMD -MP -lm -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/adrv9009/profiles/tx_bw100_ir122p88_rx_bw100_or122p88_orx_bw100_or122p88_dc122p88/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/adrv9009/src/app/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/adrv9009/src/devices/adi_hal/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/axi_core/axi_adc_core/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/axi_core/axi_dac_core/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/axi_core/axi_dmac/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/axi_core/clk_axi_clkgen/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/axi_core/jesd204/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/frequency/ad9528/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/frequency/hmc7044/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/platform/xilinx/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/rf-transceiver/talise/api/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/rf-transceiver/talise/firmware/ -ID:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/include/ D:/Vincent/adi/no-OS/projects/adrv9009/build/app/noos/drivers/platform/xilinx/axi_io.c -o D:/Vincent/adi/no-OS/projects/adrv9009/build/objs/adrv9009/build/app/noos/drivers/platform/xilinx/axi_io.o, ...) failed.
    make (e=2): The system cannot find the file specified.
    make: *** [D:/Vincent/adi/no-OS/projects/adrv9009/build/objs/adrv9009/build/app/noos/drivers/platform/xilinx/axi_io.o] Error 2

    I had started with Vitis 2021.1 but backdated to SDK 2019.1 while building FSBL. Following the instructions from https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841798/Build+FSBL, system HDF is a required input file. I could not find the equivalent instructions to run with Vitis XSA hence decided to use 2019.1 instead.

    I tried "make VERBOSE=y" on WSL and got the same output so won't be repeat the log here.

  • Hello,

    Here is the wiki that explains how to build no-OS projects.

    It seems to me that you were on the right track for the CMD build, but maybe be that the issue there was that you should run "make ca" before every try. This is to delete the build folder and do a new build. If you are using the master branch then the command is "make reset".

    Regards,
    Andrei

  • I believe the wiki you provided is the same as the link I included in my original post which I have been trying to follow the instructions. I pulled the no-OS codes from 2019r2 branch and below is my CMD output. It seems like my environment is the issue even though I checked that I am on Administrator privilege. May I know why is this so?

    D:\Vincent\adi\no-OS\projects\adrv9009>make ca
    [00:00:00] [Delete] D:/Vincent/adi/no-OS/projects/adrv9009/build

    D:\Vincent\adi\no-OS\projects\adrv9009>make
    [00:00:00] Building for xilinx
    [00:00:00] Evaluating hardware: system_top.hdf
    [00:00:00] Creating and configuring the IDE project
    [00:00:00] Linking srcs to created project
    The system cannot find the file specified.
    The system cannot find the file specified.
    The system cannot find the file specified.
    make[1]: [../../tools/scripts/generic.mk:339: update_srcs] Error 2 (ignored)
    You do not have sufficient privilege to perform this operation.
    You do not have sufficient privilege to perform this operation.

    ...
    You do not have sufficient privilege to perform this operation.
    make[1]: *** No rule to make target 'D:/Vincent/adi/no-OS/projects/adrv9009/build/objs/adrv9009/build/app/noos/drivers/axi_core/axi_adc_core/axi_adc_core.o', needed by 'D:/Vincent/adi/no-OS/projects/adrv9009/build/adrv9009.elf'. Stop.
    make: *** [../../tools/scripts/generic.mk:280: all] Error 2

  • Hi Andrei, I found where my issue lies. Although my profile has the administrator privilege, I was unaware that CMD has to be launched explicitly with administrator rights. The "make" command is now able to execute fully albeit with 2 errors that are skipped and several warnings which I shall treat it as a separate issue. Thank you for the support.

Reply
  • Hi Andrei, I found where my issue lies. Although my profile has the administrator privilege, I was unaware that CMD has to be launched explicitly with administrator rights. The "make" command is now able to execute fully albeit with 2 errors that are skipped and several warnings which I shall treat it as a separate issue. Thank you for the support.

Children
No Data