Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PowerPC emulation: Qemu, PearPC, or... ?

I'm currently trying to build a configuration to test some code on Big-Endian systems.

Through chats and research, i've been convinced that a good target for these tests would be the PowerPC architecture. Since i don't own one, and don't expect to get direct access to one anytime soon, i'm looking for some kind of emulation software to test my code.

Problem is, i've found no "easy to use" solution in this area.

It seems there are at least 2 possibles solutions, one using QEMU, and the other one using PearPC. None of them is really easy to deploy.

The way i see it :

I would like something as simple as deploying a VMWare virtual machine, with a simple ghost VM ready-to-use and to download.

Additional info : I believe Linux on PowerPC is probably the better OS choice here, since emulating a MAC environment is likely to break license. I guess QEMU is also more up-to-date and supported than PearPC. Host system can be either Windows or Linux. Host CPU must be x86.

like image 336
Cyan Avatar asked Jan 23 '12 12:01

Cyan


People also ask

Can QEMU emulate PPC?

Both qemu-system-ppc and qemu-system-ppc64 provide emulation for the following 32-bit PowerPC CPUs: e500v2. e500mc.

Does VMware support PowerPC?

VMware Fusion can run any of hundreds of operating systems provided by the user, including many older versions of macOS, which gives users a way to run older Mac application software that can no longer be run under the current version of macOS, such as 32-bit apps and Rosetta (PowerPC) apps.


2 Answers

On Windows, the complete steps are-

  1. Install Cygwin with all important libraries
  2. Download qemu for Windows from - http://lassauge.free.fr/qemu/ and unzip it
  3. Now download powerpc VM from http://people.debian.org/~aurel32/qemu/powerpc/ and put it inside qemu folder
  4. Now open a cygwin terminal and go to the qemu folder inside the terminal, then type-

    ./qemu-system-ppc -L Bios powerpc_linux.qcow2 -net nic -net user -m 1024

Here only change the VM name powerpc_linux.qcow2 to the correct one.

like image 103
rrsuj Avatar answered Dec 31 '22 00:12

rrsuj


There are some fairly recent Windows Binaries of QEMU available at this address :

http://lassauge.free.fr/qemu/

Furthermore, some Ready-to-download VM for various architectures, including PowerPC, have been prepared by Aurelien Jarno, and can be downloaded at this adress :

http://blog.aurel32.net/46

like image 25
Cyan Avatar answered Dec 31 '22 00:12

Cyan