欢迎您访问365答案网,请分享给你的朋友!
生活常识 学习资料

FPGA开发板-AXU4EV-P开发环境搭建

时间:2023-07-27

0、环境
win10 + vmware16
注意win10需要至少300G给ubuntu
fpga芯片是XiLINX XCZU4EV

1、虚拟机升级到最新版本

2、准备ubuntu18.4.2
并将虚拟机扩容到8G内存+硬盘320G
设置bash为默认sh
sudo dpkg-reconfigure dash 
no

并设置锁屏时间为 never 

3、复制Xilinx Unified 2020到虚拟机内并解压
用winscp复制速度还可以,解压直接右键后选择extract here

4、安装
4.1 安装程序本体
cd Xilinx_Unified_2020.1_0602_1208
sudo chmod +x xsetup
sudo ./xsetup

4.2 添加权限 
sudo chmod 777 -R /home/xxjianvm/Xilinx

4.3 添加license
source /home/xxjianvm/Xilinx/Vivado/2020.1/settings64.sh
vivado&

软件启动后,打开 Help -> Manage license -> load license -> copy license选择license

4.4 安装下载器驱动
cd /home/xxjianvm/Xilinx/Vivado/2020.1/data/xicom/cable_drivers/lin64/install_script/install_drivers
sudo ./install_drivers

命令行显示:
INFO: Driver installation successful.
CRITICAL WARNING: Cable(s) on the system must be unplugged then plugged back in order for the driver scripts to update the cables.

4.5 测试
运行vivado
source /home/xxjianvm/Xilinx/Vivado/2020.1/settings64.sh
vivado&

连接下载器到虚拟机
这部分vivado无法识别硬件。需要设置虚拟机 
有些主板需要设置 USB 的兼容性,关闭虚拟机的 Ubuntu,设置虚拟机属性 ->  USB控制器 -> USB兼容性 -> “USB 3.1”,

 

4.6 适合zynq的交叉编译器
source /home/xxjianvm/Xilinx/Vivado/2020.1/settings64.sh
arm-linux-gnueabihf-gcc -v

4.7 适合 zynqMP 的交叉编译器
aarch64-linux-gnu-gcc -v

5、petalinux
5.1 安装依赖
sudo apt-get update
chmod +x host_env_setup.sh
./chmod +x host_env_setup.sh

5.2 安装petalinux
设置用户权限
sudo -s
mkdir -p /opt/pkg/petalinux
chgrp xxjianvm /opt/pkg/petalinux
chown xxjianvm /opt/pkg/petalinux
exit

cd ~/Downloads
chmod +x petalinux-v2020.1-final-installer.run
./petalinux-v2020.1-final-installer.run -d /opt/pkg/petalinux/

用户协议,按q退出文本模式,y按回车表示同意协议

Do you accept Xilinx End User License Agreement? [y/N] > 
Do you accept Xilinx End User License Agreement? [y/N] > y
Do you accept Webtalk Terms and Conditions? [y/N] > y
Do you accept Third Party End User License Agreement? [y/N] > 
Do you accept Third Party End User License Agreement? [y/N] > y
INFO: Installing PetaLinux...
INFO: Checking PetaLinux installer integrity...
INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/."
INFO: Installing buildtools in /opt/pkg/petalinux/./components/yocto/buildtools
INFO: PetaLinux SDK has been installed to /opt/pkg/petalinux/.

到这里就安装完成了

6、nfs
6.1 安装
sudo apt-get install nfs-kernel-server
6.2 新建共享文件夹给开发板
mkdir ~/work
6.3 添加配置
sudo gedit /etc/exports
文件的最下面添加这行:
/home/xxjianvm/work *(rw,sync,no_root_squash,no_subtree_check)

6.4 重新启动nfs
sudo /etc/init.d/rpcbind restart
sudo /etc/init.d/nfs-kernel-server restart

6.5 测试nfs
sudo mount -t nfs 127.0.0.1:/home/xxjianvm/work/ /mnt


cd /mnt
mkdir test


7、qt-creator
sudo chmod +x qt-opensource-linux-x64-5.7.1.run
sudo ./qt-opensource-linux-x64-5.7.1.run

next -> skip -> next -> next -> next -> i have read and agree to the terms ..、-> next -> install-> finish

Copyright © 2016-2020 www.365daan.com All Rights Reserved. 365答案网 版权所有 备案号:

部分内容来自互联网,版权归原作者所有,如有冒犯请联系我们,我们将在三个工作时内妥善处理。