UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

加速PetaLinux工程编译过程

回复
Highlighted
Xilinx Employee
发帖数: 62
注册日期: ‎02-16-2012

加速PetaLinux工程编译过程

 

加速PetaLinux工程编译过程

1: 使用local sstate。请参见下列readme.
2: 使用本地download目录,重新使用已经下载好的文件。请参见下列readme.
3: 关闭网络接口,如使用命令 ifconfig eth0 down.


By default petalinux uses sstate-cache and download mirrors from petalinux.xilinx.com
This README is for the users who uses tool completely offline.

Setting sstate cache

1) Extract the downloaded tar contents of sstate-cache at any location
2) run petalinux-config
-> Yocto Settings
->Local sstate feeds settings
->local sstate feeds url
(press Enter)
3) Provide the path of sstate-cache from above
Ex: /<path>/aarch64 for ZynqMP projects
/<path>/arm for Zynq projects
/<path>/mb-full for MB AXI full projects

4) Save the configurations to use the sstate-cache

Setting download mirror

1) Extract the downloaded tar contents of sstate-cache at any location
2) run petalinux-config
-> Yocto Settings
-> Add pre-mirror url
-> (press Enter)
Clear default value

3) Provide the path of sstate-cache from above
file://<path>/downloads for all projects

4) Save the configurations to use the download mirrors

5) Verify the changes in build/conf/plnxtool.conf
6) petalinux-build

Xilinx Employee
发帖数: 62
注册日期: ‎02-16-2012

回复: 加速PetaLinux工程编译过程

第一步: 下载Sstate,设置local Sstate,
第二步: 设置镜像URL;
第三步: 编译;
第四步: 成功的编译之后,Ifconfig禁止所有网卡;

Observer
发帖数: 20
注册日期: ‎06-11-2018

回复: 加速PetaLinux工程编译过程

Hi 按照上面的操作,配置了禁止 'enable Network sstate feeds', 使能 'enable BB no network',后编译不通过,提示:

 

ERROR: linux-xlnx-4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0 do_fetch: The URL: '/home/shawn/Xilinx/sstate-rel-v2018.2/downloads' is invalid and cannot be interpreted
ERROR: linux-xlnx-4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/shawn/Peta201802/xilinx-zcu104-2018.2/build/tmp/work/zcu104_zynqmp-xilinx-linux/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/temp/log.do_fetch.27238
ERROR: Task (/home/shawn/Peta201802/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.2.bb:do_fetch) failed with exit code '1'
ERROR: libmali-xlnx-r8p0-01rel0-r0 do_fetch: The URL: '/home/shawn/Xilinx/sstate-rel-v2018.2/downloads' is invalid and cannot be interpreted
ERROR: libmali-xlnx-r8p0-01rel0-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/shawn/Peta201802/xilinx-zcu104-2018.2/build/tmp/work/zynqmp-xilinx-linux/libmali-xlnx/r8p0-01rel0-r0/temp/log.do_fetch.27248
ERROR: Task (/home/shawn/Peta201802/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-graphics/libgles/libmali-xlnx_git.bb:do_fetch) failed with exit code '1'