Petalinux 2021.1 无法识别 ZCU106 的机器名称
我正在尝试为 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_NAME和Yocto设置→YOCTO_MACHINE_NAME设置为zcu106-reva
并退出配置
4->最后,我尝试运行Linux内核的配置,但失败了。
petalinux-config -c kernel
MACHINE=zcu106-reva 无效。请在您的计算机中设置一个有效的机器 local.conf、环境或其他配置文件。
我在 Petalinux 2018.3 和 2020.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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我已经找到问题了。
DTG 设置 →(模板)MACHINE_NAME
和Yocto 设置 → YOCTO_MACHINE_NAME
是两个不同的东西。DTG 设置→(模板)MACHINE_NAME
代表您针对不同设备调整的 BSP 文件。另一方面,
Yocto Settings → YOCTO_MACHINE_NAME
表示 Yocto 将用来配置系统的配置文件(.conf)
。以下是 Yocto 项目邮件列表中对其进行描述的解释:因此,我只将其更改为
zynqmp-generic
并且它有效。Alright, I've found the problem.
The
DTG Settings → (template) MACHINE_NAME
andYocto 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:So, I only changed it to
zynqmp-generic
and it works.