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: 
Contributor
Contributor
654 Views
Registered: ‎01-25-2018

Petalinux 2018.3 build failed

I'm trying to build a petalinux image for the ZC706 using 2018.3.  

When I build I get the following error:

Log data follows:

| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/opt/petalinux/components/yocto/source/arm/layers/core/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['kern-tools-native', 'quilt-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_kernel_metadata
| [ERROR]: processing of file /tmp/tmp.C2ZIMUTLww failed
| /home/sl31870/projects/zc706/zc706/build/tmp/hosttools/dirname: missing operand
| Try '/home/sl31870/projects/zc706/zc706/build/tmp/hosttools/dirname --help' for more information.
| ERROR: Could not generate configuration queue for plnx-zynq7.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_kernel_metadata (log file is located at /home/sl31870/projects/zc706/zc706/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-r0/temp/log.do_kernel_metadata.1773)
ERROR: Task (/opt/petalinux/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.3.bb:do_kernel_metadata) failed with exit code '1'

When I try to do a petalinux-config -c kernel I get the same error.

0 Kudos
13 Replies
Moderator
Moderator
596 Views
Registered: ‎12-04-2016

Re: Petalinux 2018.3 build failed

Hi @bkzshabbaz 

Are you building the project from HDF?

0 Kudos
Contributor
Contributor
588 Views
Registered: ‎01-25-2018

Re: Petalinux 2018.3 build failed

  • Yes.  I also tried building from a BSP and got the same result.
0 Kudos
Contributor
Contributor
552 Views
Registered: ‎01-25-2018

Re: Petalinux 2018.3 build failed

Any help with this?  I'm not doing anything complicated.  I've tried this with both CentOS7.6 and Ubuntu 16.04.

Steps:

$ source /opt/petalinux/settings.sh 
$ petalinux-create -t project -s ~/Downloads/xilinx-zc706-v2018.3-final.bsp 
$  cd xilinx-zc706-2018.3/
$  petalinux-build

Contents of the log file:

DEBUG: Executing python function extend_recipe_sysroot
  2 NOTE: Direct dependencies are ['/opt/petalinux/components/yocto/source/arm/layers/core/meta/recipes-kernel/kern-tools/kern-too    ls-native_git.bb:do_populate_sysroot']
  3 NOTE: Installed into sysroot: []
  4 NOTE: Skipping as already exists in sysroot: ['kern-tools-native', 'quilt-native']
  5 DEBUG: Python function extend_recipe_sysroot finished
  6 DEBUG: Executing shell function do_kernel_metadata
  7 [ERROR]: processing of file /tmp/tmp.lFQew1KBgk failed
  8 /home/sl31870/projects/xilinx-zc706-2018.3/build/tmp/hosttools/dirname: missing operand
  9 Try '/home/sl31870/projects/xilinx-zc706-2018.3/build/tmp/hosttools/dirname --help' for more information.
 10 ERROR: Could not generate configuration queue for zc706-zynq7.
 11 WARNING: exit code 1 from a shell command.
 12 ERROR: Function failed: do_kernel_metadata (log file is located at /home/sl31870/projects/xilinx-zc706-2018.3/build/tmp/work/zc706_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.3+gitAUTOINC+eeab73d120-r0/temp/log.do_kernel_metadata.4843)
0 Kudos
Contributor
Contributor
540 Views
Registered: ‎01-25-2018

Re: Petalinux 2018.3 build failed

I dug a little deeper and found it failed at line 172 of /opt/petalinux/components/yocto/source/arm/layers/core/meta/classes/kernel-yocto.bbclass

# run1: pull all the configuration fragments, no matter where they come from
168     elements="`echo -n ${bsp_definition} ${sccs} ${patches} ${KERNEL_FEATURES}`"
169     if [ -n "${elements}" ]; then
170         echo "${bsp_definition}" > ${S}/${meta_dir}/bsp_definition
171         scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} ${bsp_definition} ${sccs} ${patches} ${KERNEL_FEATURES}
172         if [ $? -ne 0 ]; then
173             bbfatal_log "Could not generate configuration queue for ${KMACHINE}. 1111"
174         fi
175     fi

What is this scc command and why would it fail?

0 Kudos
Moderator
Moderator
529 Views
Registered: ‎04-24-2017

Re: Petalinux 2018.3 build failed

Hi @bkzshabbaz ,

Can you post your hdf in forum/private message which ever you are comfortable? 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Contributor
Contributor
527 Views
Registered: ‎01-25-2018

Re: Petalinux 2018.3 build failed

I'm using the BSP from xilinx's download page.

0 Kudos
Moderator
Moderator
511 Views
Registered: ‎04-24-2017

Re: Petalinux 2018.3 build failed

Hi @bkzshabbaz ,

What is your host machine system configurations?

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Contributor
Contributor
507 Views
Registered: ‎01-25-2018

Re: Petalinux 2018.3 build failed

Can you be more specific as to what you're looking for?  e.g., all my installed packages?

I'm running both Centos 7.6 and Ubuntu 16.04.  I am also running from behind a web proxy, but it was able to fetch all the other packages.  I tried this build on a fresh Ubuntu 16.04 install and it was successful.  

0 Kudos
Moderator
Moderator
501 Views
Registered: ‎04-24-2017

Re: Petalinux 2018.3 build failed

@bkzshabbaz ,

I mean your physcial system requirement like number of CPU's and RAM.

CentOS 7.6 is not supported in 2018.x release refer https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_3/ug1144-petalinux-tools-reference-guide.pdf page 10.

Also what is the minor version of Ubuntu 16.04.x? 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Contributor
Contributor
496 Views
Registered: ‎01-25-2018

Re: Petalinux 2018.3 build failed

My CentOS machine is 24 cores w/256GB of RAM.  I'm downloading 2019.1, is CentOS7.6 supported in that version?

My Ubuntu machine is 8 cores w/16GB of RAM.  I believe the full version of Ubuntu is 16.04.05

0 Kudos
Moderator
Moderator
484 Views
Registered: ‎04-24-2017

Re: Petalinux 2018.3 build failed

Yes 2019.1 supports CentOS 7.6

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Highlighted
Contributor
Contributor
456 Views
Registered: ‎01-25-2018

Re: Petalinux 2018.3 build failed

@sandeepg 

It did not work with 2019.1.  

Do you have any insight as to what the following command is doing?

scc --force -o ${S}/${meta_dir}:cfg,merge,meta ${includes} ${bsp_definition} ${sccs} ${patches} ${KERNEL_FEATURES}

 

0 Kudos
Mentor watari
Mentor
438 Views
Registered: ‎06-16-2013

Re: Petalinux 2018.3 build failed

Hi @bkzshabbaz 

 

What kind of she’ll do you use ?

Also would you share the result of following command ?

 

$ ls - lA /bin/sh

 

I suggest you to use bash as default shell.

 

Best regards,

0 Kudos