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