Petalinux 2020.1 配置失败

问题描述

我正在尝试在 ubuntu 18.04.4 docker 环境中设置 petalinux 2020.1。我在 this link 之后创建了 docker 镜像,并从 this repo 创建了 docker 容器。我可以使用以下命令创建一个 petalinux 项目

$ petalinux-create -t project -s /host/xilinx-zcu102-v2020.1-final.bsp
INFO: Create project:
INFO: Projects:
INFO:   * xilinx-zcu102-2020.1
INFO: has been successfully installed to /home/vivado/
INFO: New project successfully created in /home/vivado/

但是当我尝试配置时出现以下错误

$ cd xilinx-zcu102-2020.1/
vivado@a20176:~/xilinx-zcu102-2020.1$ petalinux-config
INFO: sourcing build tools
[INFO] generating Kconfig for project
[INFO] menuconfig project


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] extracting yocto SDK to components/yocto
ERROR: Failed to Extract Yocto SDK.
ERROR: Failed to config project.
$ cat build/config.log
[INFO] generating Kconfig for project
INFO: [Hsi 55-2053] elapsed time for repository (/opt/Xilinx/petalinux/tools/xsct/data/embeddedsw) loading 0 seconds
hsi::open_hw_design: Time (s): cpu = 00:00:07 ; elapsed = 00:00:05 . Memory (MB): peak = 1523.867 ; gain = 727.504 ; free physical = 905 ; free virtual = 27460
[INFO] menuconfig project
/home/vivado/xilinx-zcu102-2020.1/build/misc/config/Kconfig.syshw:29:warning: defaults for choice values not supported
[INFO] extracting yocto SDK to components/yocto
PetaLinux Extensible SDK installer version 2020.1
=================================================
ERROR: the installer requires the en_US.UTF-8 locale to be installed (but not selected),please install it first
ERROR: Failed to Extract Yocto SDK.
ERROR: Failed to config project.

我遵循了 Xilinx 论坛中所有可能的说明,但没有一个奏效。我尝试了以下事情-

  1. 手动设置区域设置
  2. 使用不同的基础 docker 镜像(centos-7、ubuntu 18.04.4、ubuntu 18.04.5、ubuntu 16.04.5)

我不确定如何解决语言环境问题。有人可以帮忙吗?

解决方法

实际上,我刚刚解决了问题。事实证明,如果我在 /opt 中安装 petalinux 2020.1 和 sdk,我会收到上述错误。如果我将它们安装在主目录中,问题就解决了。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...