Bug 9778 - ppc64 isn't supported by qemu-native
Summary: ppc64 isn't supported by qemu-native
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.1
Hardware: All ppc64
: Medium enhancement
Target Milestone: Future
Assignee: akuster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-06-15 10:52 UTC by Ross Burton
Modified: 2020-10-22 08:20 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2016-06-15 10:52:22 UTC
If we want postinsts to run at build time then we need a working user-mode qemu-ppc64.

qemu-native doesn't build this, and there are reports that if you enable it then it crashes with Illegal Instruction.
Comment 1 Ross Burton 2016-06-15 11:00:36 UTC
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.
Comment 2 Ross Burton 2016-06-15 14:06:41 UTC
Also CCing Armin who wrote a machine for qemuppc64.  Getting this into oe-core itself would be a good step forwards.
Comment 3 Mark Hatle 2016-06-15 14:13:36 UTC
There are NXP (formerly FSL) ppc64 machines that would still be useful to have an emulated PPC64 target for.

In addition we'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've not had any work performed to implemented qemuppc64.  I would still like to see this from a community perspective, but I don't have the time to contribute at this point.
Comment 4 Armin Kuster 2016-06-16 15:13:26 UTC
sorry missed meeting ( jet lagged).

Ported forward changes.

Compile tested core-image-minimal fine.
Comment 5 Armin Kuster 2016-06-16 18:28:53 UTC
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.
Comment 6 Armin Kuster 2016-06-17 07:07:20 UTC
have it booting a 4.4 kernel. console not responding to input..  configuration most likey
Comment 7 Armin Kuster 2016-06-21 14:40:42 UTC
qemuppc64 target patch set sent to list.

http://patches.openembedded.org/patch/125373/
Comment 8 Ross Burton 2016-06-21 15:27:03 UTC
The machine builds, but usermode qemu is still non-existant:

> 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
Comment 9 Armin Kuster 2016-06-22 17:24:48 UTC
I am seeing an error similar to this when running testimage.

https://lists.gnu.org/archive/html/qemu-devel/2016-04/msg00262.html
Comment 10 Armin Kuster 2016-06-22 17:26:07 UTC
might be fixed via:

Patch has been accepted upstream:
http://git.qemu.org/?p=SLOF.git;a=commitdiff;h=e56149ca790859e0
Comment 11 Armin Kuster 2016-07-03 18:17:26 UTC
sent version 2 to list

https://patchwork.openembedded.org/patch/126029/
Comment 12 Randy MacLeod 2017-06-02 20:30:46 UTC
Armin, Care to do a v3? I'd test and review.

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

Is there still a problem with qemu user-mode?
Comment 13 Juro Bystricky 2018-02-23 19:06:28 UTC
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
Comment 14 Armin Kuster 2018-02-24 20:36:38 UTC
(In reply to comment #13)
> 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

I gave it one last try using the new qemu framework and I could not get it to work.
Comment 15 Juro Bystricky 2018-02-25 18:20:38 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > 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
> 
> I gave it one last try using the new qemu framework and I could not get it
> to work.

This time I did get the usermode qemu-ppc64 working correctly, (but not the system-qemu-ppc64).
Comment 16 Armin Kuster 2018-03-05 15:55:28 UTC
I am going to spend time on this again.