<?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>3318</bug_id>
          
          <creation_ts>2012-10-22 13:26:06 +0000</creation_ts>
          <short_desc>cannot run qemuarm for denzil 1.2.2</short_desc>
          <delta_ts>2013-03-11 16:18:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>1.2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Georgescu">alexandru.c.georgescu</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</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>26797</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-22 13:26:06 +0000</bug_when>
    <thetext>GENERAL DESCRIPTION
qemuarm cannot be launched if adt-installer or a standalone toolchain is used
Happenes for Denzil 1.2.2 build.

IMAGES DOWNLOADED FROM:
http://autobuilder.yoctoproject.org/pub/nightly/20121018-4

STEPS TO REPRODUCE:
1. Download ADT installer from the above link.
2. Install using default settings
3. Download the qemuarm kernel from the above link to local disk
4. Source the arm environment:
[yocto@yocto-dell2 ~]$ source /opt/poky/1.2.1/environment-setup-armv5te-poky-linux-gnueabi 
5. Run qemu:
[yocto@yocto-dell2 ~]$ runqemu ~/test-yocto/arm/ ~/test-yocto/zImage-qemuarm.bin 



EXPECTED RESULT:
5. QEMU starts

ACTUAL RESULT:
6. QEMU fails to start:


[yocto@yocto-dell2 ~]$ runqemu ~/test-yocto/arm/ ~/test-yocto/zImage-qemuarm.bin 
Assuming /home/yocto/test-yocto/arm/ is an nfs rootfs
Set MACHINE to [qemuarm] based on kernel [/home/yocto/test-yocto/zImage-qemuarm.bin]

Continuing with the following parameters:
KERNEL: [/home/yocto/test-yocto/zImage-qemuarm.bin]
ROOTFS: [/home/yocto/test-yocto/arm/]
FSTYPE: [nfs]
Acquiring lockfile for tap1:...
Using preconfigured tap device &apos;tap1:&apos;
/opt/poky/1.2.1/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu-internal: line 214: (1: * 2) + 1 : missing `)&apos; (error token is &quot;: * 2) + 1 &quot;)
/opt/poky/1.2.1/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu-internal: line 215: (1: * 2) + 2 : missing `)&apos; (error token is &quot;: * 2) + 2 &quot;)
/opt/poky/1.2.1/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu-internal: line 262: 21111 + 1: : syntax error in expression (error token is &quot;: &quot;)
WARNING: distccd not present, no distcc support loaded.
Running qemu-system-arm...
/opt/poky/1.2.1/sysroots/x86_64-pokysdk-linux/usr/bin/qemu-system-arm -kernel /home/yocto/test-yocto/zImage-qemuarm.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap1:,script=no,downscript=no -M versatilepb --no-reboot -show-cursor -usb -usbdevice wacom-tablet -no-reboot -m 128 --append &quot;root=/dev/nfs nfsroot=192.168.7.1:/home/yocto/test-yocto/arm/, rw ip=192.168.7.::192.168.7.:255.255.255.0 mem=128M &quot;
qemu-system-arm: -net tap,vlan=0,ifname=tap1:,script=no,downscript=no: could not configure /dev/net/tun (tap1:): Operation not permitted
qemu-system-arm: -net tap,vlan=0,ifname=tap1:,script=no,downscript=no: Device &apos;tap&apos; could not be initialized
[sudo] password for yocto: 
Set &apos;tap1:&apos; nonpersistent
Releasing lockfile of preconfigured tap device &apos;tap1:&apos;
[yocto@yocto-dell2 ~]$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26798</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-22 13:27:52 +0000</bug_when>
    <thetext>QEMU also fails to start if a standalone toolchain is used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26806</commentid>
    <comment_count>2</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-10-22 17:41:33 +0000</bug_when>
    <thetext>Alex,

please check whether on your machine you&apos;ve already have another qemu instance running.  I was able to run qemu with downloaded 1.2.2 arm images via ext3 file and nfs successfully.  Normally, when I have this issue, there&apos;s some left behind qemu process that I have to manually kill them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26836</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-10-23 11:55:06 +0000</bug_when>
    <thetext>Jessica,
I have tried on other Fedora 17 machine that I used and failed.

I also tried on a CLEAN Fedora 17 machine, and it worked fine. So it seems that might be an isolated case.

Still, can you help me find what might be the issue?

Thanks,
Alex.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27137</commentid>
    <comment_count>4</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-11-01 06:59:14 +0000</bug_when>
    <thetext>Alex,

Sometimes when you exit qemu, it may not exit cleanly and thus cause issue for the next when you try to start qemu instance.  I&apos;m closing this bug till we can consistently reproduce it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30626</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-03-11 16:18:13 +0000</bug_when>
    <thetext>verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>