<?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>10491</bug_id>
          
          <creation_ts>2016-10-24 17:09:20 +0000</creation_ts>
          <short_desc>sysv init &apos;respawing too fast&apos; on system startup</short_desc>
          <delta_ts>2017-03-14 18:29:00 +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>OE-Core</product>
          <component>virtual machines</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Aníbal Limón">anibal.limon</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>california.l.sullivan</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>sgw</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>67489</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-10-24 17:09:20 +0000</bug_when>
    <thetext>Building a core-image-minimal just with base layers, then launching it with runquemu and nographic as arguments, after a few seconds or minutes, one can see the following message

&quot;INIT: Entering runlevel: 5
Configuring network interfaces... done.
Starting syslogd/klogd: done

Poky (Yocto Project Reference Distro) 2.2 qemux86-64 /dev/ttyS0

INIT: Id &quot;S1&quot; respawning too fast: disabled for 5 minutes
[  131.580175] random: crng init done

Poky (Yocto Project Reference Distro) 2.2 qemux86-64 /dev/ttyS0

qemux86-64 login: &quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67490</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-10-24 17:14:03 +0000</bug_when>
    <thetext>Description is incomplete, here are more details:

Commit where the issue was found:
 

commit ef627ab364d52fe19994c94c1a78fbe21620a32c
Author: Joshua Lock &lt;joshua.g.lock@intel.com&gt;
Date:   Wed Oct 12 21:46:42 2016 +0100

    local.conf.sample.extended: remove RM_OLD_IMAGE
    
    RM_OLD_IMAGE has been removed so don&apos;t include this variable in
    sample local.conf
    
    (From meta-yocto rev: 0a881d01ab2b0a3f721323447b4c970ab3fd4755)
    
    Signed-off-by: Joshua Lock &lt;joshua.g.lock@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67496</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-10-24 17:48:26 +0000</bug_when>
    <thetext>This could also be related to SERIAL_CONSOLES and CHECK_SERIAL_CONSOLES for qemu.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67505</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-10-24 20:25:06 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; This could also be related to SERIAL_CONSOLES and CHECK_SERIAL_CONSOLES for
&gt; qemu.

Right, enabling SERIAL_CONSOLES_CHECK = &quot;115200;ttyS0 115200;ttyS1&quot; at local.conf, the problem is not present.  Sending the patch to the mailing list, doing the following 

SERIAL_CONSOLES_CHECK ?= &quot;${SERIAL_CONSOLES}&quot; 

at qemu.inc file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67511</commentid>
    <comment_count>4</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2016-10-24 22:01:16 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; This could also be related to SERIAL_CONSOLES and CHECK_SERIAL_CONSOLES for
&gt; &gt; qemu.
&gt; 
&gt; Right, enabling SERIAL_CONSOLES_CHECK = &quot;115200;ttyS0 115200;ttyS1&quot; at
&gt; local.conf, the problem is not present.  Sending the patch to the mailing
&gt; list, doing the following 
&gt; 
&gt; SERIAL_CONSOLES_CHECK ?= &quot;${SERIAL_CONSOLES}&quot; 
&gt; 
&gt; at qemu.inc file.

I don&apos;t think this is the correct solution.

SERIAL_CONSOLES_CHECK basically checks if a tty is an output for the kernel&apos;s console. qemurunner specifically wants to look at a tty without the kernel&apos;s console output so it can cleanly find a login prompt.

If using this variable removes the start_getty on ttyS1 from inittab, this would break qemurunner because its looking for the login prompt on ttyS1.

If using this variable does not remove the start_getty on ttyS1, qemurunner would still break because you would have had to add console=ttyS1 to the kernel command line, giving us kernel console output on the tty we are expecting a clean login prompt on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67531</commentid>
    <comment_count>5</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-10-25 14:14:30 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #2)
&gt; &gt; &gt; This could also be related to SERIAL_CONSOLES and CHECK_SERIAL_CONSOLES for
&gt; &gt; &gt; qemu.
&gt; &gt; 
&gt; &gt; Right, enabling SERIAL_CONSOLES_CHECK = &quot;115200;ttyS0 115200;ttyS1&quot; at
&gt; &gt; local.conf, the problem is not present.  Sending the patch to the mailing
&gt; &gt; list, doing the following 
&gt; &gt; 
&gt; &gt; SERIAL_CONSOLES_CHECK ?= &quot;${SERIAL_CONSOLES}&quot; 
&gt; &gt; 
&gt; &gt; at qemu.inc file.
&gt; 
&gt; I don&apos;t think this is the correct solution.
&gt; 
&gt; SERIAL_CONSOLES_CHECK basically checks if a tty is an output for the
&gt; kernel&apos;s console. qemurunner specifically wants to look at a tty without the
&gt; kernel&apos;s console output so it can cleanly find a login prompt.
&gt; 

Got it.

&gt; If using this variable removes the start_getty on ttyS1 from inittab, this
&gt; would break qemurunner because its looking for the login prompt on ttyS1.
&gt; 

Yes, it removes the ttyS1 line from inittab

&gt; If using this variable does not remove the start_getty on ttyS1, qemurunner
&gt; would still break because you would have had to add console=ttyS1 to the
&gt; kernel command line, giving us kernel console output on the tty we are
&gt; expecting a clean login prompt on.

Leaving this bug in the same status. I need to investigate other options. In the meantime, for my specific task, I can include that variable my local.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68785</commentid>
    <comment_count>6</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2016-12-01 16:52:30 +0000</bug_when>
    <thetext>Adding serial option the problem isn&apos;t present because adds another serial console redirected to terminal and the start_getty works.

For summarize,

serial - Adds one console to QEMU SDL X11 and another one for serial to terminal.
nographic - Adds only one console to terminal.
default - Adds only one console to QEMU SDL X11.

The last two shows the failure because one serial console is missing, i suggest to modify the runqmeu in nographic and default to add one serial console to null, since is a runtime decision and the inittab needs to have the two consoles.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70723</commentid>
    <comment_count>7</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-02-15 22:50:54 +0000</bug_when>
    <thetext>I will modify runqemu to provide two serial consoles as specified in machine qemu confs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70757</commentid>
    <comment_count>8</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-02-16 17:08:06 +0000</bug_when>
    <thetext>Review at,

http://lists.openembedded.org/pipermail/openembedded-core/2017-February/132867.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71095</commentid>
    <comment_count>9</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-03-06 21:07:23 +0000</bug_when>
    <thetext>Merge at,

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=86d6b790eb70c330e351b2ab4d9a9787c114bdf4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71275</commentid>
    <comment_count>10</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-03-14 18:29:00 +0000</bug_when>
    <thetext>Verified on commit: 6e20b31d5d17133e0fca086e12a0ad06ab5c4cc8 and working as expected</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>