2018.2.2 Xilinx Linux Dev for the ZC706 on Win7 SP1 via VirtualBox 6.0.10

Updated: Aug 17, 2019

These instructions help you install all the components to do Linux development for the ZC706 (containing a XC7Z045 FFG900 – 2 SoC, Zynq-7000) on Windows via VirtualBox running Ubuntu 2016.04.3 using Xilinx's 2018.2 development environment.


What You'll Download and Install

You'll need to download over 30 GBs of data including:

  • VirtualBox 6.0.10 (30 MB)

  • ubuntu-16.04.5-desktop-amd64.iso (1.47 G)

  • VirtualBox Extension Pack for 6.0.10 (23 MB)

  • Vivado 2018.2 (includes SDK) (17.10 GB)

  • Vivado 2018.2.2 Update (5.88 GB)

  • PetaLinux 2018.2 (6.14 GB)

  • ZC706 BSP for PetaLinux 2018.2 (106 MB)

Note: sizes are rounded

You will Need a Vivado License

The ZC706 utilizes a XC7Z045 FFG900 – 2 SoC Zynq-7000. This part is not included in the free Vivado Design Suite WebPACK™ tool (see [link] for the supported architectures). The ZC706 includs a Zynq-7000 AP SoC ZC706 Evaluation Kit, Device Locked, Node Locked license good for 1 year.

This also means that during installation you will select the Vivado HL Design Edition (see [link] for the differences).


Download Ubuntu, PetaLinux, Vivado & SDK, and ZC706

Note: You must login to Xilinx to use some of these links.

Step 1: Create C:\downloads

Step 2: Download 64-bit Ubuntu 16.04.5 from [link] to C:\downloads

Step 3: Download PetaLinux Tools 2018.2 from [link] (login required) to C:\downloads

Step 4: Download ZC706 PetaLinux Tools BSP from [link] (login required) to C:\downloads

Step 5: Download 2018.2 Vivado & SDK full install from [link] (login required) to C:\downloads

Step 6: Download 2018.2.2 update from [link] to C:\downloads

Download and Install VirtualBox and the VirtualBox Extension Pack on Win 7

Note: These steps will work if you're installing or upgrading.

Step 1: Download VirtualBox 6.0.10 from [link] (30 MB) and install it to C:\Program Files\Oracle\VirtualBox\

Note: During installation, on the Customer Setup page, click on the drop-down box next to VirtualBox Application and select Entire feature will be installed on local hard drive

Note 2: "Click-through the installer," use defaults and say yes to install the extra drivers

Step 2: Download the Oracle VM VirtualBox Extension Pack for 6.0.10 from [link] (23 MB) and install it

Note: The pack contains USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe

Create a VM

Step 1: Open VirtualBox and select New

Step 2: Set:

A. Name to ubuntu-16.04.5-desktop-amd64-8GB-RAM-120GB-Disk

B. Leave default for Machine Folder

C. Type to Linux

D. Version to Ubuntu (64-bit)

E. Click Next

Step 3: Set Memory size to 8192 MB and click Next

Step 4: leave the Create a virtual hard disk now radio-button selected and click Create

Step 5: Leave the VDI (VirtualBox Disk Image) radio-button selected and click Next

Step 6: Leave the Dynamically allocated radio-button selected and click Next

Step 7: Set the size of the Virtual Hard Disk file to 120.00 GB and click Create

Install 16.04.5

Step 1: Select the VM you just created (ubuntu-16.04.5-desktop-amd64-8GB-RAM-120GB-Disk) in the Oracle VM VirtualBox Manager

Step 2: Click on [Optical Drive] Empty

Step 3: Select Choose disk image...

Step 4: Select the 64-bit Ubuntu 16.04.5 ISO you downloaded above to c:\downloads

Step 5: Click Start in the Oracle VM VirtualBox Manager and let Ubuntu boot to the Try Ubuntu / Install Ubuntu screen

Step 6: Click Install Ubuntu

Step 7: Check the Download updates while installing Ubuntu and Install third-party software for graphics and Wi-Fi hardware, Flash, MP3 and other media check-boxes and click Continue

Step 8: Leave the Erase disk and install Ubuntu radio-button selected and click Install Now

Step 8.1: Click continue on the Write the changes to disks? pop-up

Step 9: List where your timezone is and click Continue

Step 10: Select your keyboard and click Continue

Step 11: Enter:

A. Your name

B. Your computer's name

C. Pick a username

D. Choose a password

E. Confirm your password

F. Leave the Log in automatically radio button unselected

G. Leave the Require my password to log in selected

H. Leave Encrypt my home folder unselected

I. Click Continue

Ubuntu will start to install

Step 12: Click Restart Now

Step 13: Press ENTER at the Please remove the installation medium, then press ENTER: screen

Ubuntu will reboot into the Log In screen

Note: as you run Ubuntu may ask if you'd like to upgrade to 18.04.2 LTS. Click Don't Upgrade then click OK.

Install VirtualBox Guest Additions

Step 1: Install the correct Linux headers

Note: this doesn't need to be done, it will already be done

A. Right-click in the Ubuntu guest and select Open Terminal

B. Type sudo apt-get install linux-headers-$(uname -r)

Note: You should see a message saying that they are already installed:

Step 2: Type sudo apt-get install build-essential kernel-package

Step 2.1: Type Y to download and install 1,345 MB

