<?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>5351</bug_id>
          
          <creation_ts>2013-10-14 13:40:58 +0000</creation_ts>
          <short_desc>genericx86 auth.err getty[615]: tcgetattr: Input/output</short_desc>
          <delta_ts>2016-11-16 20:03:33 +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.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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.2</target_milestone>
          <dependson>6362</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Jianxun Zhang">jianxun.zhang</assigned_to>
          <cc>alejandro.hernandez</cc>
    
    <cc>benjamin.esquivel</cc>
    
    <cc>cristina-danielax.agurida</cc>
    
    <cc>dvhart</cc>
    
    <cc>georgex.l.musat</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          <qa_contact name="Juan Ramos">juan.fernandox.ramos.frayle</qa_contact>
          <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>37892</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-14 13:40:58 +0000</bug_when>
    <thetext>STATUS: FAILED
BUILD: dora-10.0.0.final:cb2836fee444bf5f7bd74d0612a4cd8f1b5d2e89.tar.bz2
ENVIRONMENT: generic-x86 on AtomPC and genericx86-64 on Sugarbay
STEPS TO REPRODUCE: 

1. Boot image
2. Check file /var/log/messages for errors

Outcome:

Notice errors:
Oct 14 12:19:45 genericx86 auth.err getty[615]: tcgetattr: Input/output error^M
Oct 14 12:19:55 genericx86 auth.err getty[679]: tcgetattr: Input/output error^M
Oct 14 12:20:05 genericx86 auth.err getty[680]: tcgetattr: Input/output error^M
Oct 14 12:20:15 genericx86 auth.err getty[686]: tcgetattr: Input/output error^M

NOTE: The errors continue to show up as long as the BSP is running.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43831</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-06-09 22:41:15 +0000</bug_when>
    <thetext>I believe a fix has been accepted for this. Is this still being seen?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44508</commentid>
    <comment_count>2</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2014-07-16 11:18:49 +0000</bug_when>
    <thetext>Still reproduces on dora 1.5.3.rc1 dc743744d8e3a9caef577aeab6b7f51bc08ded17</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44668</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-07-24 15:12:39 +0000</bug_when>
    <thetext>Is this fixed in a newer version and needs a back port?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44858</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-07-31 14:01:54 +0000</bug_when>
    <thetext>I&apos;m drawing a complete blank as to what I was referring to in Comment 1.

My hunch would be that the these BSPs use a serial TTY by default and that the hardware doesn&apos;t provide the one they specify, causing the serial getty in inittab to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50758</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2015-05-04 16:27:55 +0000</bug_when>
    <thetext>Saul, can you dig into this and see if you can reproduce?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50806</commentid>
    <comment_count>6</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-05-05 23:17:37 +0000</bug_when>
    <thetext>This is related to the fact that not all hardware have an actual tty wired up, 
for example the MinnowMax has a serial console therefore does not have this 
error. However the Sugarbay laptop does not have one.  If we can detect the 
fact that&apos;s there and then update the inittab at boot up time this could be 
resolved.  This is dependant on the Runtime Machine Config enhancement</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58207</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-01-25 18:12:06 +0000</bug_when>
    <thetext>*** Bug 8993 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59842</commentid>
    <comment_count>8</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-03-09 22:17:14 +0000</bug_when>
    <thetext>Assume RMC related per discussion in BSP meeting. Update to 2.1M4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60849</commentid>
    <comment_count>9</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-04-06 16:52:21 +0000</bug_when>
    <thetext>Saul,
I am not sure if the new targeted milestone 2.2 could be met because we assume it should be fixed by RMC but RMC development is suspended in these days. (Ref to bz8761)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62785</commentid>
    <comment_count>10</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-06-08 18:21:35 +0000</bug_when>
    <thetext>Saul,
I can produce it with sugar bay for this old bug. RMC is based on EFI firmware and bootloader per design. The sugar bay on my hand doesn&apos;t seem to have an EFI bios. We could need an EFI bios for this board first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64482</commentid>
    <comment_count>11</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-07-26 13:01:37 +0000</bug_when>
    <thetext>Issue still reproducible on a NUC in 2.2 M2 

commit: 36feb38045b7a2af86ece147fec54b0db3bf491f 

http://autobuilder.yoctoproject.org/pub/releases/yocto-2.2_M2.rc1/machines/genericx86-64/core-image-sato-sdk-genericx86-64.hddimg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64790</commentid>
    <comment_count>12</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-08-02 17:19:40 +0000</bug_when>
    <thetext>So far we have two platforms with this issue as QA tested. As old analysis pointed out, it happens because when boards don&apos;t have any serial port, and inittab generated contains tty lines. OE provides  some variables to configure no to add serial tty lines in inittab, but you have to create a static conf delta to deal with these boards. With new RMC feature which is pending on merge, we can retouch the inittab during installation based on type of board at runtime, so you don&apos;t have to create a board configuration, but just put a hook script in RMC to apply the change for the specific board.

I have patch staged on meta-intel-contrib for NUC and tested it. These patches depend on RMC feature which is still in review and submission.

For 5yr+ old sugarbay platform, I still cannot find suitable UEFI FW to support RMC.

I suggest we close this issue once patches I mentioned are completed merged for NUC. At least, we have a low-cost approach to do such customization for NUC series and other platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64957</commentid>
    <comment_count>13</comment_count>
    <who name="Jianxun Zhang">jianxun.zhang</who>
    <bug_when>2016-08-08 17:44:33 +0000</bug_when>
    <thetext>This is a summary to change its state to &quot;Resolved&quot; and &quot;fixed&quot;

I believe this issue is common on platforms don&apos;t have any serial port console with default OE configuration. The line with &quot;start_getty&quot; in generated inittab causes the error log on such platforms.

There are static or runtime methods to get rid of this line, depending on the platforms too.

() Static approach is to put SERIAL_CONSOLES = &quot;&quot; in conf file so the inittab recipe won&apos;t put any start_getty lines (traditional OE way). But this is not fitted in a generic machine configuration for a permanent setup (e.g. intel-core-* machines in meta-intel), which also supports boards having serial consoles.

() With new feature RMC recently merged in meta-intel, developers can deploy board-specific changes with a single build image according to board types at runtime. A special customization for NUC Gen 6 is included in builtin examples of RMC, to remove these start_getty lines in installation of a generic intel-corei7-64 image. No other OE configuration variables are required in this way. RMC is not enabled by default in meta-intel, so you need to enable it in conf file to verify NUC Gen 6:
    DISTRO_FEATURES_append = &quot; rmc&quot;
    EFI_PROVIDER = &quot;rmc-systemd-boot&quot;
Then install (not live-boot) image for intel-corei7-64 machine on NUC Gen 6. You should not see these error messages any more.

Refer to meta-intel/documentation/rmc/README for how to add new boards&apos; data when necessary.

() We haven&apos;t found a UEFI FW required by RMC to support old Sugarbay platform, so the static way should be the only solution. But since we have decided to stop support sugarbay due to its age in meta-intel, we recommend you to try RMC on any platforms with UEFI and SMBIOS in FW to resolve similar board-specific issues in a generic build.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>