<?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>3088</bug_id>
          
          <creation_ts>2012-09-11 02:23:02 +0000</creation_ts>
          <short_desc>&quot;INIT: Id &quot;1&quot; Respawning too fast: disable for 5 minutes&quot; messge continues to appear on routerstationpro</short_desc>
          <delta_ts>2012-09-27 10:18:58 +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-runtime</component>
          <version>1.3</version>
          <rep_platform>Routerstationpro</rep_platform>
          <op_sys>mips</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>1.3 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>dvhart</cc>
    
    <cc>liang.li2</cc>
    
    <cc>paulg</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</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>25011</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-09-11 02:23:02 +0000</bug_when>
    <thetext>git info: 5343cdb20ee56a8b507733c637dcc2466ae13288
git branch: poky/master

This warning message continues to appear on routerstationpro.

In /etc/inittab, there&apos;s a line related to this:
1:2345:respawn:/sbin/getty 38400 tty1

But there&apos;s no /dev/tty1 file.

Command: ls /dev/tty?
Result: /dev/tty0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25173</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-09-13 14:40:09 +0000</bug_when>
    <thetext>Bruce, do we know what changed here? Was the tty1 line added to inittab? Have we changed the console/vt settings in the kernel config? What about devtmpfs?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25208</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-09-13 17:08:25 +0000</bug_when>
    <thetext>There are no kernel or kernel config changes that I can think
of that would have spawned (pun intended) the problem.

Can someone confirm that this hasn&apos;t always been happening since
we bumped the kernel version to 3.4 for the board ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25235</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-09-14 05:37:56 +0000</bug_when>
    <thetext>It seems that this problem is caused by the kernel verion bumping (from 3.0 to 3.4).  Here&apos;s some detail.

20120819 image from autobuilder has no such problem.
http://autobuilder.yoctoproject.org/pub/nightly/20120819-2/machines/routerstationpro/
Git Hash: d7a6aafea3c76dd8acea5e3b93833c4f521e5290
Git Branch: poky/master
root@routerstationpro:~# uname -r
3.0.32-yocto-standard
root@routerstationpro:~# ls /dev/tty?
/dev/tty0  /dev/tty2  /dev/tty4  /dev/tty6  /dev/tty8
/dev/tty1  /dev/tty3  /dev/tty5  /dev/tty7  /dev/tty9
root@routerstationpro:~# grep -i respawn /etc/inittab 
z6:6:respawn:/sbin/sulogin
S:2345:respawn:/sbin/getty 115200 ttyS0
1:2345:respawn:/sbin/getty 38400 tty1

20120822 image from autobuilder has this problem.
http://autobuilder.yoctoproject.org/pub/nightly/20120822-1/machines/routerstationpro/
Git Hash: 19ff55a53b436d463f9577adaed15be77708f0d2
Git Branch: poky/master
root@routerstationpro:~# ls /dev/tty?
/dev/tty0
root@routerstationpro:~# grep -i respawn /etc/inittab 
z6:6:respawn:/sbin/sulogin
S:2345:respawn:/sbin/getty 115200 ttyS0
1:2345:respawn:/sbin/getty 38400 tty1
root@routerstationpro:~# uname -r
3.4.7-yocto-standard
INIT: Id &quot;1&quot; respawning too fast: disabled for 5 minutes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25236</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-09-14 05:59:13 +0000</bug_when>
    <thetext>I looked into the /proc/config.gz file in both images (20120819 and 20120822).
There&apos;s no virtual console configuration item in kernel 3.4 (20120822 build).
zcat config.gz | grep -i console
CONFIG_NETCONSOLE=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_CONSOLE_POLL=y
CONFIG_KGDB_SERIAL_CONSOLE=y

On the other hand, CONFIG_VT_CONSOLE is enabled in kernel 3.0 (20120819 build).
zcat config.gz | grep -i console
CONFIG_NETCONSOLE=y
# CONFIG_NETCONSOLE_DYNAMIC is not set
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not set
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# Console display driver support
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25312</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-09-17 17:42:21 +0000</bug_when>
    <thetext>CONFIG_VT_CONSOLE=y should be part of yocto/standard (but not tiny). This might be a missing standard policy option. Having a look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25313</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-09-17 17:47:46 +0000</bug_when>
    <thetext>For the 3.4 kernel, both config VT and config VT_CONSOLE are &quot;default y&quot;. Although the only explicit inclusion of this in the linux-yocto meta dir is for the qemu-platform. Various defconfig set this to y, and one to &quot;is not set&quot;.

