---
# System prepended metadata

title: 第三階段Vivado & Vitis的環境建立✅
tags: [Embedded Linux, Finished]

---

# 第三階段Vivado & Vitis的環境建立 ✅

## Microblaze Risc-V Speed Run
https://www.youtube.com/watch?v=TiSsFqoKmkY
可以參考這個影片，可以幫助你快速驗證環境

## 執行 Dhrystone
![image](https://hackmd.io/_uploads/SyoDm7doA.png)
![image](https://hackmd.io/_uploads/rJBu7m_o0.png)

## GPIO IP
https://www.youtube.com/watch?v=oBV-xA_JDFE&t=1323s

## AXI4-Lite
https://www.youtube.com/watch?v=oBV-xA_JDFE&t=1323s


## Vivado install on WSL2 Ubuntu 24.02

```bash=
sudo dpkg-reconfigure locales
```

choose the en_US.UTF-8

https://dspdev.io/en/posts/vivado-2024-ubuntu/
https://blog.yanaerobe.top/posts/vivado-wsl2/

## Vivado install on Fresh Ububtu 22.04

Install the dependencies first
```bash=
sudo apt update
sudo apt upgrade
sudo apt install libncurses5
sudo apt install libtinfo5
sudo apt install libncurses5-dev libncursesw5-dev
sudo apt install ncurses-compat-libs
```

Use the downloads and after install. You will save a lot of time to trail and error to download files.

Modify the bashrc to install the path

```bash=
source /tools/Xilinx/Vivado/2024.1/settings64.sh
```


## Vitis command gui is not display

<Vitis_install_path>/Vitis/bin/vitis

```diff=
--- vitis
+++ vitis
@@ -566 +566,2 @@
-$XILINX_VITIS/ide/electron-app/lnx64/vitis-ide --no-sandbox --log-level=debug $workspace_path ${analyzeArgs[@]} > /dev/null 2>&1 &
+$XILINX_VITIS/ide/electron-app/lnx64/vitis-ide --no-sandbox --log-level=debug $workspace_path ${analyzeArgs[@]}
```

```shell=
/home/eastwillow/Xilinx/2025.1/Vitis/ide/electron-app/lnx64/vitis-ide: /home/eastwillow/Xilinx/2025.1/Vitis/lib/lnx64.o/Ubuntu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/x86_64-linux-gnu/libgallium-24.2.8-1ubuntu1~24.04.1.so)
```
```shell
dpkg -l | grep libgallium
ii  mesa-libgallium:amd64                          24.2.8-1ubuntu1~24.04.1                  amd64        shared infrastructure for Mesa drivers
````

```shell=
/home/eastwillow/Xilinx/2025.1/Vitis/ide/electron-app/lnx64/vitis-ide: /home/eastwillow/Xilinx/2025.1/Vitis/lib/lnx64.o/Ubuntu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by /lib/x86_64-linux-gnu/libLLVM.so.19.1)
```
```shell=
dpkg -l | grep libllvm
ii  libllvm19:amd64                                1:19.1.1-1ubuntu1~24.04.2                amd64        Modular compiler and toolchain technologies, runtime library
```

```diff=
--- vitis
+++ vitis
@@ -223 +223,2 @@
-LD_LIBRARY_PATH=$XILINX_VITIS/lib/lnx64.o:$LD_LIBRARY_PATH
+LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$XILINX_VITIS/lib/lnx64.o:$LD_LIBRARY_PATH
```