ZYNQ:Petalinunx构建工程

资料准备

1、xsa 文件:top_020.xsa(使用vivado 2024.1制作)
在这里插入图片描述

2、设置 Petalinux (2024.1)环境变量:sptl
在这里插入图片描述

创建 petalinux 工程

构建工程

petalinux-create -t project --template zynq -n project

在这里插入图片描述

配置 petalinux 工程

cd project
petalinux-config --get-hw-description ../

问题:

INFO] Getting hardware description
[INFO] Renaming top_020.xsa to system.xsa
[INFO] Extracting yocto SDK to components/yocto. This may take time!
[INFO] Getting Platform info from HW file
[INFO] Generating Kconfig for project
[ERROR]

package require xsdb FAILED: error loading hsi package: couldn’t load
file “libxv_commontasks.so”: libtinfo.so.5: cannot open shared object
file: No such file or directory
while executing “error “error loading hsi package: $msg””
(file “/opt/pkg/petalinux/2024.1/components/xsct/scripts/xsct/xsdb/xsdb.tcl”
line 11)
invoked from within “source /opt/pkg/petalinux/2024.1/components/xsct/scripts/xsct/xsdb/xsdb.tcl”
(“package ifneeded xsdb 0.1” script)

[ERROR] Command gen-machineconf --soc-family zynq --hw-description
/home/aa/workspace/pro/pro_pe_hw/project/project-spec/hw-description/system.xsa
–xsct-tool /opt/pkg/petalinux/2024.1/components/xsct --output /home/aa/workspace/pro/pro_pe_hw/project/project-spec/configs
–add-rootfsconfig /home/aa/workspace/pro/pro_pe_hw/project/project-
spec/meta-user/conf/user-rootfsc

onfig --petalinux --menuconfig project failed

解决

sudo apt-get install libtinfo5

弹出 petalinux 工程配置窗口
在这里插入图片描述
重新生成 xsa 文件后,可以重新执行“petalinux-config --get-hw-description < xsa 文件所在的位置>”以重新配置 Petalinux 工程。
只需输入“petalinux-config”命令即可重新配置
在这里插入图片描述

配置 Linux 内核

petalinux-config -c kernel

在这里插入图片描述
需要等待一段时间
在这里插入图片描述
保存配置并退出

在这里插入图片描述

</

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

li星野

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值