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!
06-15-2014 10:49 PM
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?
06-16-2014 01:26 PM
I have the same problem, did you find an answer?
06-16-2014 04:08 PM
Unfortunately, nope.
06-16-2014 06:39 PM
06-16-2014 07:34 PM
06-17-2014 02:20 AM
Same problem on 64bit ArchLinux.
06-17-2014 03:15 AM
It seems that petalinux-config in 2014.2 does have problem in 64 bit linux. Do you hear me xilinx? :-)
06-17-2014 06:28 AM
Hi,
Did you install all the required tools and libraries as documented in the install guide?
I have seen a different issue I don't understand yet, but not the same as yours.
Thanks
John
06-17-2014 11:41 AM
Hi I am using the 32bit version of Ubuntu and have just double checked the lib install against that given on page 10 of the install guide. The libs are all there and up to date except for the 32 bit libs which it says it can’t find. I googled that and think I have now installed them but I am still getting the sed error. Xilinx tools just don’t seem to work for me and I have spent many weekends trying!
06-17-2014 06:15 PM
What error occurred? Why don't you paste the result of "tail -10 build/build.log"?
e.g., "bc" package is required to build your kennel.
if you use a new version of Ubuntu 64-bit, "primus-libs-ia32" package is required instead of "ia32-libs".
FYI, here is my instruction to execute PetaLinux SDK on Ubuntu:
sudo apt-get install primus-libs-ia32 bc tofrodos iproute gawk gcc \
git-core build-essential make net-tools ncurses-dev tftpd-hpa \
zlib1g-dev flex bison lib32ncursesw5 lib32ncurses5 lib32gomp1
06-17-2014 09:00 PM
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'
...
06-18-2014 07:43 AM
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?
06-23-2014 11:20 PM
Any update to this issue I'm still unable to configure petalinux 2014.2 in ubuntu 14.04.
06-24-2014 12:00 AM
I cannot figure out any solution on this yet; just have reverted back to old, but working combo - Vivado 2013.4 + Petalinux 2013.10.
06-24-2014 02:09 AM
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
06-24-2014 05:45 PM
Same issue for Fedora 20 64-bit. Any fix or workaround yet?
06-25-2014 02:38 AM
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 ?
06-26-2014 10:09 AM
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.
06-26-2014 11:46 AM
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.
06-26-2014 12:34 PM
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.
06-26-2014 12:49 PM
Our engineering staff are aware of this so if their is a straightforward fix, it will be published as an AR.
Also, we are currently investigating supporting additional OS's -- namely Ubuntu and CentOS -- for an upcoming release of PetaLinux.
06-26-2014 01:21 PM
Thanks for the info. Sounds promising.
06-26-2014 03:20 PM
To me, it's matter of fixing sed script; can you change separator of sed script something other than '/', so that / character in path be not collided with separator of sed script?
Though I've downgraded the whole toolset and cannot test this, maybe create sed wrapper doing this might work around this problem.
07-01-2014 03:39 AM
I've installed a CentOS 6.5 (equivalent to RedHat 6.5 but free) in a virtual machine (under virtualbox) and it's working:
https://centos.org/download/
But it's not a satisfying solution for me as it complicates a lot the developpement.
Message to the xilinx managers/decision-makers :
We are in 2014 and you can't always say "use a supported OS". We can't buy a workstation only for xilinx Tools.
If you are not able to correctly support your tools under very common OS like Ubuntu, please open your source-code. All developpers will be happy to help Xilinx to improve the developpement flow (instead to be at a standstill !!).
Petalinux is a 1% closed source tool above 99% of open source components. This situation is ridiculous.
07-07-2014 02:48 PM
07-09-2014 04:51 AM
Have same errors! Please, fix it or release 2014.5 ASAP!
07-15-2014 08:41 AM
This seem to indicate that the result of a grep is passed to sed (grep sometimes prefixes the matched lines with the file name). And indeed compiling the same version of grep as Centos 6 (grep 2.6.3) and installing it in a directory added to the PATH before running petalinux-config seem to do the trick.
07-16-2014 07:02 AM
Gilles,
That note about grep managed to get me slightly farther on Mint 17.
Having downloaded grep 2.6.3 tarball, I configured it to use the ./tools/common/petalinux path as its installation directory (./configure --prefix=<path>). That way the petalinux settings.sh script would automatically configure the path to use the "right" grep. However, now I get the following error as petalinux-configure exits:
/bin/sh: 1: pushd: not found
/bin/sh: 1: popd: not found
make: *** [post-config-auto-config] Error 127
ERROR: Failed to post config linux
ERROR: Failed to config component linux
Did you have to do anything else to have grep resolve the problem? Reinstall the petalinux tools or something along those lines?
07-16-2014 07:58 AM
07-16-2014 08:02 AM
Just chage /bin/sh to point to /bin/bash. Something like this
sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh