First of all, make sure you run the latest version of radare2 from git repository:
$ git clone https://github.com/radare/radare2.git
$ cd radare2
$ ./sys/install.sh
If you don’t want to install the git version or you want the binaries for another machine (Windows, OS X, iOS, etc) check out the download page at the radare2 website.
To open MIPS
binary with radare2, simply use the following command:
radare2 -a mips -b 32 ./file
-a
arch - set asm.arch (x86, ppc, arm, mips, bf, java, ...)
-b
bits - set asm.bits (16, 32, 64)
Don't forget to read the manual (man r2
), it's all there.
For more relative information you can watch Andrew McDonnell's talk
called "Reverse engineering embedded software using radare2" (slides: link).
If you feel that you need more basic information about radare2 and how to use it, I recommend the following sources:
- Radare2 Book
- Radare2 Explorations
- Radare Demystified (Talk)