Open junxian-li-hpc opened 1 year ago
安装必要的库文件:
sudo apt install libncurses5 build-essential openjdk-11-jdk
进入vivado的安装文件夹
sudo chmod a+x ./xsetup
进入bash模式,生成配置文件和选择需要安装的产品(Vitis包含Vivado)
./xsetup -b ConfigGen
vivado2017.1选择3. Vivado HL System Edition
,如下图:
vivado2020.2选择1,应该是 vitis,包含了vivado
打开生成的install_config.txt文件,默认路径在~/.Xilinx/install_config.txt
下,软件安装默认路径为/tools/Xilinx文件夹下,如果需要更改,修改install_config.txt的安装路径选项即可
vim ~/.Xilinx/install_config.txt
!!这里自己修改安装目录,底下是我修改后的内容,看感叹号那里,我这个是vivado2020.2的路径:
#### Vitis Unified Software Platform Install Configuration ####
Edition=Vitis Unified Software Platform
Product=Vitis
# Path where Xilinx software will be installed.
# !!!这里改成你自己的安装路径
Destination=/home/lilei/Documents/Programs/Xilinx/
# Choose the Products/Devices the you would like to install.
Modules=Zynq UltraScale+ MPSoC:1,Versal Prime Series:1,DocNav:1,Virtex UltraScale+ HBM:1,Virtex UltraScale+ 58G:1,Virtex UltraScale+ 58G ES:0,Kintex-7:1,Virtex UltraScale+:1,Zynq-7000:1,Versal AI Core Series ES1:0,Kintex UltraScale+:1,Model Composer and System Generator:1,Spartan-7:1,Engineering Sample Devices for Custom Platforms:0,Install devices for Alveo and Xilinx edge acceleration platforms:1,Kintex UltraScale:1,Virtex UltraScale:1,Zynq UltraScale+ RFSoC:1,Versal Prime Series ES1:0,Artix-7:1,Virtex-7:1,Virtex UltraScale+ HBM ES:0,Versal AI Core Series:1,Zynq UltraScale+ RFSoC ES:0
# Choose the post install scripts you'd like to run as part of the finalization step. Please note that some of these scripts may require user interaction during runtime.
InstallOptions=
## Shortcuts and File associations ##
# Choose whether Start menu/Application menu shortcuts will be created or not.
CreateProgramGroupShortcuts=1
# Choose the name of the Start menu/Application menu shortcut. This setting will be ignored if you choose NOT to create shortcuts.
ProgramGroupFolder=Xilinx Design Tools
# Choose whether shortcuts will be created for All users or just the Current user. Shortcuts can be created for all users only if you run the installer as administrator.
CreateShortcutsForAllUsers=0
# Choose whether shortcuts will be created on the desktop or not.
CreateDesktopShortcuts=1
# Choose whether file associations will be created or not.
CreateFileAssociation=1
# Choose whether disk usage will be optimized (reduced) after installation
EnableDiskUsageOptimization=1
启动安装
./xsetup -c ~/.Xilinx/install_config.txt --agree XilinxEULA,3rdPartyEULA,WebTalkTerms --batch Add
进入Vivado的目录文件夹,依次是data->xicom->cable_drivers->lin64->install_script->install_drivers
cd ~/Documents/Programs/Xilinx/
cd Xilinx2020.2/Vivado/2020.2/
cd data/xicom/cable_drivers/lin64/install_script/install_drivers
sudo ./install_drivers
!这个步骤不确定需不需要,我忘记了(16/Sep/2023 更新: 需要这个步骤,不然vivado里检测不到板子)
~/.profile
这一步是我自己加的,博客园上没给这一步,但是去其他的地方搜索的话应该也是会给出这一步的
vim ~/.profile
在打开的文件最后添加(根据你的vivado安装路径,来替换):
export PATH=/home/lilei/Documents/Programs/Xilinx17/Vivado/2017.1/bin:/home/lilei/Documents/Programs/Xilinx17/Vivado_HLS/2017.1/bin:$PATH
注意里面的路径要换成你安装的地方,举个例子,我的vivado2017安装在了如下目录:
我的vivado2022.2安装在了如下目录:
export PATH=/home/lilei/Documents/Programs/Xilinx/Vivado/2020.2/bin:/home/lilei/Documents/Programs/Xilinx/Vitis_HLS/2020.2/bin:$PATH
~/.profile
但是我只在~/.profile
里添加了一个vivado的版本,另一个加了注释,我用2017,所以2020就注释了,或许有其他办法,以后再讨论:
export PATH=/home/lilei/Documents/Programs/Xilinx17/Vivado/2017.1/bin:/home/lilei/Documents/Programs/Xilinx17/Vivado_HLS/2017.1/bin:$PATH
#export PATH=/home/lilei/Documents/Programs/Xilinx/Vivado/2020.2/bin:/home/lilei/Documents/Programs/Xilinx/Vitis_HLS/2020.2/bin:$PATH
md烦死了
看上图中最后一个命令,
cd <install_path>
:打开你安装的目录,即上面这个步骤: https://github.com/Lei-DaQQ/myIssues/issues/5#issuecomment-1697321490 里改的路径
cd /home/lilei/Documents/Programs/Xilinx # !!这里替换成你的路径
cd .xinstall/Vivado_2020.2/ # !!这里 .xinstall不用换, Vivado_2020.2还成你的目录
./xsetup -Uninstall
错误大致:
Program group entry, Xilinx Design Tools, already exists for 2020.2. Specify a different program group entry
参考: Widget
解决:
When I checked other replies above, such as in $HOME/.Xilinx/, I didn't find any 'Xilinx Design Tools' file or file folder. Where I finally found it is in '$HOME/.config/menus/applications-merged/Xilinx Design Tools.menu'. I found it when I was checking the log of the installer.
即删除 ~/.config/menus/applications-merged/Xilinx Design Tools.menu'
之前装了Vivado2020.2,现在需要装2017.1,是从博客园看的攻略,怕博客园倒闭了,在这里记录一下