barebox/Documentation/boards/mips/qemu-malta.rst
Antony Pavlov fd0877696d MIPS: add gxemul-malta_defconfig
GXemul supports MIPS Malta but with some limitations.
The most notable problems:

  * PCI-enabled barebox just hangs under GXemul;
  * by default gxemul uses 5Kc processor,
    so we have to force MIPS32R1 processor usage.

To fix these problems the special gxemul-malta_defconfig
is introduced and the board's documentation is updated.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-02-16 06:30:57 +01:00

53 lines
1.1 KiB
ReStructuredText

QEMU Malta
==========
Big-endian mode
---------------
QEMU run string::
qemu-system-mips -nodefaults -M malta -m 256 \
-nographic -serial stdio -monitor null \
-bios barebox-flash-image
Little-endian mode
------------------
Running little-endian Malta is a bit tricky.
In little-endian mode the 32bit words in the boot flash image are swapped,
a neat trick which allows bi-endian firmware.
You have to swap words of ``zbarebox.bin`` image, e.g.::
echo arch/mips/pbl/zbarebox.bin \
| cpio --create \
| cpio --extract --swap --unconditional
QEMU run string::
qemu-system-mipsel -nodefaults -M malta -m 256 \
-nographic -serial stdio -monitor null \
-bios barebox-flash-image
Using GXemul
------------
GXemul supports MIPS Malta except PCI stuff.
You can use GXemul to run little-endian barebox (use gxemul-malta_defconfig).
N.B. There is no need to swap words in ``zbarebox.bin`` for little-endian GXemul!
GXemul run string::
gxemul -Q -e malta -M 256 0xbfc00000:barebox-flash-image
Links
-----
* http://www.linux-mips.org/wiki/Mips_Malta
* http://www.qemu.org/
* http://gxemul.sourceforge.net/