使用命令“petalinux-devtool modify”BSP相关的代码。
2022/3/27 7:24:37
本文主要是介绍使用命令“petalinux-devtool modify”BSP相关的代码。,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
使用命令“petalinux-devtool modify”BSP相关的代码。
作者: 付汉杰 hankf@xilinx.com hankf@amd.com
测试环境: Vivado/PetaLinux 2021.2, Linux 5.10.0 VCK190
在PetaLinux 2020.1时分享了在PetaLinux里为模块创建补丁。
现在使用PetaLinux 2021.2, 发现类似命令会报告错误。
hankf@XSZGS4:dapd-modify-peta$ petalinux-build -c kernel -x modify [INFO] Sourcing buildtools [INFO] Building kernel [INFO] Sourcing build environment [INFO] Generating workspace directory INFO: bitbake virtual/kernel -c modify NOTE: Started PRServer with DBfile: /proj/hankf/hankf/vck190/v212/dapd_prj_0211_maolin/dapd-modify-peta/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 38215, PID: 16832 Loading cache: 100% | | ETA: --:--:-- Loaded 0 entries from dependency cache. Parsing recipes: 100% |#######################################################################################################################################################| Time: 0:00:15 Parsing of 3476 .bb files complete (0 cached, 3476 parsed). 5133 targets, 242 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies ERROR: Task do_modify does not exist for target virtual/kernel (/proj/hankf/hankf/vck190/v212/dapd_prj_0211_maolin/dapd-modify-peta/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.2.bb:do_modify) ERROR: Command execution failed: 1 Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build kernel. Check the /proj/hankf/hankf/vck190/v212/dapd_prj_0211_maolin/dapd-modify-peta/build/build.log file for more details... hankf@XSZGS4:dapd-modify-peta$ petalinux-build -c u-boot -x modify [INFO] Sourcing buildtools [INFO] Building u-boot [INFO] Sourcing build environment [INFO] Generating workspace directory INFO: bitbake virtual/bootloader -c modify NOTE: Started PRServer with DBfile: /proj/hankf/hankf/vck190/v212/dapd_prj_0211_maolin/dapd-modify-peta/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 38409, PID: 17895 Loading cache: 100% |#########################################################################################################################################################| Time: 0:00:01 Loaded 5122 entries from dependency cache. Parsing recipes: 100% |#######################################################################################################################################################| Time: 0:00:01 Parsing of 3476 .bb files complete (3465 cached, 11 parsed). 5133 targets, 242 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies ERROR: Task do_modify does not exist for target virtual/bootloader (/proj/hankf/hankf/vck190/v212/dapd_prj_0211_maolin/dapd-modify-peta/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2021.2.bb:do_modify) ERROR: Command execution failed: 1 Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ERROR: Failed to build u-boot. Check the /proj/hankf/hankf/vck190/v212/dapd_prj_0211_maolin/dapd-modify-peta/build/build.log file for more details...
查询手册,得到命令“petalinux-devtool modify”,可以完成同样的工作。 对于VCK190单板,使用下列脚本,可以得到所有BSP相关的代码。
# # Get the source code from git url specifi ed in meta-layers: # petalinux-devtool modify <recipe-name> # # Creates a patch for the committed changes in recipe sources directory. # petalinux-devtool finish <recipe-name> <destination layer path> # $./yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2021.2.bb echo -e "\nTry to modify linux-xlnx" petalinux-devtool modify linux-xlnx # ./yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2021.2.bb echo -e "\nTry to modify u-boot-xlnx" petalinux-devtool modify u-boot-xlnx echo -e "\nTry to modify plm-firmware" petalinux-devtool modify plm-firmware echo -e "\nTry to modify psmfw" petalinux-devtool modify psmfw echo -e "\nTry to modify arm-trusted-firmware" petalinux-devtool modify arm-trusted-firmware echo -e "\nShow components that can be modified" ls -l components/yocto/workspace/sources/
这篇关于使用命令“petalinux-devtool modify”BSP相关的代码。的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-12-18git仓库有更新,jenkins 自动触发拉代码怎么配置的?-icode9专业技术文章分享
- 2024-12-18Jenkins webhook 方式怎么配置指定的分支?-icode9专业技术文章分享
- 2024-12-13Linux C++项目实战入门教程
- 2024-12-13Linux C++编程项目实战入门教程
- 2024-12-11Linux部署Scrapy教程:新手入门指南
- 2024-12-11怎么将在本地创建的 Maven 仓库迁移到 Linux 服务器上?-icode9专业技术文章分享
- 2024-12-10Linux常用命令
- 2024-12-06谁看谁服! Linux 创始人对于进程和线程的理解是…
- 2024-12-04操作系统教程:新手入门及初级技巧详解
- 2024-12-04操作系统入门:新手必学指南