I tried MacPorts, but its qemu does not have qemu-system-ppc or qemu-system-mips. Even though, I have qemu installed under macports, if you see any dependency missing, try to port install qemu and then uninstall.
OSX 10.11.5
Xcode
Install QEMU
Download 2.6.0 from Qemu.org, configure and make like:
|
# ./configure --enable-cocoa --target-list=arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc-softmmu,ppc64-softmmu,x86_64-softmmu # make -j 8 # make install |
I did not see any error, Google if you see any.
Install Debian MIPS
Debian official installer only have netboot image. All you need is GOOD INTERNET CONNECTION, don’t download iso from debian cd mirror.
Prepare
Download vmlinux and initrd.
Install
Create Image
|
$ qemu-img create -f qcow2 disk.img 8G Formatting 'disk.img', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16 |
Install
|
$ qemu-system-mips -hda disk.img -kernel vmlinux-3.16.0-4-4kc-malta -initrd initrd.gz -nographic |
Follow the instructions, almost same as debian x86/x86_64.
You may be asked to configure and mount partition, I picked one partition and choose ext4 and mount to /.
Now, you have to wait for a long long time…
Then:
|
┌─────────────────┤ [!] Continue without boot loader ├──────────────────┐ │ │ │ No boot loader installed │ │ No boot loader has been installed, either because you chose not to or │ │ because your specific architecture doesn't support a boot loader yet. │ │ │ │ You will need to boot manually with the /vmlinux kernel on partition │ │ /dev/sda1 and root=/dev/sda1 passed as a kernel argument. │ │ │ │ <Continue> │ │ │ └───────────────────────────────────────────────────────────────────────┘ |
Just continue.
Run
|
qemu-system-mips -hda disk.img -kernel vmlinux-3.16.0-4-4kc-malta -append "root=/dev/sda1" -nographic |
!!!REMEMBER!!!
NO -initrd
-append “root=/dev/sda1”
!!!/REMEMBER!!!
If you want to exit qemu under nographic:
press ctrl+a, then c (no ctrl), type quit, hit enter.
|
root@debian-mips-jessie:~# lscpu Architecture: mips Byte Order: Big Endian CPU(s): 1 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 root@debian-mips-jessie:~# php -r "var_dump(bin2hex(pack('f', 236)));" string(8) "436c0000" |
Install Debian PowerPC
Similar to MIPS, but debian provides cdrom installer.
vmlinux, initrd.gz
So,
Install:
|
qemu-system-ppc -kernel vmlinux -initrd initrd.gz -cdrom debian-8.4.0-powerpc-CD-1.iso -hda disk.img |
Run:
You may see similar error message above saying quik loader failed to install, just ignore it.
And, for PowerPC, no -kernel and no -append is required.
You can also forward ssh to local loopback.
|
qemu-system-ppc -hda disk.img -net user,hostfwd=tcp::10022-:22 -net nic -m 256 |
|
root@debian:/home/sskaje# lscpu Architecture: ppc CPU op-mode(s): 32-bit Byte Order: Big Endian CPU(s): 1 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 Model: Power Macintosh BogoMIPS: 33.37 L1d cache: 32K L1i cache: 32K root@debian:/home/sskaje# php -r "var_dump(bin2hex(pack('f', 236.0)));" string(8) "436c0000" |
Incoming search terms: