Bug 648 - QEMU Fails to start with 'serial' option
Summary: QEMU Fails to start with 'serial' option
Status: RESOLVED WONTFIX
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: High major
Target Milestone: 1.0 M3
Assignee: Edwin Zhai
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-01-07 10:23 UTC by Mark Hatle
Modified: 2011-01-12 08:00 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hatle 2011-01-07 10:23:17 UTC
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 "root=/dev/hda console=ttyS0 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M console=ttyS0"
chardev: opening backend "stdio" failed
qemu: could not open serial device 'stdio': Success
Set 'tap0' nonpersistent
Releasing lockfile of preconfigured tap device 'tap0'


While it says "success", it failed and QEMU quit.
Comment 1 Edwin Zhai 2011-01-11 23:22:22 UTC
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 "stdio".
When specifying serial, our scripts would append "-serial stdio" 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.
Comment 2 Mark Hatle 2011-01-12 08:00:34 UTC
I specified both because simply adding nographics wasn'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't think it will be unusual for someone to read the help and select both and expect it to work.