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

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

实验日期:

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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值