<?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>9778</bug_id>
          
          <creation_ts>2016-06-15 10:52:22 +0000</creation_ts>
          <short_desc>ppc64 isn&apos;t supported by qemu-native</short_desc>
          <delta_ts>2020-10-22 08:20:05 +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>core</component>
          <version>2.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>ppc64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="akuster">akuster808</assigned_to>
          <cc>akuster</cc>
    
    <cc>juro.bystricky</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>stephano</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62986</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-15 10:52:22 +0000</bug_when>
    <thetext>If we want postinsts to run at build time then we need a working user-mode qemu-ppc64.

qemu-native doesn&apos;t build this, and there are reports that if you enable it then it crashes with Illegal Instruction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62987</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-15 11:00:36 +0000</bug_when>
    <thetext>Mark, is there anyone at Wind River who cares about ppc64?

I guess the steps are 1) add qemuppc64 machine, 2) enable ppc64 in qemu 3) test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63003</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-15 14:06:41 +0000</bug_when>
    <thetext>Also CCing Armin who wrote a machine for qemuppc64.  Getting this into oe-core itself would be a good step forwards.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63004</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2016-06-15 14:13:36 +0000</bug_when>
    <thetext>There are NXP (formerly FSL) ppc64 machines that would still be useful to have an emulated PPC64 target for.

In addition we&apos;ve got associated tooling like prelink and just general testing that would be a good idea.

However, since our focus as been on the NXP parts, we&apos;ve not had any work performed to implemented qemuppc64.  I would still like to see this from a community perspective, but I don&apos;t have the time to contribute at this point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63040</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-06-16 15:13:26 +0000</bug_when>
    <thetext>sorry missed meeting ( jet lagged).

Ported forward changes.

Compile tested core-image-minimal fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63072</commentid>
    <comment_count>5</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-06-16 18:28:53 +0000</bug_when>
    <thetext>looks like I might need an additional native package qemu-slof. Had to install that to get the host qemuppc64 to work on my Ubuntu host.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63086</commentid>
    <comment_count>6</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-06-17 07:07:20 +0000</bug_when>
    <thetext>have it booting a 4.4 kernel. console not responding to input..  configuration most likey</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63193</commentid>
    <comment_count>7</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-06-21 14:40:42 +0000</bug_when>
    <thetext>qemuppc64 target patch set sent to list.

http://patches.openembedded.org/patch/125373/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63197</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-21 15:27:03 +0000</bug_when>
    <thetext>The machine builds, but usermode qemu is still non-existant:

&gt; Executing update_pixbuf_cache intercept ...
/data/poky-master/tmp-glibc/sysroots/qemuppc64/usr/bin/crossscripts/qemuwrapper: 2: /data/poky-master/tmp-glibc/sysroots/qemuppc64/usr/bin/crossscripts/qemuwrapper: qemu-ppc64: not found</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63266</commentid>
    <comment_count>9</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-06-22 17:24:48 +0000</bug_when>
    <thetext>I am seeing an error similar to this when running testimage.

https://lists.gnu.org/archive/html/qemu-devel/2016-04/msg00262.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63267</commentid>
    <comment_count>10</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-06-22 17:26:07 +0000</bug_when>
    <thetext>might be fixed via:

Patch has been accepted upstream:
http://git.qemu.org/?p=SLOF.git;a=commitdiff;h=e56149ca790859e0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63611</commentid>
    <comment_count>11</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-07-03 18:17:26 +0000</bug_when>
    <thetext>sent version 2 to list

https://patchwork.openembedded.org/patch/126029/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73665</commentid>
    <comment_count>12</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2017-06-02 20:30:46 +0000</bug_when>
    <thetext>Armin, Care to do a v3? I&apos;d test and review.

It would be nice to add qemuppc64 since that would help find bugs and 
surprisingly, ppc64 hardware development continues. We&apos;ve found some pp64
specific package defects when testing 2.4 at WR.

Is there still a problem with qemu user-mode?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79582</commentid>
    <comment_count>13</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2018-02-23 19:06:28 +0000</bug_when>
    <thetext>Any progress?
The link https://patchwork.openembedded.org/patch/126029/
does not seem to work for me, I *** think *** this one is equivalent:
https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=akuster/qemuppc64v2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79589</commentid>
    <comment_count>14</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-02-24 20:36:38 +0000</bug_when>
    <thetext>(In reply to comment #13)
&gt; Any progress?
&gt; The link https://patchwork.openembedded.org/patch/126029/
&gt; does not seem to work for me, I *** think *** this one is equivalent:
&gt; https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=akuster/
&gt; qemuppc64v2

I gave it one last try using the new qemu framework and I could not get it to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79594</commentid>
    <comment_count>15</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2018-02-25 18:20:38 +0000</bug_when>
    <thetext>(In reply to comment #14)
&gt; (In reply to comment #13)
&gt; &gt; Any progress?
&gt; &gt; The link https://patchwork.openembedded.org/patch/126029/
&gt; &gt; does not seem to work for me, I *** think *** this one is equivalent:
&gt; &gt; https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=akuster/
&gt; &gt; qemuppc64v2
&gt; 
&gt; I gave it one last try using the new qemu framework and I could not get it
&gt; to work.

This time I did get the usermode qemu-ppc64 working correctly, (but not the system-qemu-ppc64).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79706</commentid>
    <comment_count>16</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-03-05 15:55:28 +0000</bug_when>
    <thetext>I am going to spend time on this again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88465</commentid>
    <comment_count>17</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2020-10-22 08:20:05 +0000</bug_when>
    <thetext>this looks to be in master.

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=97b5b17cb1e589c592c505651608094ec33767cf</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>