下载软件包
点击这里进入Xilinx的官方下载页面,其中三个是必须下载的安装包
1.Petalinux Installer
2.aarch64 sstate-cache
3.downloads
安装
1.Petalinux Installer
$ mkdir -p /opt/pkg/petalinux/2020.1
$ ./petalinux-v2020.1-final-installer.run --dir /opt/pkg/petalinux/2020.1/
2.aarch64 sstate-cache & downloads(仅须解压)
a.aarch64 sstate路径在进行petalinux config里配置
b.downloads在petalinuxbsp.conf里配置
新建工程及编译
1.设置环境变量
$source /opt/pkg/petalinux/2020.1/settings.sh
2.新建 一个基础工程
$petalinux-create -t project -n 4EV --template zynqMP
3.新建一个zcu106 vcu trd工程
$petalinux-create -t project -s rdf0428-zcu106-vcu-trd-2020.1/apu/vcu_petalinux_bsp/xilinx-vcu-zcu106-v2020.1-final.bsp
4.配置sstate(在Default sstate feeds里配置本地路径,参考如下)
$petalinux-config
Yocto Settings-->Local sstate feeds settings-->Default sstate feeds-->本地sstate-rel-v2020.1/aarch64
5.配置downloads(在petalinuxbsp.conf最后加上PREMIRRORS_prepend,/data/install为你的本地路径)
$vi project-spec/meta-user/conf/petalinuxbsp.conf
#add following to end of file
PREMIRRORS_prepend = " \
git://.*/.* file:///data/install/downloads/ \n \
ftp://.*/.* file:///data/install/downloads/ \n \
http://.*/.* file:///data/install/downloads/ \n \
https://.*/.* file:///data/install/downloads/ \n \
"
6.编译
$petalinux-build