Petalinux2021.2 使用问题记录

初衷

Petalinux2021.2工具较新,在使用过程中用到的问题很难在网上找到解决方案,导致一个问题被卡上数天之久,甚至直接从入门到放弃。我希望将遇到的问题分享出来,能给广大同行们带来微小的价值。

1.sstate-cache问题

问题记录

ERROR: btrfs-tools-5.7-ro do populate sysroot setscene: Fetcher failure: Unable to find fi
lefile://7a/af/sstate:btrfs-tools: cortexa72-cortexa53-xilinx-linux:5.7:r0:cortexa72-corte
xa53:3:7aaff928809b165201dad6ed7f2d76e4bb8c4a9b2678184c14049adfefc880a1 populate sysroot.tgz.siginfo;downloadfilename=7a/af/sstate:btrfs-tools:cortexa72-cortexa53-xilinx-linux:5.7
r0:cortexa72cortexa53:3:7aaff928809b165201dad6ed7f2d76e4bb8C4a9b2678184c14049adfefc880a1populate sysroot.tgz.siginfo anywhere. The paths that were searched were:
/<工程路径>/build/sstate-cache
/<工程路径>/build/sstate-cache

问题原因

在Petalinux2021.2下载地址中,最下方“PetaLinux Tools sstate-cache Artifacts”中写明,sstate-cache只需要在离线使用Petalinux时才需要。但是由于国内网络不稳定的原因,在Petalinux编译过程中,有可能出现下载sstate-cache失败的问题,从而导致上述报错的产生。在这里插入图片描述

解决方法

1、下载aarch64 sstate-cashe
在这里插入图片描述
2、将下载后的文件解压在任意目录
3、运行

petalinux-config

配置位置在:
-> Yocto Settings->Local sstate feeds settings->local sstate feeds url

4、将上述的解压路径输入进去

/<解压路径>/aarch64

5、报错退出,重新编译petalinux工程,报错消失

ERROR: Failed to generate System hardware Kconfig file.

使用petalinux-config --get-hw-description命令时出现以下错误


[INFO] Sourcing buildtools
INFO: Getting hardware description...
INFO: Renaming BDcanfddtu_800_wrapper.xsa to system.xsa
[INFO] Generating Kconfig for project
ERROR: Failed to generate <petalinux路径>/build/misc/config/Kconfig.syshw
ERROR: Failed to Kconfig project
ERROR: Failed to generate System hardware Kconfig file.

通过 vim ./build/config.log 命令查看错误原因。
在终端输入sudo apt-get install libtinfo5 安装后重新执行即可。

猜你喜欢

转载自blog.csdn.net/lb5482464/article/details/125216495