UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer eengie
Observer
8,324 Views

Re: petalinux-config in 2014.2 does not run correctly.

Never mind... Mint 17 uses dash which fails the version test as being an illegal option to pass (--version).
0 Kudos
Observer eengie
Observer
8,323 Views

Re: petalinux-config in 2014.2 does not run correctly.

Right - either redirect it or:

 

    sudo dpkg-reconfigure dash

 

That will also let you flip between dash or bash and coupled with the older grep resolved my problems.

Visitor i.panchenko
Visitor
8,301 Views

Re: petalinux-config in 2014.2 does not run correctly.


eengie wrote:

Right - either redirect it or:

 

    sudo dpkg-reconfigure dash

 

That will also let you flip between dash or bash and coupled with the older grep resolved my problems.


Same to me! Though, I had already set bash instead of bash. But building grep 2.6.3 and adding it to path - helped me!

0 Kudos
Visitor xrataj00
Visitor
8,282 Views

Re: petalinux-config in 2014.2 does not run correctly.

Thanks a lot Gilles! Installing the grep did the trick. Working on VM with centos is a bit of a pain.

0 Kudos
Newbie rboissel
Newbie
8,210 Views

Re: petalinux-config in 2014.2 does not run correctly.

Hi Gilles,

 

It worked for me on my Debian 7.

Thank you for the trick.

 

Robert

0 Kudos
Visitor msteveb0
Visitor
8,009 Views

Re: petalinux-config in 2014.2 does not run correctly.

Note that the Petalinux developers are aware of the problem with grep on Ubuntu, and this will be fixed in the next version.

 

In the meantime, use the workaround of installing grep 2.6.3

0 Kudos
Observer madison_a
Observer
7,746 Views

Re: petalinux-config in 2014.2 does not run correctly.

I made the mistake of attempting to use the stock binaries from grep-2.6.3-6.el6.x86_64.rpm, but failed miserably for the obvious reason is that my machine is a fedora 18.

 

Must be tired, so why I thought downloading grep-2.6.3 source and building it would not work, I don't know. But I downloaded grep-2.6.3-4.el6_5.1src.rpm.

 

rpm2cpio'd it. tar xpvf'd the source tar.xz. configured/make, and copied grep/egrep/fgrep to /opt/pkg/petalinux-v2014.2-fintal/tools/common/petalinux/bin.

 

petalinux-config runs without complaint.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
7,738 Views

Re: petalinux-config in 2014.2 does not run correctly.

All, we confirmed with engineering that using an older version of grep is a sufficient and robust workaround for this.  I have just put the finishing touches on a new Answer Record that is in the queue for publication.

Here are some steps for building grep from source if you're in a situation where you cannot get an older one from a package manager.  I have confirmed that this fix the problem on RHEL/CentOS 7 machines as well as Ubuntu 14.xx.

1.Download and extract the source code for grep 2.6.3 from the following GNU download site: http://ftp.gnu.org/gnu/grep/grep-2.6.3.tar.gz


2.Ensure that gcc is installed and available in the $PATH.


3.cd into the directory where grep-2.6.3.tar.gz was extracted (normally grep-2.6.3)


4.Configure grep for your system by using the ./configure command

 

5.After configuring, build grep using make command


6.After the build is complete, the grep binary will be available in <EXTRACTION_PATH>/src.


7.Source the PetaLinux 2014.2 tools using the source <PETALINUX_INSTALL_PATH/settings.(c)sh script


8.Manually update the path command to reference the version of grep that was just compiled:
a) For BASH, use export PATH=<EXTRACTION_PATH>/src:${PATH}
b) For CSH, use setenv PATH <EXTRACTION_PATH>/src:${PATH}

 

9.Verify that the path was updated and correctly picks up the desired version of grep with the command which grep.  It should echo back <EXTRACTION_PATH>/src


10.Continue to use the PetaLinux tools as normal.

-------------------------------------------
this space intentionally left blank
Newbie chuckchiang
Newbie
7,511 Views

Re: petalinux-config in 2014.2 does not run correctly.

Hi,

 

As I recently have to build petalinux 2014.2 on Ubuntu 12.10 for zynq, this thread has help me a lot. But I still run into problem with petalinux-build. I don't remember this problem was reported in this thread and someone mention that they have success with Ubuntu 14.x. I am wondering anyone has had similar build problem and know how to deal with it. I would have just upgrade to 14.2 except that I got a warning that my PC's video hardware does not support 14.2's UTS and the performance will be very low and recommended that I don't upgrade.

 

[ERROR] Errors were encountered while processing:
[ERROR] E: Sub-process /home/ubuntu/petalinux-v2014.2-final/tools/packagemanager/bin/dpkg returned an error code (1)
[ERROR] make[2]: *** [.pkg_stagefs] Error 255
[ERROR] make[1]: *** [sub_build_component_/none/packages-repo/single/plnx-repo] Error 2
ERROR: Failed to build linux

thank you

Chuck

0 Kudos
Observer eengie
Observer
7,501 Views

Re: petalinux-config in 2014.2 does not run correctly.


chuckchiang wrote:

Hi,

 

As I recently have to build petalinux 2014.2 on Ubuntu 12.10 for zynq, this thread has help me a lot. But I still run into problem with petalinux-build. I don't remember this problem was reported in this thread and someone mention that they have success with Ubuntu 14.x. I am wondering anyone has had similar build problem and know how to deal with it. I would have just upgrade to 14.2 except that I got a warning that my PC's video hardware does not support 14.2's UTS and the performance will be very low and recommended that I don't upgrade.

 

[ERROR] Errors were encountered while processing:
[ERROR] E: Sub-process /home/ubuntu/petalinux-v2014.2-final/tools/packagemanager/bin/dpkg returned an error code (1)
[ERROR] make[2]: *** [.pkg_stagefs] Error 255
[ERROR] make[1]: *** [sub_build_component_/none/packages-repo/single/plnx-repo] Error 2
ERROR: Failed to build linux

thank you

Chuck


Hi Chuck,

 

The error you're seeing seems to be pretty common during the petalinux-build process for Ubuntu 12.xx as described a few pages back in this thread.  The work-around, as absurd as it is, is to clean the rootfs and rebuild:

 

    petalinux-build -c rootfs

    petalinux-build

 

For whatever reason, that seems to nudge the build in the right direction with 2014.2 on Ubuntu-based systems.  

 

However I will say that some packages selected in the petalinux-config -c rootfs have caused my own builds to fail consistently with 2014.2.  I haven't been able to figure exactly which ones are causing that state, but in those cases I have had to start over completely with a petalinux-build -x mrproper (if I recall correctly, use --help; it's one of the last examples).  So be aware that if you modified your rootfs configuration, you could also be seeing this same error message because a selected package failed.

0 Kudos
2,309 Views

Re: petalinux-config in 2014.2 does not run correctly.

Hi 
I couldnt run petalinux-config on redhat enterprise workstation v6.4 too? I think it is supported please see the problem here http://forums.xilinx.com/t5/Embedded-Linux/Petalinux-config-does-not-appear-to-work/m-p/491078/highlight/false#M9830

 

Thank you  

0 Kudos
Newbie sammey
Newbie
1,680 Views

Re: petalinux-config in 2014.2 does not run correctly.

Regarding the "pushd/popd" errors on "petalinux-config".

 

If you don't want to or are unable to change /bin/sh, you could alternatively change the makefiles such that it works for dash as well. (Tested with Petalinux 2014.2)

 

Open <petalinux-install-dir>/etc/build/plnx-common-functions.mk and modify the pushd/popd macros:

 

plnx_qpushd = \
        cd "$(1)" 1>/dev/null           #new version
        pushd "$(1)" 1>/dev/null    #old version

plnx_qpopd = \
        cd $(CURDIR) 1>/dev/null    #new version
        popd 1>/dev/null                       #old version

 

Replace the leading spaces with one tab!

 

This hack should work with dash for one level of pushing. I didn't tested it extensively, though.

 

Best, Sammey

 

0 Kudos
Explorer
Explorer
1,280 Views

Re: petalinux-config in 2014.2 does not run correctly.

I just got burned by this too as I did an update the other day trying to fix another issue I thought was Xilinx related...

 

 

My CentOS system updated to  grep-2.20-3.el6.x86_64 from 2.6.3 and broke the petalinux-config process...

 

 

So I went and downloaded grep-2.6.3-6.el6.x86_64.rpm and used "yum downgrade grep-2.6.3-6.el6.x86_64.rpm" to fix it.

Wow -- what a pain.

(seeing how old this thread is and that it just surprised me now... )

Was this a bug in grep or a bug in the usage of grep by the petalinux tools?

 

 

0 Kudos