Bug 648

Summary: QEMU Fails to start with 'serial' option
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Mark Hatle <mark.hatle>
Component: meta-yoctoAssignee: Edwin Zhai <edwin.zhai>
Status: RESOLVED WONTFIX QA Contact:
Severity: major    
Priority: High CC: jessica.zhang, poky.bs.watcher, poky.watcher, sgw
Version: 0.9   
Target Milestone: 1.0 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

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.