Bug 3528 - [qemuarm] runqemu qemuarm throwing few errors on console
Summary: [qemuarm] runqemu qemuarm throwing few errors on console
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 arm
: Medium normal
Target Milestone: 1.4
Assignee: Andrei Dinu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-12-04 05:50 UTC by veera
Modified: 2013-01-17 15:31 UTC (History)
6 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 veera 2012-12-04 05:50:27 UTC
build : http://autobuilder.yoctoproject.org/pub/nightly/20121128-1/

vulinuz & initrd path  : http://autobuilder.yoctoproject.org/pub/nightly/20121128-1/machines/qemu/qemuarm/

Observation : runqemu qemuarm zImage-qemuarm.bin core-image-sato-qemuarm.ext3

Continuing with the following parameters:
KERNEL: [/opt/veera/releases/nov21/zImage-qemuarm.bin]
ROOTFS: [/opt/veera/releases/nov21/core-image-sato-qemuarm.ext3]
FSTYPE: [ext3]
Setting up tap interface under sudo
Acquiring lockfile for tap0...
WARNING: distccd not present, no distcc support loaded.
Running qemu-system-arm...
/opt/poky/1.3+snapshot/sysroots/i686-pokysdk-linux/usr/bin/qemu-system-arm -kernel /opt/veera/releases/nov21/zImage-qemuarm.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M versatilepb -hda /opt/veera/releases/nov21/core-image-sato-qemuarm.ext3 -no-reboot -show-cursor -usb -usbdevice wacom-tablet -no-reboot -m 128 --append "root=/dev/sda rw console=ttyAMA0,115200 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M highres=off "
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `lm4549.out'
Comment 1 veera 2012-12-05 06:26:56 UTC
This issue we observed on Host side . Not in the Qemu target dmesg.

when ever we run command : 
runqemu qemuarm zImage-qemuarm.bin core-image-sato-qemuarm.ext3

it is displaying errors on the console.

please check error messages .
Comment 2 Andrei Dinu 2012-12-10 15:35:26 UTC
As i investigated the problem today, i found some interesting facts: 

1. runqemu qemuarm *image* runs with "audio" option somehow activated and that is why the errors come up. If you do the same thing in a qemux86 image, the same errors appear. Something that i do not figure out is why the qemuarm run has that option, but the qemux86 not.

2. "alsa" is taken as default in runqemu script for QEMU_AUDIO_DRV which is not a good option, because it only supports one client. That means, if you start a music application and you want to start a runqemu, it will output that the device is busy. A solution to this is adding pulseaudio instead of alsa in the backend of runqemu.
Comment 3 Andrei Dinu 2012-12-12 11:27:21 UTC
I ran the qemu command without using the runqemu script like : 

sudo /home/adinu/work/poky4/poky/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-arm -kernel /home/adinu/work/poky4/poky/build/tmp/deploy/images/zImage-qemuarm.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M versatilepb -hda /home/adinu/work/poky4/poky/build/tmp/deploy/images/core-image-sato-qemuarm.ext3 -no-reboot -show-cursor -usb -usbdevice wacom-tablet -no-reboot -m 128 --append "root=/dev/sda rw console=ttyAMA0,115200 console=tty ip=192.168.7.2::192.168.7.1:255.255.255.0 mem=128M highres=off "

the errors appeared again. 

When running for a x86 image, the errors appear only if the argument -soundhw is set, which is ok. 

I sent a mail to qemu-devel to find out if this is a known issue and waiting for their reply. It's clearly not from the runqemu script.
Comment 4 Richard Purdie 2013-01-17 15:04:15 UTC
Drop incorrect dependencies