zcu106-petalinux-2021.2编译过程

zcu106-petalinux-2021.2编译过程

一,准备环境:

juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2$ source  /home/juzhen/petalinux/settings.sh  
PetaLinux environment set to '/home/juzhen/petalinux'
WARNING: This is not a supported OS
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2$ ls
apu  images  pcie_host_package  pl  README.txt  zcu106_vcu_trd_sources_and_licenses  zcu106_vcu_trd_sources_and_licenses.tar.gz
juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2$ cd apu/vcu_petalinux_bsp/
juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp$ ls
xilinx-vcu-zcu106-v2021.2-final.bsp

juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp$ petalinux-create -t project -s  xilinx-vcu-zcu106-v2021.2-final.bsp
INFO: Create project: 
INFO: Projects: 
INFO: 	* xilinx-vcu-zcu106-v2021.2-final
INFO: Has been successfully installed to /home/juzhen/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp/
INFO: New project successfully created in /home/juzhen/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp/
juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp$ ls
xilinx-vcu-zcu106-v2021.2-final  xilinx-vcu-zcu106-v2021.2-final.bsp
juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp$ cd xilinx-vcu-zcu106-v2021.2-final/
juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp/xilinx-vcu-zcu106-v2021.2-final$ ls
config.project  project-spec  README

juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp/xilinx-vcu-zcu106-v2021.2-final$ petalinux-config --get-hw-description=/home/juzhen/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/pl/prebuild/zcu106_trd/
[INFO] Sourcing buildtools
INFO: Getting hardware description...
INFO: Renaming zcu106_trd_wrapper.xsa to system.xsa
[INFO] Generating Kconfig for project
[INFO] Menuconfig project


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] Sourcing buildtools extended
[INFO] Extracting yocto SDK to components/yocto. This may take time!
[INFO] Sourcing build environment
[INFO] Generating kconfig for Rootfs
[INFO] Silentconfig rootfs
[INFO] Generating plnxtool conf
[INFO] Adding user layers
[INFO] Generating workspace directory
juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp/xilinx-vcu-zcu106-v2021.2-final$ ls
build  components  config.project  project-spec  README
juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp/xilinx-vcu-zcu106-v2021.2-final$ cp project-spec/meta-user/recipes-bsp/device-tree/files/vcu_trd.dtsi ../../../pl/prebuild/zcu106_trd/
juzhen@juzhen-HP:~/work/heijing_petalinux/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp/xilinx-vcu-zcu106-v2021.2-final$ vim project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi
juzhen@juzhen-HP:~/work/heijing_petalinux/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp/xilinx-vcu-zcu106-v2021.2-final$ cat project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi
//include/ "system-conf.dtsi"
/ {
};

配置Yocto Setting里面:

1,Add pre-mirror url为:

file:///home/juzhen/work/lingmou_project/down/petalinux_build_local_resources/downloads

2,Local sstate feeds settings为:

/home/juzhen/work/lingmou_project/down/petalinux_build_local_resources/sstate_aarch64_2021.2/aarch64

3,取消Enable Network sstate feeds和Enable BB NO NETWORK选项

二,设置以及编译:

juzhen@juzhen-HP:~/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp/xilinx-vcu-zcu106-v2021.2-final$ petalinux-build  
[INFO] Sourcing buildtools
[INFO] Building project
[INFO] Sourcing buildtools extended
[INFO] Sourcing build environment
[INFO] Generating workspace directory
INFO: bitbake petalinux-image-minimal
NOTE: Started PRServer with DBfile: /home/juzhen/work/zcu106-2021.2/rdf0428-zcu106-vcu-trd-2021-2/apu/vcu_petalinux_bsp/xilinx-vcu-zcu106-v2021.2-final/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 35431, PID: 17539
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:02
Loaded 5135 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:01
Parsing of 3486 .bb files complete (3478 cached, 8 parsed). 5143 targets, 232 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:08
Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:00:02
Sstate summary: Wanted 468 Found 44 Missed 424 Current 2659 (9% match, 86% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 8824 tasks of which 7868 didn't need to be rerun and all succeeded.
INFO: copy to TFTP-boot directory is not enabled !!
[INFO] Successfully built project
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值