summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2014-10-10 00:08:57 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2014-10-10 08:37:31 +0200
commit8ce2aba5c51e27da3dcb80825682b3aba3c3b627 (patch)
tree9b5cf81a9e0737906822cb646898cf5828281f56 /Documentation
parent4764384549a747a8ed70037c6fed5b32f61c7e41 (diff)
downloadbarebox-8ce2aba5c51e27da3dcb80825682b3aba3c3b627.tar.gz
barebox-8ce2aba5c51e27da3dcb80825682b3aba3c3b627.tar.xz
Documentation: mips: add little-endian qemu-malta HOWTO
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/boards/mips/qemu-malta.rst24
1 files changed, 24 insertions, 0 deletions
diff --git a/Documentation/boards/mips/qemu-malta.rst b/Documentation/boards/mips/qemu-malta.rst
index be89ae3d55..22da600615 100644
--- a/Documentation/boards/mips/qemu-malta.rst
+++ b/Documentation/boards/mips/qemu-malta.rst
@@ -1,6 +1,9 @@
QEMU Malta
==========
+Big-endian mode
+---------------
+
QEMU run string::
qemu-system-mips -nodefaults -M malta -m 256 \
@@ -11,6 +14,27 @@ Also you can use GXemul::
gxemul -Q -x -e maltabe -M 256 0xbfc00000: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
+
+
Links
-----