ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

使用命令“petalinux-devtool modify”BSP相关的代码。

2022-03-26 12:34:48  阅读:213  来源: 互联网

标签:dapd devtool modify hankf build BSP petalinux


使用命令“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/

标签:dapd,devtool,modify,hankf,build,BSP,petalinux
来源: https://www.cnblogs.com/hankfu/p/16058337.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有