summaryrefslogtreecommitdiffstats
path: root/Documentation/boards/mips/qemu-malta.rst
blob: 44f671638d9dcbfc27f8c1de6f748bd9b0cc5125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
QEMU Malta
==========

Big-endian mode
---------------

QEMU run string:

.. code-block:: sh

  qemu-system-mips -nodefaults -M malta -m 256 \
      -device VGA -serial stdio -monitor null \
      -bios ./images/barebox-qemu-malta.img


Little-endian mode
------------------

In little-endian mode the 32bit words in the boot flash image are swapped,
a neat trick which allows bi-endian firmware.

The barebox build generates a second ``./images/barebox-qemu-malta.img.swapped``
image that can be used in this case, e.g.:

.. code-block:: sh

  qemu-system-mipsel -nodefaults -M malta -m 256 \
      -device VGA -serial stdio -monitor null \
      -bios ./images/barebox-qemu-malta.img.swapped


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 the barebox binary for little-endian GXemul!

GXemul run string:

.. code-block:: sh

  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/