cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
10,302 Views
Registered: ‎06-15-2014

petalinux-config in 2014.2 does not run correctly.

When I run petalinux-config and exit, then following error messages appears. After

 "*** End of the configuration." message;

 

sed: -e expression #1, char 50: unknown option to `s'
sed: -e expression #1, char 56: unknown option to `s'
sed: -e expression #1, char 58: unknown option to `s'
sed: -e expression #1, char 43: unknown option to `s'
sed: -e expression #1, char 45: unknown option to `s'
sed: -e expression #1, char 69: unknown option to `s'
sed: -e expression #1, char 92: unknown option to `s'
sed: -e expression #1, char 87: unknown option to `s'
sed: -e expression #1, char 87: unknown option to `s'
....

 

I'm using petalinux-v2014.2-final on Ubinti 14.04. How can I fix this

problem?

Tags (2)
0 Kudos
42 Replies
Highlighted
Contributor
Contributor
9,326 Views
Registered: ‎06-30-2014

Never mind... Mint 17 uses dash which fails the version test as being an illegal option to pass (--version).
0 Kudos
Highlighted
Contributor
Contributor
9,325 Views
Registered: ‎06-30-2014

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.

Highlighted
Visitor
Visitor
9,303 Views
Registered: ‎06-09-2014


@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
Highlighted
Visitor
Visitor
9,284 Views
Registered: ‎07-13-2014

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

0 Kudos
Highlighted
Newbie
Newbie
9,212 Views
Registered: ‎07-22-2014

Hi Gilles,

 

It worked for me on my Debian 7.

Thank you for the trick.

 

Robert

0 Kudos
Highlighted
Visitor
Visitor
9,011 Views
Registered: ‎05-07-2014

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
Highlighted
Observer
Observer
8,748 Views
Registered: ‎06-13-2014

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
8,740 Views
Registered: ‎12-17-2007

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
Highlighted
Newbie
Newbie
8,513 Views
Registered: ‎09-17-2014

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
Highlighted
Contributor
Contributor
8,503 Views
Registered: ‎06-30-2014


@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
Highlighted
3,311 Views
Registered: ‎10-11-2014

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
Highlighted
Newbie
Newbie
2,682 Views
Registered: ‎05-20-2015

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
Highlighted
Explorer
Explorer
2,282 Views
Registered: ‎07-17-2014

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