Petalinux 2021.1 无法识别 ZCU106 的机器名称

发布于 2025-01-14 22:00:08 字数 752 浏览 5 评论 0原文

我正在尝试为 ZCU106 开发板创建和配置 Petalinux 项目。项目创建成功。一般配置也不会提示任何警告。但是,当我运行内核配置时,它提示错误,指出我提供的机器名称无效。步骤如下:

1->创建项目

petalinux-create --type project --template zynqMP --name project_zcu_106

2->使用 XSA 文件配置项目

petalinux-config --get-hw-description /path/to/file.xsa

3->然后我将DTG设置→(模板)MACHINE_NAMEYocto设置→YOCTO_MACHINE_NAME设置为zcu106-reva并退出配置

4->最后,我尝试运行Linux内核的配置,但失败了。

petalinux-config -c kernel

MACHINE=zcu106-reva 无效。请在您的计算机中设置一个有效的机器 local.conf、环境或其他配置文件。

我在 Petalinux 2018.32020.2 上执行了相同的步骤。没有问题。这次可能会出现什么问题呢?我该如何进阶?

I'm trying to create and configure a Petalinux project for the ZCU106 development board. The creation of the project is successful. The general configuration also doesn't prompt any warnings. But, when I run the kernel configuration, it prompts an error stating that the machine name I've provided is invalid. The steps are as below:

1-> Creating the project

petalinux-create --type project --template zynqMP --name project_zcu_106

2-> Configuring the project with the XSA file

petalinux-config --get-hw-description /path/to/file.xsa

3-> Then I set the DTG Settings → (template) MACHINE_NAME and Yocto Settings → YOCTO_MACHINE_NAME as zcu106-reva and exit the configuration

4-> Lastly, I try to run the configuration for the Linux kernel and it fails.

petalinux-config -c kernel

MACHINE=zcu106-reva is invalid. Please set a valid MACHINE in your
local.conf, environment or other configuration file.

I was doing the same steps on Petalinux 2018.3 and 2020.2. There was no problem. What could be the problem this time? How should I advance?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小瓶盖 2025-01-21 22:00:08

好吧,我已经找到问题了。

DTG 设置 →(模板)MACHINE_NAMEYocto 设置 → YOCTO_MACHINE_NAME 是两个不同的东西。

DTG 设置→(模板)MACHINE_NAME 代表您针对不同设备调整的 BSP 文件。

另一方面,Yocto Settings → YOCTO_MACHINE_NAME 表示 Yocto 将用来配置系统的配置文件 (.conf)。以下是 Yocto 项目邮件列表中对其进行描述的解释:

MACHINE 只是指向特定于机器的配置的指针
文件。因此,如果您设置了 MACHINE=foo,那么您需要在 bblayer 路径中的某个位置确保 conf/machine/foo.conf 可用。然后它将使用它。

因此,我只将其更改为 zynqmp-generic 并且它有效。

Alright, I've found the problem.

The DTG Settings → (template) MACHINE_NAME and Yocto Settings → YOCTO_MACHINE_NAME are two different things.

The DTG Settings → (template) MACHINE_NAME stands for the BSP files that you adjust for different devices.

On the other hand, the Yocto Settings → YOCTO_MACHINE_NAME represents the configuration file (<machine name>.conf) that the Yocto will use to configure the system. Here is an explanation that describes it from the Yocto Project's mailing list:

The MACHINE is simply a pointer to a machine-specific configuration
file. So if you set your MACHINE=foo, then somewhere in your bblayer path(s) you need to make sure that a conf/machine/foo.conf is available. Then it will use that.

So, I only changed it to zynqmp-generic and it works.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文