Tag Archives: Jelly Bean

The new cookie in the Android jar: the mips emulator

You might have noticed a new addition to the targets available for Android in Jelly Bean: the mips emulator.

In order to build it you need the Android source tree (master branch). For instructions on how to get the source code see How to build a custom Android emulator image.

You need to set the environment for the mips emulator and compile:

$ source build/envsetup.sh
$ lunch full_mips-eng
$ make -j4

After the build finishes you can run the mips emulator:

$ emulator -avd my_avd

You can connect to the running emulator using adb to check you are really running the mips emulator:

$ adb shell
# ls /proc/cpuinfo
/proc/cpuinfo
# cat /proc/cpuinfo
system type : MIPS-Goldfish
Hardware : goldfish
Revison : 1
processor : 0
cpu model : MIPS 24Kc V0.0 FPU V0.0
BogoMIPS : 1150.15
wait instruction : yes
microsecond timers : yes
tlb_entries : 16
extra interrupt vector : yes
hardware watchpoint : yes, count: 1, address/irw mask: [0x0ff8]
ASEs implemented :
shadow register sets : 1
core : 0
VCED exceptions : not available
VCEI exceptions : not available

You can also check the developer.mips.com/android site for information on Android for mips.