petalinux-config --get-hw-description ../linux_base.sdk卡住不动

本文描述了使用Petalinux配置硬件描述文件时,因虚拟机资源不足导致编译停滞的问题。通过增加虚拟机的CPU核心数和内存,成功解决了编译问题,顺利生成了uboot.bin。

实验日期:

2019.7.29

 

实验环境:

Alinx 黑金AX7021开发板

Vmware12/14

ubuntu 16.04

Vivado 2017.4

Petalinux 2017.4

 

现象:

运行

petalinux-config --get-hw-description ../linux_base.sdk

时间一天一夜 ,时卡住不动,如下图所示

经过反复实验,原因是:给虚拟机分配的硬件资源太少了:1颗 1核心CPU ;1GB 内存

把资源改为1颗 4核心CPU ;4GB 内存,其余操作按照黑金给的用户手册来弄,可以编译出uboot.bin成功。

 

如果您还是不成功,或有其它关于用petalinux创建工程,解决不了的环境问题

···

文章所提内容,作者亲测可用,如您阅读本文后达不到预期效果或者有侵权问题,请邮件联系作者 邮件地址:675763816@qq.com

 

 

 

 

 

petalinux-config --get-hw-description=./project-spec/hw-description --silentconfig --force getopt: unrecognized option '--force' Configures the project or the specified component with menuconfig. Usage: petalinux-config [options] {--component <COMPONENT> |--get-hw-description[=SRC]} Options: -h, --help show function usage -p, --project <PROJECT> path to PetaLinux SDK project. default is the working project --silentconfig takes the default configuration and skips the GUI. -c, --component <COMPONENT> Specify the component If no component is specified, it will do top level project configuration . If you specify a component,it will configure it with menuconfig and saves user's config fragments in meta-user. E.g. -c rootfs, -c busybox --get-hw-description [SRC] get hardware description. if [SRC] is specified, look in that location for an Vivado export to SDK directory. Otherwise, this MUST be run from WITHIN the vivado export to SDK directory. --defconfig [DEFCONFIG_TARGET] defconfig the specified component. It applies to kernel and u-boot. -v, --verbose verbose mode Note: There is no validation for configurable components. User can provide any component, bitbake will throw error for invalid components. Sync hardware description: Sync hardware description from Vivado export to PetaLinux BSP project: $ cd <Vivado_Export_to_SDK_Directory> $ petalinux-config --get-hw-description It will sync up the XSA file from <Vivado_Export_to_SDK_Directory> to project-spec/hw-description/ directory. Sync hardware description inside PetaLinux project but outside Vivado export to SDK directory: $ petalinux-config --get-hw-description=<Vivado_Export_to_SDK_Directory> If more than one XSA files in <Vivado_Export_to_SDK_Directory> specify the exact file path using $ petalinux-config --get-hw-description <Vivado_Export_to_SDK_Directory>/system.xsa Configure PetaLinux project: Configure subsystem level configuration: $ petalinux-config Configure kernel: $ petalinux-config -c kernel Configure rootfs: $ petalinux-config -c rootfs Defconfig kconfig kernel with xilinx_zynq_base_trd_defconfig: $ petalinux-config -c kernel --defconfig xilinx_zynq_base_trd_defconfig这个打印信息是正确的吗
03-15
<think>我们正在处理用户关于Petalinux2022.2执行`petalinux-config --get-hw-description`命令时出现`kconfig.syshw`报错的问题。根据引用内容,有两个主要的解决方法: 1. 检查工程路径是否含有中文,若有则改为英文路径。 2. 安装支持包:`sudo apt-get install libtinfo5` 此外,用户提到问题已解决,但如果有其他问题欢迎交流。因此,我们可以将这两个步骤作为主要解决方案提供给用户。 需要注意的是,用户使用的是Petalinux2022.2,但引用中提到的解决方案是通用的。因此,我们可以直接参考这两个步骤。 根据要求,回答使用中文,结构清晰,并生成相关问题。 回答结构: 1. 简述问题:确认用户遇到的报错信息。 2. 提供解决方案:分步骤说明。 3. 补充说明:如果上述步骤不能解决,建议检查其他可能原因。 4. 生成相关问题。 注意:引用标识需要添加在对应的解决方案后面。 </think>### Petalinux2022.2报错Kconfig.syshw的解决方案 根据报错信息:$$ \text{ERROR: Failed to generate Kconfig.syshw} $$ $$ \text{ERROR: Failed to generate System hardware Kconfig file} $$ 以下是已验证的解决方案: 1. **检查工程路径** 使用`pwd`命令确认工程路径不含中文字符: ```bash kemao@TP340:~/zynq/test$ pwd ``` 若路径包含中文,请将整个工程迁移到**纯英文路径**下[^1]。 2. **安装依赖库** 执行以下命令安装缺失的库文件: ```bash sudo apt-get install libtinfo5 ``` 该库是Kconfig生成工具的依赖项(适用于Ubuntu/Debian系统)[^1]。 3. **验证硬件描述文件** 确保`../hardware/`目录包含有效的XSA文件: ```bash ls ../hardware/*.xsa ``` 若文件缺失或损坏,需重新导出硬件平台描述文件。 4. **检查文件权限** 授予工程目录完全访问权限: ```bash sudo chmod -R 777 /home/kemao/zynq/test ```
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值