• 0
Septyawan Aulia

Petalinux ExpansionError on petalinux build

Question

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>
   
 parse_args(sys.argv[1:])
  
File "rootfs_config.py", line 290, in parse_args
    
 extract_packages_dot(packages_user)
  
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.

Septyawan

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
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

Share this post


Link to post
Share on other sites
  • 0

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)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now