Step 3: You'll see a Package configuration pop-up window:

Select install the package maintainer's version and select Ok

Step 4: Power off the virtual machine

Step 5: In the Oracle VM VirtualBox Manager select click on [Optical Drive] Empty and select Choose disk image... Select C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso

Step 6: Start the virtual machine

Step 7: After it boots, right-click on the desktop and select Open Terminal

Step 8: Type cd /media/$USER/VBox_GAs_6.0.10/

Step 9: Type sudo sh ./VBoxLinuxAdditions.run

You should see:

Step 10: Power off the virtual machine

Step 11: Click [Optical Drive] VBoxGuestAdditions.iso (73.59 MB) and select Remove disk from virtual drive

Step 12: Start the virtual machine

Step 13: Test the install by resizing the window containing the VM, you should see the desktop resize

Enable Copy/Paste

In the VirtualBox virtual machine window, click Devices > Shared Clipboard > Bidirectional

Test by opening a terminal, copying the text and pasting it into a Notepad. Then type something in Notepad copy it and paste it into the terminal.

Mount C:\downloads in the Guest

Step 1: In the VirtualBox virtual machine window, click Devices > Shared Folders > Shared Folders Settings...

Step 2: Click the folder with the plus sign:

Step 3: Fill in the Shared Folder fields:

A. Set Folder Path to C:\downloads (The Folder Name field will auto populate)

B. Check the Auto-mount checkbox

C. Click OK (you'll be sent back to the Shared Folder screen)

D. Click OK again on the Shared Folder

Test it by opening a terminal and typing: sudo ls /media/sf_downloads/

Note: you can now copy/paste this command into the terminal now because you've enabled that :)

Step 4: Change permissions so that you don't need to sudo

Type: sudo usermod -G vboxsf -a $USER

Step 5: Log off, log in and open a terminal

Test by typing ls /media/sf_downloads

Prepare a Vivado Install Directory

Step 1: In the terminal type sudo mkdir -p /opt/Xilinx

Step 2: In the terminal type sudo chmod -R a+rwX /opt/Xilinx

Note: the steps prepare a directory that all users can read, write and execute. See [link] for what the capital X means.

Install Vivado 2018.2 on Ubuntu

Step 1: Open a terminal and type cd /media/sf_downloads

Step 2: Extract the archive

Type: tar -zxvf Xilinx_Vivado_SDK_2018.2_0614_1954.tar.gz

Step 3: Type cd Xilinx_Vivado_SDK_2018.2_0614_1954/

Step 4: Type ./xsetup

You should see:

Step 5: Click the Continue button on the "A Newer Version Is Available" pop-up

Step 6: Click Next > on the Welcome screen

Step 7: Accept the 3 agreements on the Accept License Agreements screen and click Next >

Step 8: Click the Vivado HL Design Edition radio button and click Next >

Step 9: Accept the defaults on the Vivado HL Design Edition customization page and click Next >. The default install will use cost 37.06 GB.

or to save some install space and install time...

...you can delete components you don't need and get the install size disk needed down to 24.8 GB, a savings of over 12 GB, using the following options:

Step 10: Click Next > at the Select Destination Directory screen (will install Vivado into /opt/Xilinx)

Step 11: Click Install at the Installation Summary screen

Step 12: At the Vivado License Manager 2018.2 screen enter your license details

Step 13: Close Vivado

Install the Vivado 2018.2.2 Update

Step 1: Open a terminal and type cd /media/sf_downloads

Step 2: Extract the archive

Type: tar -zxvf Xilinx_Vivado_SDx_Update_2018.2.2_1001_1805.tar.gz

Step 3: Type cd Xilinx_Vivado_SDx_Update_2018.2.2_1001_1805/

Step 4: Type ./xsetup

You should see a Vivado splash screen followed by a Welcome screen

Step 5: Click the Next > button at the Welcome screen

Step 6: Check that the install directory is correct and click the Install button at the Update Summary screen

Step 7: Click the Continue button if you have Vivado running and see a Close Xilinx applications pop-up

Note: it took my set up (VirtualBox on Windows 7 SP1 on a ThinkPad 460 4 min)

Step 8: Click the OK button on the Update completed successfully pop-up

Configure the Virtual Machine for Vivado Cable Drivers

Step 1: If Ubuntu is running in a virtual machine, power off Ubuntu.

Step 2: In the VirtualBox Manager, ensure the virtual machine configuration is selected and click Settings

Step 3:

A. Click USB in the left handed frame and then

B. Click the USB 3.0 (xHCI) Controller radio button

C. Click OK

Step 4: Start the virtual machine and let Ubuntu completely boot

Install the Vivado Cable Drivers

Step 1: Open a new terminal

Step 2: Type:

cd /opt/Xilinx/Vivado/2018.2

cd ./data/xicom/cable_drivers/lin64/install_script/install_drivers

sudo ./install_drivers

You should see:

Step 3:

A. Set the ZC706 to boot from JTAG

B. Plug the power supply into the ZC706

C. Plug the the Micro-USB B connector into the JTAG-to-USB port and the USB A-Type connector into your computer or a USB hub connected to your computer

D. Plug the USB Mini-b (5-pin) connector into the USB UART port and the USB A-Type connector into your computer or a USB hub connected to your computer

E. Power on the ZC706 using the switch SW1

Step 4: