Topic: Testing packages with QEMU MIPS emulator
Using a MIPS emulator like QEMU (http://fabrice.bellard.free.fr/qemu/),
I could run some of the OpenWrt router applications (compiled for little
endian MIPS) on a normal Intel PC.
With binfmt_misc it is even possible to start them like any native application.
For those who want to try it, I give some hints here:
1. Install the latest qemu 0.8.0 (compiled from sources, QEMU CVS Head
or using the Debian package) on your Linux host.
2. You need a directory structure with binary executables and libraries,
for example a copy from a working router or the "root" directory from an
3. Run the MIPS router binaries like this:
qemu-mipsel -L root root/bin/busybox
(replace root by the path of your OpenWrt root directory).
This will start the emulation with little endian MIPS code of busybox using
library prefix root. Busybox will show the usual help message.
This is a simple and quick test to see whether everything was linked correctly,
and some applications even work. I tries some busybox commands and ipkg.
Do not expect that everything is working: the busybox sh crashs, and
network code like ping also results in error messages. "ipkg list" works,
"ipkg update" crashed.
Of course this can be fixed...
With some work QEMU's system emulation might even boot and run OpenWrt :-)
Those who are interested should also have a look at
http://www.linux-mips.org/wiki/Qemu (although it is not quite up-to-date).