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!

Reply

petalinux-config in 2014.2 does not run correctly.

Visitor
Posts: 7
Registered: ‎06-15-2014

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

build.log says;

 

[INFO ] config linux
[INFO ] generate DTS to /home/chunsj/Documents/AMP03/Linux/subsystems/linux/configs/device-tree
[INFO ] generate linux/u-boot board header files
[INFO ] generate BSP for zynq_fsbl
[INFO ] oldconfig linux/kernel
[INFO ] oldconfig linux/rootfs
[INFO ] config linux

and the terminal executing petalinux-config keeps saying;

 

sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 24: unknown option to `s'
sed: -e expression #1, char 24: unknown option to `s'
sed: -e expression #1, char 24: unknown option to `s'
sed: -e expression #1, char 24: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
sed: -e expression #1, char 25: unknown option to `s'
...

 

 

Visitor
Posts: 7
Registered: ‎06-18-2014

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

I am trying to use Mint 17 to configure petalinux-v2014.2. I get a very similar error. The config.log has:

 

*
* Firmware Version Configuration
*
Host name (SUBSYSTEM_HOSTNAME) [Avnet-Digilent-ZedBoard-2014_2]
Product name (SUBSYSTEM_PRODUCT) [Avnet-Digilent-ZedBoard-2014.2]
Firmware Version (SUBSYSTEM_FW_VERSION) [1.00]
#
# configuration written to /media/sf_S_DRIVE/tcplib/Avnet-Digilent-ZedBoard-2014.2/subsystems/linux/config
#
sed: -e expression #1, char 42: unknown option to `s'
sed: -e expression #1, char 46: unknown option to `s'
sed: -e expression #1, char 50: unknown option to `s'
sed: -e expression #1, char 83: unknown option to `s'
sed: -e expression #1, char 42: unknown option to `s'
sed: -e expression #1, char 162: unknown option to `s'
sed: -e expression #1, char 31: unknown option to `s'
sed: -e expression #1, char 26: unknown option to `s'
sed: -e expression #1, char 45: unknown option to `s'
sed: -e expression #1, char 26: unknown option to `s'
sed: -e expression #1, char 54: unknown option to `s'
sed: -e expression #1, char 26: unknown option to `s'

 

and continues with similar error messages. The terminal window says:

 

[INFO ] config linux/rootfs


*** End of the configuration.


make: Warning: File `/media/sf_S_DRIVE/tcplib/Avnet-Digilent-ZedBoard-2014.2/build/linux/rootfs/Makefile.export' has modification time 0.53 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
sed: -e expression #1, char 42: unknown option to `s'
sed: -e expression #1, char 46: unknown option to `s'
sed: -e expression #1, char 50: unknown option to `s'

and so on.

 

Any idea what I should check?

 

Visitor
Posts: 10
Registered: ‎02-28-2014

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

Any update to this issue I'm still unable to configure petalinux 2014.2 in ubuntu 14.04.

Visitor
Posts: 7
Registered: ‎06-15-2014

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

I cannot figure out any solution on this yet; just have reverted back to old, but working combo - Vivado 2013.4 + Petalinux 2013.10.

Visitor
Posts: 3
Registered: ‎06-24-2014

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

Hi,

I have the same problem...


Xilinx, is it possible to have access to the source code of the peta-linux tools to correct the bug ?

Thanks

Observer
Posts: 13
Registered: ‎02-07-2012

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

Same issue for Fedora 20 64-bit.  Any fix or workaround yet?

Visitor
Posts: 3
Registered: ‎06-24-2014

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

No fix or workaround, but i try to debug the problem :

 

I have created a script named : sed in ~/WORK/PROJECT/ZedBoard/bin :

#!/bin/bash
echo "argument : $*" >>~/WORK/PROJECT/ZedBoard/Log.txt
/bin/sed $* 2>>~/WORK/PROJECT/ZedBoard/Log.txt

 

