element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
FPGA
  • Technologies
  • More
FPGA
Forum Install Vivado, Vitis and PetaLinux on Windows Sublayer for Linux
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
FPGA requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 13 replies
  • Subscribers 517 subscribers
  • Views 9154 views
  • Users 0 members are here
  • zynq
  • vivado
  • wsl2
  • pynq
Related

Install Vivado, Vitis and PetaLinux on Windows Sublayer for Linux

Jan Cumps
Jan Cumps over 3 years ago

I'm installing the Vitis and Vivado tools on a WSL instance.
Most of tutorials on scripting and build automated are for Linux. I want to test this out.
My WSL runs Ubuntu 20.04.3 LTS.

I was surprised that WSL actually shows the install GUI. I thought it was only capable of terminal activity by default.

image

If the install succeeds, I'll also install PetaLinux.
The end goal is to build a Non-PYNQ, home made custom Linux image, and generate an SD card for it.
I want to see if I can make a FPGA design, write drivers for the custom hardware, and have the FPGA bitstream automatically loaded when the board starts from that image.
Big goals. I expect it 'll take months.

  • Sign in to reply
  • Cancel

Top Replies

  • Jan Cumps
    Jan Cumps 7 months ago +3
    For 2024.1, some extra steps are needed. Before running the installer, to avoid that it hangs during the post-processing steps: sudo apt install libncurses5 Vitis uses VSCode now, I had to install…
  • Fred27
    Fred27 over 3 years ago +2
    WSL2 is a different beast to v1 which couldn't display a GUI. I remember trying to install Vivado and petalinux on WSL quite a while ago. I think it was 2019.1 and perhaps in the early days of WSL2.…
  • Jan Cumps
    Jan Cumps over 3 years ago +1
    Fun fact: Windows draws a little Tux in the taskbar icon for this Linux GUI program, and appends (Ubuntu) on the tooltip text:
Parents
  • Jan Cumps
    Jan Cumps over 3 years ago

    Fun fact:

    Windows draws a little Tux in the taskbar icon for this Linux GUI program, and appends (Ubuntu) on the tooltip text:

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to Jan Cumps

    During the install you get a warning that the Digilent JTAG driver will not be installed. It has to be done separately on Linux.
    The reason is that all the rest of the installation can be done without elevated rights.
    The installer points to application note UG973 for instructions.
    The process is easy:

    sudo /tools/Xilinx/Vivado/2020.2/data/xicom/cable_drivers/lin64/install_script/install_drivers/install_drivers

    image

    That's it.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to Jan Cumps

    Todo after install:
    cd /tools/Xilinx/Vitis/2020.2/scripts
    sudo ./installLibs.sh

    Then:

    source /tools/Xilinx/Vivado/2020.2/settings64.sh
    vivado

    Success:

    image

    For Vitis to work, I had to manually install a missing dependency:

    sudo apt-get install libswt-gtk-4-java

    Then, run Vitis:

    source /tools/Xilinx/Vitis/2020.2/settings64.sh
    vitis

    I have issues with the start up dialog's size, trying to work around that ...

    image

    ... I unexpectedly fixed it by checking the "Use this as default." box, then pressing tab and enter.
    It was a bogus key sequence, but it rendered the dialog big enough for the Launch button:

    image

    Vitis HLS works too:

    source /tools/Xilinx/Vitis_HLS/2020.2/settings64.sh
    vitis_hls

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to Jan Cumps

    Todo after install:
    cd /tools/Xilinx/Vitis/2020.2/scripts
    sudo ./installLibs.sh

    Then:

    source /tools/Xilinx/Vivado/2020.2/settings64.sh
    vivado

    Success:

    image

    For Vitis to work, I had to manually install a missing dependency:

    sudo apt-get install libswt-gtk-4-java

    Then, run Vitis:

    source /tools/Xilinx/Vitis/2020.2/settings64.sh
    vitis

    I have issues with the start up dialog's size, trying to work around that ...

    image

    ... I unexpectedly fixed it by checking the "Use this as default." box, then pressing tab and enter.
    It was a bogus key sequence, but it rendered the dialog big enough for the Launch button:

    image

    Vitis HLS works too:

    source /tools/Xilinx/Vitis_HLS/2020.2/settings64.sh
    vitis_hls

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to Jan Cumps

    If you want to use the JTAG in Linux, you need to pass the USB device from Windows to WSL.
    Here are the instructions.

    It works, but the hw manager only finds the board if I start Vivado with sudo.

    image

    I'm checking how I can get access to /dev/ttyUSB1 as normal user.
    I'm already in the dialout group, but that doesn't seem to help.
    chmod 666 doesn't help either. Investigating ...

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps 7 months ago in reply to Jan Cumps

    The solution is documented here: https://boxlambda.readthedocs.io/en/latest/installation/#on-wsl

    add the following lines to /etc/wsl.conf:

    [boot]
    command="service udev start"
    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps 7 months ago in reply to Jan Cumps

    this is an easier to follow instruction: https://hackmd.io/@aeefs2Y8TMms-cjTDX4cfw/r1fqAa_Da

    Follow the instruction for OpenOCD. The FTDI driver on the Pynq Z2 is covered by that.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube