<?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>3206</bug_id>
          
          <creation_ts>2012-10-02 15:50:41 +0000</creation_ts>
          <short_desc>all BSP images are failing to boot</short_desc>
          <delta_ts>2012-10-08 08:58:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-intel</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Understand the issue now, working on fix</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.3 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nitin Kamble">nitin.a.kamble</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>sgw</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26049</commentid>
    <comment_count>0</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-10-02 15:50:41 +0000</bug_when>
    <thetext>All the BSP images are failing with these error messages:

Bug in initramfs /init detected. Dropping to a shell. Good luck!

sh: cannot set terminal process group (-1): Inappropriate ioctl for device
sh: no job control in this shell




I have found the reason: this commit in the master:

commit ffb6928f5783e5202d9849c3a185e29be1d41c63
Author: Damien Lespiau &lt;damien.lespiau@intel.com&gt;
Date:   Thu Sep 27 15:20:50 2012 +0100

    initrd: Spawn an emergency shell when something goes wrong
    
    set -e allows to exit if a command fails. We install a trap and execute
    emergency_shell() when either the init script exits or when ctrl-c is
    typed (say if we are stuck somewhere and we want to debug it).
    
    (From OE-Core rev: ae5e2bd994e3f60d3803ab56e6ed34d08fbc56f0)
    
    Signed-off-by: Damien Lespiau &lt;damien.lespiau@intel.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
    Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index 3fba7dc..fb7af31 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -2,6 +2,17 @@
 
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
+emergency_shell()
+{
+    echo &quot;Bug in initramfs /init detected. Dropping to a shell. Good luck!&quot;
+    echo
+    sh
+}
+trap &quot;emergency_shell&quot; 0 2
+
+# exit immediately if a command fails
+set -e
+
 ROOT_MOUNT=&quot;/rootfs/&quot;
 ROOT_IMAGE=&quot;rootfs.img&quot;
 MOUNT=&quot;/bin/mount&quot;





And now I and Tom are working on to fix this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26072</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-10-02 20:25:46 +0000</bug_when>
    <thetext>I thought this was resolved by RP&apos;s reverting the orignal patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26073</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-10-02 20:28:19 +0000</bug_when>
    <thetext>I was able to get a good emenlow boot by reverting the patch, so yes, that should mean this can be closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26318</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-10-08 08:58:17 +0000</bug_when>
    <thetext>Verified in: 86c9aa8081f107420cd3763d0566d779daddc2b1

The folowing BSPs are confirmed to boot: n450, jasperforest, crownbay, emelow, FRI2, crownbay.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>