Just before launch petalinux-config i export the script directory in PATH to override the real sed binary :

PATH="~/WORK/PROJECT/ZedBoard/bin:$PATH"

 

and then we have the log of the sed call that cause the error in ~/WORK/PROJECT/ZedBoard/Log.txt :

...

argument : s/hw-description/hw-description.tcl:            } else {==//g
/bin/sed: -e expression n°1, caractère 36: commande `s' inachevée
argument : s/hw-description/hw-description.tcl:                for {set i 0} {$i < 32} {incr i} {==//g
/bin/sed: -e expression n°1, caractère 36: commande `s' inachevée
argument : s/hw-description/hw-description.tcl:                    set idmap [list "${bankidreplacement}" ${i}]==//g
/bin/sed: -e expression n°1, caractère 36: commande `s' inachevée
argument : s/hw-description/hw-description.tcl:                    set basestrmap [string map ${idmap} "${bank_baseaddr_property}"]==//g
/bin/sed: -e expression n°1, caractère 36: commande `s' inachevée
argument : s/hw-description/hw-description.tcl:                    set highstrmap [string map ${idmap} "${bank_highaddr_property}"]==//g
/bin/sed: -e expression n°1, caractère 36: commande `s' inachevée
argument : s/hw-description/hw-description.tcl:                    set typestrmap [string map ${idmap} "${bank_type_property}"]==//g
/bin/sed: -e expression n°1, caractère 36: commande `s' inachevée
argument : s/hw-description/hw-description.tcl:                    set bankenablemap [string map ${idmap} "${bank_enabled_property}"]==//g
/bin/sed: -e expression n°1, caractère 36: commande `s' inachevée
argument : s/hw-description/hw-description.tcl:                    set bankenabled [get_property ${bankenablemap} ${hd}]==//g
/bin/sed: -e expression n°1, caractère 36: commande `s' inachevée
argument : s/hw-description/hw-description.tcl:                    if {"${bankenabled}" ==//g
/bin/sed: -e expression n°1, caractère 36: commande `s' inachevée
argument : s/hw-description/hw-description.tcl:                        break==//g
/bin/sed: -e expression n°1, caractère 36: commande `s' inachevée

...

 

It seem that sed is called with an argument containing "/hw-description/hw-description.tcl:"  concatenated with each line of the    test-project/build/linux/hw-description/hw-description.tcl script itself.

Please Xilinx ?

 

Observer
Posts: 13
Registered: ‎02-07-2012

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

Has anyone opened a webcase on this yet?  Our development is at a standstill until we can get at least a workaround for this.  I really don't want to install old versions of stuff just to get it working.  With nlantz's debugging hints, someone who knows the code should be able to fix this pretty quickly, I would think.  Sounds like reproducing the problem is pretty easy.

Xilinx Employee
Posts: 209
Registered: ‎12-17-2007

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

We've been seeing this a bit on unsupported OS's -- namely Ubuntu (and those based on it) and bleeding edge Fedora (19/20) .

 

We've begun some initial investigations into this but cannot reproduce it on supported OS's or shells so I cannot currently offer any kind of workaround/fix other than to use a supported OS as listed in the PetaLinux install guide.

-------------------------------------------
this space intentionally left blank
Observer
Posts: 13
Registered: ‎02-07-2012

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

Thanks for the reply, tmcdowe.  I appreciate your looking into this and also your viewpoint.  One comment is that it would be nice if there was just one free Linux distro in the officially supported list.  Pick whatever you want, and I will happily install that, but I can't justify purchasing RedHat or SUSE just to reconfig petalinux.

 

Do you have an estimate for a fix and/or an idea of which most recent Fedora does not have the problem?  Or, as nlantz suggested, could you allow some small access to the code so we can assist with debugging?  We have narrowed it down to an improperly formated regular expression substitution passed to sed.  I'm going to guess it will involve a tiny tweak to a script somewhere, but I can't tell what is making the improper sed call as some of the code is compiled.

 

Thanks.