Post Go back to editing

Error when trying to create HDL file for petalinux installation on ADRV9361-Z7035 board

Category: Software
Software Version: Vivado 2021.2

Hi all,

I'm trying to generate the necessary files to install Petalinux on the ADRV9361-Z7035 board. At this moment, I am trying to build the HDL file using the Vivado 2021.2 software installed on a Linux Ubuntu version 23.04. I'm following the instructions available at: wiki.analog.com/.../build

I have no experience with this process, but I downloaded the HDL files and am trying to run the "make" inside the project folder (hdl/projects/adrv9361z7035/ccbob_cmos/), but I am getting the following error message:


Building axi_ad9361 library [/tools/Xilinx-full/Vivado/2021.2/hdl/library/axi_ad9361/axi_ad9361_ip.log] ... FAILED
For details see /tools/Xilinx-full/Vivado/2021.2/hdl/library/axi_ad9361/axi_ad9361_ip.log

make[1]: *** [../scripts/library.mk:89: component.xml] Error 127
make: *** [../../scripts/project-xilinx.mk:81: lib] Error 2

Checking the log file indicated in the message, the following message is displayed: /bin/sh: 1: vivado: not found

I have already checked the vivado patch and apparently it is correct. The command "witch vivado" returns: /tools/Xilinx-full/Vivado/2021.2/bin/vivado

I ran the settings64.sh script before starting the make command and added the following line to the bash.bashrc = export PATH=$PATH:"/tools/Xilinx-full/Vivado/2021.2/bin"

All the tries have been unsuccessful. Does anyone have any suggestions?

Thanks!

Top Replies

    •  Analog Employees 
    •  Super User 
    May 19, 2023 +1 verified

    Hi  ,

    The problem is that you cloned the HDL repository in the installation folder of Vivado, and that's why you had issues with permissions too.

    Please make a clone at a different path, not in…

  • Hi,

    This error is solely regarding the installation path for Vivado, and if that is not sourced properly, the make scripts cannot use Vivado to build the project.

    Just to make sure this was done: did you source ~/.bashrc? Maybe it wasn't sourced and didn't apply your export PATH.

    Did you try to source the settings64.sh file and to make the export of the path, in the terminal? Like this:

    export PATH=$PATH:"/path/to/Xilinx/installation/Vivado/2022.2/bin
    source /path/to/Xilinx/installation/Vivado/2022.2/settings64.sh

    Best regards,
    Iulia

  • Hi,

    Thanks for your reply and help  .

    ust to make sure this was done: did you source ~/.bashrc?

    yes, I did. I edited the file bash.bashrc and source.

    Did you try to source the settings64.sh file and to make the export of the path, in the terminal?

    Yes, I tried to follow this sequence. Here are some results from the terminal:

    pml@pml-PC:/tools/Xilinx-full/Vivado/2021.2/bin$ echo $PATH
    /tools/Xilinx-full/Vitis_HLS/2021.2/bin:/tools/Xilinx-full/Vivado/2021.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/tools/Xilinx-full/Vivado/2021.2/bin

    pml@pml-PC:/tools/Xilinx-full/Vivado/2021.2/bin$ which vivado
    /tools/Xilinx-full/Vivado/2021.2/bin/vivado

    I continue to receive the same error message during make. 

  • After you source the settings64.sh file does your PATH change? What shell are you using?

    -Travis

  • Hi  ,

    thanks for your reply. 

    After you source the settings64.sh file does your PATH change?

    yes. After I source the settings64.sh file, one more path was added. See below: 

    full/Vivado/2021.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/tools/Xilinx-full/Vivado/2021.2/bin:/tools/Xilinx-full/Vivado/2021.2/bin

    What shell are you using?

    I'm using bash.

  • hmmm. For completeness give you run the following and provide the output:

    echo $SHELL
    echo $PATH
    source /tools/Xilinx-full/Vivado/2021.2/settings64.sh
    echo $PATH
    vivado -version
    cd /tools/Xilinx-full/Vivado/2021.2/hdl/projects/adrv9361z7035/ccbob_cmos
    make

    -Travis

  • Hi  , 

    I restarted the computer and ran the commands as suggested. I added a "sudo make" at the end, because the first error is access denied. 

    pml@pml-PC:~$ echo $SHELL
    /bin/bash
    
    pml@pml-PC:~$ echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/tools/Xilinx-full/Vivado/2021.2/bin:/snap/bin:/tools/Xilinx/Vivado/2022.2/bin:/tools/Xilinx/Vivado/2022.2/bin
    
    pml@pml-PC:~$ source /tools/Xilinx-full/Vivado/2021.2/settings64.sh
    
    pml@pml-PC:~$ echo $PATH
    /tools/Xilinx-full/Vitis_HLS/2021.2/bin:/tools/Xilinx-full/Vivado/2021.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/tools/Xilinx-full/Vivado/2021.2/bin:/snap/bin:/tools/Xilinx/Vivado/2022.2/bin:/tools/Xilinx/Vivado/2022.2/bin
    
    pml@pml-PC:~$ vivado -version
    Vivado v2021.2 (64-bit)
    SW Build 3367213 on Tue Oct 19 02:47:39 MDT 2021
    IP Build 3369179 on Thu Oct 21 08:25:16 MDT 2021
    Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.
    
    pml@pml-PC:~$ cd /tools/Xilinx-full/Vivado/2021.2/hdl/projects/adrv9361z7035/ccbob_cmos
    
    pml@pml-PC:/tools/Xilinx-full/Vivado/2021.2/hdl/projects/adrv9361z7035/ccbob_cmos$ make
    rm: cannot remove 'axi_ad9361_ip.log': Permission denied
    Building axi_ad9361 library [/tools/Xilinx-full/Vivado/2021.2/hdl/library/axi_ad9361/axi_ad9361_ip.log] .../bin/sh: 1: cannot create axi_ad9361_ip.log: Permission denied
     FAILED
    For details see /tools/Xilinx-full/Vivado/2021.2/hdl/library/axi_ad9361/axi_ad9361_ip.log
    
    make[1]: *** [../scripts/library.mk:89: component.xml] Error 2
    make: *** [../../scripts/project-xilinx.mk:81: lib] Error 2
    
    pml@pml-PC:/tools/Xilinx-full/Vivado/2021.2/hdl/projects/adrv9361z7035/ccbob_cmos$ sudo make
    [sudo] password for pml: 
    Building axi_ad9361 library [/tools/Xilinx-full/Vivado/2021.2/hdl/library/axi_ad9361/axi_ad9361_ip.log] ... FAILED
    For details see /tools/Xilinx-full/Vivado/2021.2/hdl/library/axi_ad9361/axi_ad9361_ip.log
    
    make[1]: *** [../scripts/library.mk:89: component.xml] Error 127
    make: *** [../../scripts/project-xilinx.mk:81: lib] Error 2

    An additional remark is that all folders and subdirectories located within "/tools/Xilinx-full/Vivado/2021.2" have been set with chmod 777 (full permission).

  • Hi  ,

    The problem is that you cloned the HDL repository in the installation folder of Vivado, and that's why you had issues with permissions too.

    Please make a clone at a different path, not in the folder /tools or any of its subfolders.

    Best regards,
    Iulia

  • Hi  ,

    your suggestion worked, thanks. I did a clone from github to /opt/ and change the branch for the same version from vivado (hdl_2021_r2). I also logged with admin using sudo -i before to run the make.