<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10217</bug_id>
          
          <creation_ts>2016-09-04 09:07:50 +0000</creation_ts>
          <short_desc>Failed to build the Apollo Lake-I BSP image by following the instructions in BSP release notes</short_desc>
          <delta_ts>2016-09-13 18:51:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>BSP Guide</product>
          <component>bsp-docs</component>
          <version>2.1.1</version>
          <rep_platform>Other</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>2.1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Soo">YukLin.Soo</reporter>
          <assigned_to name="Mei Yeen Ng">mei.yeen.ng</assigned_to>
          <cc>boon.leong.ong</cc>
    
    <cc>rebecca.swee.fun.chang</cc>
    
    <cc>sgw</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65789</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Soo">YukLin.Soo</who>
    <bug_when>2016-09-04 09:07:50 +0000</bug_when>
    <thetext>Preconditions/Environment
-------------------------
Installed the latest Yocto project build system release YPCore-Krogoth 2.1.1 “poky-krogoth-15.0.1.tar.bz2” on the development host (Ubuntu 14.04.4 LTS, Trusty Tahr)

$ mkdir /yocto-project
$ cd /yocto-project
$ tar –xjvf poky-krogoth-15.0.1.tar.bz2
$ mv poky-krogoth-15.0.1 poky

Obtained the access permission to the Apollo Lake-I Github repositories and cloned the “bsp-apollolake-i” repository into a local directory /yocto-project/ on the development host. 

$ cd /yocto-project/
$ git clone https://github.com/01org/bsp-apollolake-i -b beta


Triggering Action/Cause
-----------------------
Following the instructions in section 2.2.2 Your Fist Build of the BSP release notes “Apollo_LakeI_BSP_for_Yocto_Project_Release_Notes_Beta.pdf”.

If this is your first build, run the “setup.sh” script from your bsp-apollolake-i/ directory

$ cd bsp-apollolake-i/
$ ./setup.sh

Select an option:
1. Build kernel image with CAVS HD Audio driver (Default)
2. Build kernel image with CAVS SSP Audio driver
3. Build kernel image with legacy HD Audio driver
Default option is build kernel image with CAVS HD Audio driver. If no input is received within 20 secs, default will be used.
1

Select an option:
1. core-image-sato-sdk (Default)
2. core-image-sato
3. linux-kernel
4. custom
Default build target is core-image-sato-sdk. If no input is received within 20 secs, default target will be built.
1

--2016-09-04 16:13:35--  http://git.yoctoproject.org/cgit/cgit.cgi/meta-jarvis/tree/meta-jarvis/jarvis.bb
Resolving git.yoctoproject.org (git.yoctoproject.org)... 140.211.169.56
Connecting to git.yoctoproject.org (git.yoctoproject.org)|140.211.169.56|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘jarvis.bb’

    [ &lt;=&gt;                                                     ] 3,410       --.-K/s   in 0s

2016-09-04 16:13:36 (261 MB/s) - ‘jarvis.bb’ saved [3410]

SUCCESS: wget test is healthy.
Build directory yocto_build already exists
Proceed to update ingredients ...
rm: cannot remove ‘unsetup.sh’: No such file or directory
Building BSP with core-image-sato-sdk image ...
Fetching in Apollo Lake BSP ingredient now
[16:13:48] cloning git://git.openembedded.org/meta-openembedded to repo-ext/meta-openembedded
Cloning into &apos;repo-ext/meta-openembedded&apos;...
Traceback (most recent call last):
  File &quot;setup/combo-layer&quot;, line 597, in &lt;module&gt;
    ret = main()
  File &quot;setup/combo-layer&quot;, line 593, in main
    actions.get(args[1], action_error)(confdata, args[1:])
  File &quot;setup/combo-layer&quot;, line 178, in action_init
    subprocess.check_call(&quot;git clone -b %s %s %s&quot; % (branch, conf.repos[name][&apos;src_uri&apos;], ldir), shell=True)
  File &quot;/usr/lib/python2.7/subprocess.py&quot;, line 540, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command &apos;git clone -b jethro git://git.openembedded.org/meta-openembedded repo-ext/meta-openembedded&apos; returned non-zero exit status 141
Initial Repo Population: Apollo Lake BSP for linux-yocto ver-4.1

Combo-layer configuration:
[poky]
src_uri = git://git.yoctoproject.org/poky
local_repo_dir = repo-ext/poky
dest_dir = .
branch = jethro
last_revision = 40376446904ae3529be41737fed9a0b650ed167d
file_filter = bitbake documentation LICENSE meta meta-yocto meta-yocto-bsp oe-init-build-env scripts

[meta-openembedded]
src_uri = git://git.openembedded.org/meta-openembedded
local_repo_dir = repo-ext/meta-openembedded
dest_dir = meta-openembedded
branch = jethro
last_revision = cb7e68f2a39fa6f24add48fc7b8d38fb7291bb44
file_filter = meta-oe meta-gnome meta-python meta-xfce meta-filesystems meta-multimedia meta-networking

[meta-qt5]
src_uri = https://github.com/meta-qt5/meta-qt5
local_repo_dir = repo-ext/meta-qt5
dest_dir = meta-qt5
branch = jethro
last_revision = ea37a0bc987aa9484937ad68f762b4657c198617

[meta-measured]
src_uri = https://github.com/flihp/meta-measured.git
local_repo_dir = repo-ext/meta-measured
dest_dir = meta-measured
branch = master
last_revision = 66aca6bc94e35f3c5896455d2feed2a35f428d28

[meta-intel-iot-middleware]
src_uri = git://git.yoctoproject.org/meta-intel-iot-middleware
local_repo_dir = repo-ext/meta-intel-iot-middleware
dest_dir = meta-intel-iot-middleware
branch = master
last_revision = 821cf14c8304669d9ce0c5b87b9be5a6eecff6e5
file_filter = COPYING.MIT MAINTAINERS README conf recipes-devtools/mraa recipes-devtools/swig recipes-devtools/upm
fatal: Not a git repository (or any parent up to mount point /yocto-projects)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Patching BSP meta layer ...
fatal: Not a git repository (or any parent up to mount point /yocto-projects)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /yocto-projects)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
=========================================================================
By default, this setup script will create a brand new repo which combines
meta-intel BSP layer and Yocto Project poky distro.
If you don&apos;t need git tracking, please &apos;rm -rf .git&apos; now
=========================================================================
./build.sh: line 70: oe-init-build-env: No such file or directory

local.conf: machine: CAVS HD-Audio -- intel-corei7-64-cavs-hda

./build.sh: line 90: bitbake: command not found
Entering build status checker ...
./setup.sh: line 319: cd: ../yocto_build/build/tmp/deploy/images/intel-corei7-64-cavs-hda/: No such file or directory
BSP Build: FAILED!!!
HDDIMG was not generated!
Please check the build log for detailed failure.
$

Expectation
-----------

The instructions in the BSP release notes “Apollo_LakeI_BSP_for_Yocto_Project_Release_Notes_Beta.pdf” should be able to guide a user to successfully build a Yocto BSP image and perform all the tasks as described in the BSP release notes.

Actual Results
---------------
The build process failed with error messages and the Yocto BSP image is not created.

Reproducibility
---------------
5/5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65838</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-09-06 19:06:29 +0000</bug_when>
    <thetext>Hi, 

This probably needs assigned to a different person initially so that the procedure from the README file can be checked out.  If changes to the procedure discovered during that debug process affect the end-user documentation, I can then update the manual.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65964</commentid>
    <comment_count>2</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2016-09-09 00:18:18 +0000</bug_when>
    <thetext>Apollo Lake BSP was developed using Poky Jethro. You may skip the installation of latest Yocto Project build system release on your build machine. The setup.sh script provided in bsp-apollolake-i will fetch the poky source from correct revision when it is run.

Please follow the wiki guide to setup SSH connection to GitHub before you start the build.
https://github.com/01org/bsp-apollolake-i/wiki/Setting-Up-Guide

You also need to get access to linux-apollolake-i repo in order to build the BSP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66086</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-09-13 15:19:48 +0000</bug_when>
    <thetext>Fixed with BSP team</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66098</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-09-13 18:51:42 +0000</bug_when>
    <thetext>Turning doc flag off.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>