Bruce, are we pulling in a linux platform defconfig for the mips platform in addition to what is in meta?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25314</commentid>
    <comment_count>7</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-09-17 17:52:33 +0000</bug_when>
    <thetext>Oh, oops, I missed this:

bsp/routerstationpro/routerstationpro.cfg:# CONFIG_VT is not set

$ git blame -L 64,65 bsp/routerstationpro/routerstationpro.cfg
afe856e0 (Paul Gortmaker 2012-07-19 16:22:12 -0400 64) # CONFIG_VT is not set
afe856e0 (Paul Gortmaker 2012-07-19 16:22:12 -0400 65) # CONFIG_INPUT is not set

commit afe856e02ef6dcface4f74d094285e1f8524b5a0
Author: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Date:   Thu Jul 19 16:22:12 2012 -0400

    routerstationpro: Add a config fragment
    
    Unlike the previous config, this is a more minimalistic one
    that sticks to just specifying hardware items.
    
    The watchdog minifrag gets an update too, as a config option
    got renamed.
    
    Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;

So this is being explicitly disabled for this BSP.

Paul, was this deliberate or accidental?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25315</commentid>
    <comment_count>8</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-09-17 17:54:13 +0000</bug_when>
    <thetext>Chen, can you remove the CONFIG_VT line from the routerstationpro.cfg and rebuild the kernel. Does that resolve the problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25316</commentid>
    <comment_count>9</comment_count>
    <who name="Paul Gortmaker">paulg</who>
    <bug_when>2012-09-17 18:19:59 +0000</bug_when>
    <thetext>&gt; Paul, was this deliberate or accidental?

Deliberate.  It only has a serial console.  There is nothing resembling a visual or HID I/O interface/device on this thing.

Re-enabling CONFIG_VT will of course &quot;solve&quot; the problem, but that is not (IMO) the right fix.   The rootfs should be intelligent enough (or manually tuned) to not have an always-spawn-getty-on-tty1 mentality.  This thing has a low amount of memory, and enabling Kconfigs (and running extra userspace cruft) is hence not the right approach.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25327</commentid>
    <comment_count>10</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-09-18 05:40:43 +0000</bug_when>
    <thetext>I looked into meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb, and I noticed that this file has already take this issue into consideration.

Following&apos;s a piece of code dealing with VT configuration in inittab:
    if [ &quot;${USE_VT}&quot; = &quot;1&quot; ]; then
       # write virtual terminal configs into inittab</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25328</commentid>
    <comment_count>11</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-09-18 05:44:37 +0000</bug_when>
    <thetext>I looked into meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb, and I noticed that this file has already taken this issue into consideration.

Following&apos;s a piece of code dealing with VT configuration in inittab:
    if [ &quot;${USE_VT}&quot; = &quot;1&quot; ]; then
       # write virtual terminal configs into inittab
    fi

So I think just adding a line to meta-yocto-bsp/conf/machine/routerstationpro.conf would fix this.
diff --git a/meta-yocto-bsp/conf/machine/routerstationpro.conf b/meta-yocto-bsp/conf/machine/routerstationpro.conf
index 707392d..2b174e8 100644
--- a/meta-yocto-bsp/conf/machine/routerstationpro.conf
+++ b/meta-yocto-bsp/conf/machine/routerstationpro.conf
@@ -19,6 +19,7 @@ XSERVER ?= &quot;xserver-xorg \
             xf86-video-fbdev&quot;
 
 SERIAL_CONSOLE = &quot;115200 ttyS0&quot;
+USE_VT = &quot;0&quot;
 
 MACHINE_EXTRA_RRECOMMENDS = &quot; kernel-modules&quot;


But I don&apos;t know whether it is appropriate to do so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25334</commentid>
    <comment_count>12</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-09-18 07:59:57 +0000</bug_when>
    <thetext>That looks right to me. Whether that should be a = or a ?= might be a good thing to discuss on list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25474</commentid>
    <comment_count>13</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-09-20 14:51:01 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; That looks right to me. Whether that should be a = or a ?= might be a good
&gt; thing to discuss on list.

Chen, can you send the patch to the list - using &quot;?=&quot; please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25557</commentid>
    <comment_count>14</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-09-24 02:49:10 +0000</bug_when>
    <thetext>I&apos;ll send the patch to list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25819</commentid>
    <comment_count>15</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-09-27 01:51:13 +0000</bug_when>
    <thetext>merged to poky/master

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e911731f9f9f5f6101947c3c4490c90423f7980a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25842</commentid>
    <comment_count>16</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-09-27 10:18:58 +0000</bug_when>
    <thetext>Verified. 

git info: 718eb85806e080d0b165344b272e531ef19421eb
git branch: poky/1.3_M5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>