Article directory
Install Vivado in Ubuntu
The settings for cross-system file copying have been introduced in the article Ubuntu installation and settings .
Find a folder in Ubuntu where the Vivado software installation package needs to be stored, and drag the installation package directly from the Windows system to the folder on the Ubuntu system to copy it, as shown in the figure below.
The file will be copied to the virtual machine first, and then copied to the directory specified by Ubuntu. Since the installation package is relatively large, it will be copied slowly. Please wait patiently for the copy to complete.
After copying, right-click the installation package and click Extract Here to decompress it.
Wait for decompression to complete.
Wait for it to extract the file.
Open the terminal, use the command to enter the decompressed folder, and enter the following command to modify the file permissions.
sudo chmod +x xsetup
The screenshot of the running result is as follows.
Use the command below to install it.
sudo ./xsetup
After entering the command and pressing Enter, the following window pops up.
When the following window appears, click Ignore.
Prompt to close all anti-virus software before installation.
Check all the I Agree boxes.
Check Vivado HL Design Edition.
SDK must be checked.
Use the default installation path.
Click Install.
Wait for its installation to complete.
The installation process took about 20 minutes.
Load License
Next copy the license.
It shows that the License has been installed successfully.
Modify software running permissions
The installation location of Vivado is in the /opt/Xilinx/ folder in the root directory of the computer.
Run the following command to add run permissions.
sudo chmod 777 -R /opt/Xilinx/
sudo chmod 777 -R ~/.Xilinx/
Install downloader driver
Run the following command in the terminal window to enter the corresponding directory.
cd /opt/Xilinx/Vivado/2017.4/data/xicom/cable_drivers/lin64/install_script/install_drivers/
Then use the following command to install the downloader driver.
sudo ./install_drivers
As shown in the picture below, the installation is successful.
Run Vivado software
Run the following two commands in the terminal window to open the Vivado software.
source /opt/Xilinx/Vivado/2017.4/settings64.sh
vivado &
The Vivado software prints the following information in the terminal window during the startup process.
Wait for the Vivado software to start. After the startup is successful, the interface is shown in the figure below.
Connect the development board to test the driver
Next, connect the development board to test whether the driver is installed successfully. First, set the USB compatibility to USB 3.0 when the virtual machine is turned off, as shown in the figure below.
Then turn on the virtual machine, start the Vivado software, and the following dialog box will pop up after connecting the development board.
Select Connect to the virtual machine and click OK.
The following dialog prompts us where to find the device.
Then click Open Hardware Manager in Vivado to test, as shown in the figure below.
It can be seen that the software detects the existence of the chip, and the power of the development board is turned off, and the Vivado software can also pop up the following prompt window as it runs in the Windows system.
cross compiler
When installing Vivado, you have chosen to install the SDK, which includes the cross-compiler arm-linux-gnueabihf-gcc.
Enter the following command to view the cross compiler.
source /opt/Xilinx/SDK/2017.4/settings64.sh
arm-linux-gnueabihf-gcc -v
The printed information is shown below.
The above is all about installing Vivado software in Ubuntu!
Reference materials:
ZYNQ development platform Linux application tutorial