cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Explorer
Explorer
4,792 Views
Registered: ‎10-19-2012

Problem with app creation for Petalinux 2016.4

Jump to solution

 

Hi,

 

I have a problem trying to add a new app to a petalinux 2016.4 project for Zynq SoC. I'm currently using Ubuntu 16.04 LTS. I get this error no matter what, and no matter how many times I reinstall petalinux and create the project from scratch. I have no missing packages as judged by the installation tool.

 

 

INFO: Create apps: blabla5
INFO: New apps successfully created in petalinux_project/project-spec/meta-user/recipes-apps/blabla5
INFO: Enabling created component...
INFO: sourcing bitbake
INFO: oldconfig rootfs
ERROR: Failed to oldconfig the rootfs
ERROR: However, failed to enable created component.

Thanks.

0 Kudos
Reply
1 Solution

Accepted Solutions
Visitor
Visitor
7,951 Views
Registered: ‎04-05-2017
9 Replies
Visitor
Visitor
4,754 Views
Registered: ‎04-05-2017

I have the same problem...

0 Kudos
Reply
Moderator
Moderator
4,747 Views
Registered: ‎12-04-2016

Hi

 

Following are the steps to be followed to create/add application in petalinux 2016.4

 

Steps to Include Prebuilt Applications
If your prebuilt application name is myapp, including this into PetaLinux root file system is explained in following steps.
1. Ensure that the pre-compiled code has been compiled for your PetaLinux target architecture (For example, MicroBlaze, ARM etc.).
2. Create an application with this command: $ petalinux-create -t apps --template install --name myapp --enable

Change to the newly created application directory: $ cd <plnx-proj-root>/project-spec/meta-user/recipes-apps/myapp/files/
4. Remove existing myapp application and copy the prebuilt myapp
$ rm myapp
$ cp <path-to-prebuilt-app>  ./

 

Steps to Add Custom Applications
The basic steps are as follows:
1. Create a user application called myapp in C (the default):
$ petalinux-create -t apps --name myapp --enable

2. cd <plnx-proj-root>/project-spec/meta-user/recipes-apps/myapp

3. myapp.c/myapp.cpp file can be edited or replaced with the real source code for your application. Later if you want to modify your custom user application, this file should be edited.

 

0 Kudos
Reply
Adventurer
Adventurer
4,742 Views
Registered: ‎04-23-2014

I also have the same problem. The instructions didn't help.

0 Kudos
Reply
Observer
Observer
4,730 Views
Registered: ‎06-07-2016

I had the same problem on Fedora 25. With Ubuntu 16.04 LTS (which is a Petalinux supported OS) all works fine. 

Be sure to set your default shell to bash.

0 Kudos
Reply
Explorer
Explorer
4,718 Views
Registered: ‎10-19-2012

I did exactly this:

Steps to Add Custom Applications
The basic steps are as follows:
1. Create a user application called myapp in C (the default):
$ petalinux-create -t apps --name myapp --enable
2. cd <plnx-proj-root>/project-spec/meta-user/recipes-apps/myapp
3. myapp.c/myapp.cpp file can be edited or replaced with the real source code for your application. Later if you want to modify your custom user application, this file should be edited.

Still doesn't work.

This post hints that it maybe due to wrong installation, though the poster doesn't know what changed exactly.

0 Kudos
Reply
Visitor
Visitor
4,677 Views
Registered: ‎04-05-2017

I have changed shell to bash, still same problem...

0 Kudos
Reply
Visitor
Visitor
7,952 Views
Registered: ‎04-05-2017
Explorer
Explorer
4,670 Views
Registered: ‎10-19-2012

It does for me too! I can't believe this limitation, there has to be a way to put some sort of warning. Marking it as solution, thanks!

0 Kudos
Reply
Visitor
Visitor
4,297 Views
Registered: ‎01-22-2017

I also stumbled about this fu....ing limitation.

Xilinx continuously  changes its tools in significant ways. 

In my opinion it would be better they would stick to one method an concentrate more on bug fixing.

 

 

0 Kudos
Reply