Skip to content

Instantly share code, notes, and snippets.

@btgoodwin
Forked from sohnryang/vivado-on-m1-mac.md
Created June 21, 2023 12:56

Revisions

  1. @sohnryang sohnryang revised this gist Oct 26, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vivado-on-m1-mac.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Running Vivado on M1 Mac using Rosetta 2
    # Running Vivado on ARM64 Mac using Rosetta 2

    macOS Ventura supports running x86-64 binaries on Linux VMs. However, even with Rosetta installing Vivado is not a simple one-click process. This guide covers some workarounds and tricks to get Vivado up and running on ARM64 Mac.

  2. @sohnryang sohnryang created this gist Oct 26, 2022.
    33 changes: 33 additions & 0 deletions vivado-on-m1-mac.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    # Running Vivado on M1 Mac using Rosetta 2

    macOS Ventura supports running x86-64 binaries on Linux VMs. However, even with Rosetta installing Vivado is not a simple one-click process. This guide covers some workarounds and tricks to get Vivado up and running on ARM64 Mac.

    0. Make sure you're running macOS Ventura or higher.
    1. Install [UTM](https://mac.getutm.app/) and create a Debian VM with Rosetta according to [their guide](https://docs.getutm.app/guides/debian/).
    - Other distributions should also work, but commands will be different.
    2. Install x86-64 version of java and `libtinfo`. Vivado depends on them.

    ```shell
    $ sudo apt install default-jdk:amd64 libtinfo5:amd64
    ```

    3. Download a copy of self-extracting web installer from [Xilinx website](https://www.xilinx.com/support/download.html).
    4. Run the installer with `--confirm` flag.

    ```shell
    $ /path/to/vivado/installer --confirm
    ```

    5. The installer will print something like `About to extract 40 KB in /tmp/selfgzXXXX ... Proceed ?`. Check the path `/tmp/selfgzXXXX`, and proceed.
    6. After extracting, the installer will ask about running `./xsetup`. Before pressing `y`, open `/tmp/selfgzXXXX/xsetup` in your editor and delete architecture checking code which looks like this:

    ```shell
    # ERROR out if this installation is running on 32 bit OS
    # and does not support 32 bit installation
    if [ "$(uname -m)" != "x86_64" ]; then
    ...
    fi
    ```

    7. Save the file and press `y` in the installer. Continue with installation as usual.
    8. Patch the `loader`. Open `/path/to/xilinx/Vivado/2022.2/bin/loader` in your editor, where `/path/to/xilinx` is the path to Xilinx software suite installation. Remove architecture checking code as you did on step 6.