<?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>9411</bug_id>
          
          <creation_ts>2016-04-07 08:14:32 +0000</creation_ts>
          <short_desc>runqemu: make it support arch as the parameter rather than machine</short_desc>
          <delta_ts>2016-04-07 15:39:50 +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>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>4827</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60886</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-04-07 08:14:32 +0000</bug_when>
    <thetext>For example, qemu-system-i386 supports qemux86, genericx86, intel-x86-32 and so on, but our runqemu only supports qemux86, the similar to qemu-system-arm and others, we can make it accept arch the parameter rather than machine.

runqemu supports two ways to run atm:
1) $ runqemu path/to/image
2) $ runqemu machine

For the first way, its easy to do, we just require the user to input the arch, for example:
$ runqemu x86_64 path/to/image

But for the second one, if we run it as:
$ runqemu x86_64

We can&apos;t know where is the image since our image name doesn&apos;t contain arch, for example:

tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64-20160407073216.rootfs.cpio.gz

It would come true if we make the image name contains arch (not only machine name), for example:
core-image-minimal-qemux86-64-x86-64.cpio.gz
Or better:
core-image-minimal_qemux86-64_x86-64.cpio.gz</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60924</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-04-07 15:39:50 +0000</bug_when>
    <thetext>It&apos;s worth mentioning that by default qemux86-64 can&apos;t execute code for intel-corei7-64, so it&apos;s not that simple.

This sounds a lot like bug 4827.  The idea was that runqemu can be extended by BSPs, so for example if you try to runqemu on a corei7-64 image then the BSP tells it to run qemu-system-x86-64 -cpu Nehalem.

*** This bug has been marked as a duplicate of bug 4827 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>