Jump to content
  • 0

Petalinux ExpansionError on petalinux build

Septyawan Aulia


Dear All,

I am a newbie both in FPGA and Embedded Linux but I bought a Cora Z7-07s and try to use Petalinux. I follow https://github.com/Digilent/Petalinux-Cora-Z7-07S quick start guide. I'm using Ubuntu 16.04 LTS in VM with Win10 as host. there is no problem until I begin to build the project which I found an error

WARNING: Your PetaLinux project was last modified by PetaLinux SDK version "2017.4",

WARNING: however, you are using PetaLinux SDK version "2018.3".

Please input "y" to continue. Otherwise it will exit![n]y

[INFO] building project
[INFO] generating Kconfig for project

[INFO] oldconfig project
[INFO] sourcing bitbake

[INFO] generating plnxtool conf

[INFO] generating meta-plnx-generated layer

[INFO] generating machine configuration

[INFO] generating bbappends for project . This may take time ! 

ERROR: ExpansionError during parsing /opt/pkg/petalinux/components/yocto/source/arm/layers/core/meta/recipes-sato/images/core-image-sato-sdk.bb

ERROR: Parse failure with the specified layer added

[INFO] generating u-boot configuration files

[INFO] generating kernel configuration files

[INFO] generating kconfig for Rootfs

Traceback (most recent call last):
File "rootfs_config.py", line 315, in <module>
File "rootfs_config.py", line 290, in parse_args
File "rootfs_config.py", line 257, in extract_packages_dot
 with open(packages_dot,'r') as fp:

IOError: [Errno 2] No such file or directory: '/home/septyawan/Petalinux-Cora-Z7-07S/Cora-Z7-07S/project-spec/meta-user/recipes-core/images/petalinux-image-full.bbappend'

ERROR: Failed to generate rootfs /home/septyawan/Petalinux-Cora-Z7-07S/Cora-Z7-07S/build/misc/rootfs_config/Kconfig.user
ERROR: Failed to build project

how can I solve that,?Thank You for your advice.


Link to comment
Share on other sites

3 answers to this question

Recommended Posts

On 4/28/2019 at 6:45 PM, vicentiu said:

Please install Petalinux 2017.4 instead of 2018.3

Dear vicentiu.

thank you for helping me. now I already installed the Petalinux 2017.4 in the same system and try to build the project again.

now I found another problem, when Generating bbappends it take almost forever the failed. I tried it many times.

Is there any problem or skipped step that I am not done yet?

Thank you

Link to comment
Share on other sites

I was able to successfully run 

petalinux-create -t project -s Petalinux-Cora-Z7-07S-2017.4-1.bsp

Here are some common errors people make. Make sure you meet the following conditions:

  1. You can only have one version of Petalinux installed. If you have more, you will get build errors on both.
  2. Petalinux has to be installed in /opt/pkg/petalinux. (./petalinux-v2017.4-final-installer.run /opt/pkg/petalinux)
Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...