<?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>648</bug_id>
          
          <creation_ts>2011-01-07 10:23:17 +0000</creation_ts>
          <short_desc>QEMU Fails to start with &apos;serial&apos; option</short_desc>
          <delta_ts>2011-01-12 08:00:34 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Edwin Zhai">edwin.zhai</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>11434</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-01-07 10:23:17 +0000</bug_when>
    <thetext>poky-qemu qemumips nographic serial

results in the following error:


Running qemu-system-mips...
/home/mhatle/git/poky/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-mips -kernel /home/mhatle/git/poky/build/tmp/deploy/images/vmlinux-qemumips.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M malta -hda /home/mhatle/git/poky/build/tmp/deploy/images/poky-image-sato-qemumips.ext3 -no-reboot -vga cirrus -show-cursor -usb -usbdevice wacom-tablet -no-reboot -nographic -serial stdio --append &quot;root=/dev/hda console=ttyS0 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M console=ttyS0&quot;
chardev: opening backend &quot;stdio&quot; failed
qemu: could not open serial device &apos;stdio&apos;: Success
Set &apos;tap0&apos; nonpersistent
Releasing lockfile of preconfigured tap device &apos;tap0&apos;


While it says &quot;success&quot;, it failed and QEMU quit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11454</commentid>
    <comment_count>1</comment_count>
    <who name="Edwin Zhai">edwin.zhai</who>
    <bug_when>2011-01-11 23:22:22 +0000</bug_when>
    <thetext>Mark,
This is right behavior of qemu rather than one bug.
When specifying nographic(which means no graphics card), qemu tried to recirect guest text console to &quot;stdio&quot;.
When specifying serial, our scripts would append &quot;-serial stdio&quot; to qemu. So if you spefciying both, there is conflict so that qemu refuse to open stdio for 2nd time and exit.

Why do you need specify both? In general, picking up on should be enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11456</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-01-12 08:00:34 +0000</bug_when>
    <thetext>I specified both because simply adding nographics wasn&apos;t working, and was crashing.

I strongly suggest that if both nographics and serial are selected, that the proper behavior occurs and the system is made to work without an error.  I don&apos;t think it will be unusual for someone to read the help and select both and expect it to work.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>