mipsrun is an emulator that allows to run binaries for MIPS machines on *nix-like operating systems.
mipsrun does not emulate the machines the binaries were meant to run on, but rather when the program asks to run a system call, mipsrun emulates the system call converting from and to the correct formats, so to the emulated application it looks like a system call in its native execution environment was executed.
mipsrun is written in C++, and has been tested on Linux (i386, amd64 and PPC), NetBSD (i386 and amd64) and Mac OS X 10.15. Right now it supports running binaries for Ultrix/MIPS and NEWS OS for MIPS.
For instance, to enable running Ultrix/MIPS binaries, run in a terminal or a script (assuming the mipsrun binary is present at /usr/local/bin/mipsrun):
echo ':ultrixmips:M::\x62\x01::/usr/local/bin/mipsrun:' > /proc/sys/fs/binfmt_misc/register
To enable running NEWS OS binaries, it is similar but you first need to make a wrapper shell script:
printf '#!/bin/sh\nmipsrun -mnews $*\n' > /usr/local/bin/newsrun
chmod +x /usr/local/bin/newsrun
echo ':newsmips:M::\x01\x60::/usr/local/bin/newsrun:' > /proc/sys/fs/binfmt_misc/register
mipsrun 0.1.1, released on April 20th 2018
mipsrun 0.1, released on August 18th 2017
Binary for Mac OS X
GNU objdump 2.14 20030612 for Ultrix
You can run this with mipsrun itself. Very useful if you need to disassemble MIPS COFF binaries for debugging, reverse engineering, development, etc.
Last updated: April 20th, 2018
Back to Unhaut