<?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>1131</bug_id>
          
          <creation_ts>2011-05-31 22:09:52 +0000</creation_ts>
          <short_desc>[Beagleboard] init error and can not login with 20110527 build</short_desc>
          <delta_ts>2011-06-16 20:05:39 +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-configuration</component>
          <version>1.0</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.1 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>dvhart</cc>
    
    <cc>elizabeth.flanagan</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>jingdong.lu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>pokylinux</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.bsp.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>14106</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-05-31 22:09:52 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.10 x86_64
Kernel: 2.6.35-28-generic

Image location:
http://autobuilder.yoctoproject.org/nightly/20110527-1/machines/beagleboard/
Tree/Branch: Poky/1.1_M1
Poky Commit: 4ff7af11ef69849ef9c16f585eae58ac920b222b

When boot up beagleboard with minimal or sato image, &apos;init&apos; will print some messages:

####################
...
Starting syslogd/klogd: done
 * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
   ...done.
Starting tcf-agent: OK
INIT: Id &quot;S&quot; respawning too fast: disabled for 5 minutes
INIT: Id &quot;S&quot; respawning too fast: disabled for 5 minutes
INIT: Id &quot;S&quot; respawning too fast: disabled for 5 minutes
INIT: Id &quot;S&quot; respawning too fast: disabled for 5 minutes
INIT: Id &quot;S&quot; respawning too fast: disabled for 5 minutes
INIT: Id &quot;S&quot; respawning too fast: disabled for 5 minutes

##################

The message will loop forever and can not login.

With 20110520-2 build (git commit: fc55b224caa3eeac4abda099ec9ed505db59fb28), there is no this issue.

I diff /etc/inittab with these two build:
###############
diff -Nurp 20/etc/inittab 27/etc/inittab
--- 20/etc/inittab  2011-05-21 21:39:10.000000000 +0800
+++ 27/etc/inittab  2011-05-29 06:06:03.000000000 +0800
@@ -28,7 +28,7 @@ l5:5:wait:/etc/init.d/rc 5
 l6:6:wait:/etc/init.d/rc 6
 # Normally not reached, but fallthrough in case of emergency.
 z6:6:respawn:/sbin/sulogin
-S:2345:respawn:/sbin/getty 115200 ttyO2
+S:2345:respawn:/sbin/getty 115200 ttyAMA0
 # /sbin/getty invocations for the runlevels.
 #
 # The &quot;id&quot; field MUST be the same as the last
###############

When I modified ‘ttyAMA0&apos; to &apos;ttyO2&apos;, it works.


My u-boot setting:
###############
setenv bootcmd &apos;mmc rescan 0; mmc init; fatload mmc 0:1 0x80300000 uImage; bootm 0x80300000&apos; 
setenv bootargs &apos;console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 ro&apos; 
boot 
###############</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14109</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-01 00:23:40 +0000</bug_when>
    <thetext>That looks like a misconfiguration on the autobuilder to me. meta-yocto beagleboard machine still specifies:

SERIAL_CONSOLE = &quot;115200 ttyO2&quot;

Has anything changed on the autobuilder that might modify SERIAL_CONSOLE?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14117</commentid>
    <comment_count>2</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2011-06-01 08:01:37 +0000</bug_when>
    <thetext>No, nothing should have changed from my end.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14122</commentid>
    <comment_count>3</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2011-06-01 11:05:03 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; That looks like a misconfiguration on the autobuilder to me. meta-yocto
&gt; beagleboard machine still specifies:
&gt; 
&gt; SERIAL_CONSOLE = &quot;115200 ttyO2&quot;
&gt; 
&gt; Has anything changed on the autobuilder that might modify SERIAL_CONSOLE?

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-yocto/conf/machine/beagleboard.conf?h=1.1_M1

On the 1.1_M1 branch, this is still in the meta-yocto beagleboard conf. I&apos;ll look for the patch and cherry-pick into branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14124</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-01 12:04:42 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #1)
&gt; &gt; That looks like a misconfiguration on the autobuilder to me. meta-yocto
&gt; &gt; beagleboard machine still specifies:
&gt; &gt; 
&gt; &gt; SERIAL_CONSOLE = &quot;115200 ttyO2&quot;
&gt; &gt; 
&gt; &gt; Has anything changed on the autobuilder that might modify SERIAL_CONSOLE?
&gt; 
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-yocto/conf/machine/beagleboard.conf?h=1.1_M1
&gt; 
&gt; On the 1.1_M1 branch, this is still in the meta-yocto beagleboard conf. I&apos;ll
&gt; look for the patch and cherry-pick into branch.

Then it is correct as is - sorry if my wording was confusing. What we would be looking for is something that changes SERIAL_CONSOLE to something other than what I have listed above. Specifically, to something like:

SERIAL_CONSOLE = &quot;115200 ttyAMA0&quot;

That is what would be causing the breakage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14125</commentid>
    <comment_count>5</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2011-06-01 13:03:04 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (In reply to comment #1)
&gt; &gt; &gt; That looks like a misconfiguration on the autobuilder to me. meta-yocto
&gt; &gt; &gt; beagleboard machine still specifies:
&gt; &gt; &gt; 
&gt; &gt; &gt; SERIAL_CONSOLE = &quot;115200 ttyO2&quot;
&gt; &gt; &gt; 
&gt; &gt; &gt; Has anything changed on the autobuilder that might modify SERIAL_CONSOLE?
&gt; &gt; 
&gt; &gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-yocto/conf/machine/beagleboard.conf?h=1.1_M1
&gt; &gt; 
&gt; &gt; On the 1.1_M1 branch, this is still in the meta-yocto beagleboard conf. I&apos;ll
&gt; &gt; look for the patch and cherry-pick into branch.
&gt; 
&gt; Then it is correct as is - sorry if my wording was confusing. What we would be
&gt; looking for is something that changes SERIAL_CONSOLE to something other than
&gt; what I have listed above. Specifically, to something like:
&gt; 
&gt; SERIAL_CONSOLE = &quot;115200 ttyAMA0&quot;
&gt; 
&gt; That is what would be causing the breakage.

I&apos;ve looked and nothing appears to be doing that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14127</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-01 15:11:57 +0000</bug_when>
    <thetext>I built core-image-sato w/ 4ff7af11ef69849ef9c16f585eae58ac920b222b and /etc/inittab in the generated rootfs contains the correct line:

S:2345:respawn:/sbin/getty 115200 ttyO2

Checking the root image of:
http://autobuilder.yoctoproject.org/nightly/20110527-1/machines/beagleboard/arm/core-image-minimal-beagleboard-20110529133331.rootfs.tar.bz2

and

http://autobuilder.yoctoproject.org/nightly/20110527-1/machines/beagleboard/arm/core-image-sato-beagleboard-20110529133331.rootfs.tar.bz2

reveals both have the bad getty line in inittab before initial boot:

S:2345:respawn:/sbin/getty 115200 ttyAMA0

A quick git grep reveals:

$ git grep AMA0
meta/conf/machine/qemuarm.conf:SERIAL_CONSOLE = &quot;115200 ttyAMA0&quot;

This suggests some confusion to me on the part of the autobuilder regarding which machine it is building for since the files do indeed include &quot;beagleboard&quot; in the name, but it is picking up the SERIAL_CONSOLE from qemuarm.conf.

Beth, can you have a look at the autobuilder local.conf to see if anything there might give us a hint? Does the build try and share any sstate with qemuarm?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14128</commentid>
    <comment_count>7</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2011-06-01 15:34:05 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; I built core-image-sato w/ 4ff7af11ef69849ef9c16f585eae58ac920b222b and
&gt; /etc/inittab in the generated rootfs contains the correct line:
&gt; 
&gt; S:2345:respawn:/sbin/getty 115200 ttyO2
&gt; 
&gt; Checking the root image of:
&gt; http://autobuilder.yoctoproject.org/nightly/20110527-1/machines/beagleboard/arm/core-image-minimal-beagleboard-20110529133331.rootfs.tar.bz2
&gt; 
&gt; and
&gt; 
&gt; http://autobuilder.yoctoproject.org/nightly/20110527-1/machines/beagleboard/arm/core-image-sato-beagleboard-20110529133331.rootfs.tar.bz2
&gt; 
&gt; reveals both have the bad getty line in inittab before initial boot:
&gt; 
&gt; S:2345:respawn:/sbin/getty 115200 ttyAMA0
&gt; 
&gt; A quick git grep reveals:
&gt; 
&gt; $ git grep AMA0
&gt; meta/conf/machine/qemuarm.conf:SERIAL_CONSOLE = &quot;115200 ttyAMA0&quot;
&gt; 
&gt; This suggests some confusion to me on the part of the autobuilder regarding
&gt; which machine it is building for since the files do indeed include
&gt; &quot;beagleboard&quot; in the name, but it is picking up the SERIAL_CONSOLE from
&gt; qemuarm.conf.
&gt; 
&gt; Beth, can you have a look at the autobuilder local.conf to see if anything
&gt; there might give us a hint? Does the build try and share any sstate with
&gt; qemuarm?

Yes. It does share sstate with qemuarm. If it can&apos;t share sstate, then this may cause some performance issues on the AB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14132</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-06-02 00:57:33 +0000</bug_when>
    <thetext>This looks like the opposite problem to an sstate issue. If sstate basichash was enabled we&apos;d actually not see this problem!

The bug looks like sysvinit needs PACKAGE_ARCH = &quot;${MACHINE_ARCH}&quot; adding to it since the sysvinit-inittab package is machine specific (correctly) but the recipe is only being built per arch (roughly speaking).

The alternative is to split out the conf file into a separate machine specific recipe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14137</commentid>
    <comment_count>9</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-06-02 14:16:26 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5d9ea7dea48e640b7345b7d664b284f731a4d6f9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14142</commentid>
    <comment_count>10</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2011-06-02 15:22:57 +0000</bug_when>
    <thetext>*** Bug 1071 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14161</commentid>
    <comment_count>11</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-06-03 14:32:58 +0000</bug_when>
    <thetext>Merged to M1 now also</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14324</commentid>
    <comment_count>12</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-06-16 20:04:03 +0000</bug_when>
    <thetext>Verified it with 20110602 build

Tree/Branch: Poky/1.1_M1
Poky Commit: b4a215bd94cf1508782e49b1a3f8c6b1f7effbb9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14325</commentid>
    <comment_count>13</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-06-16 20:05:39 +0000</bug_when>
    <thetext>Verified it with 20110613 build

Image location:
http://autobuilder.yoctoproject.org/nightly/20110613-1/
Tree/Branch: Poky/master
Commit: e5f3cc34df74c08c8cab3e1cf9207fafaec6cb9a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>