[PATCH 2/2] Documentation: mips: add little-endian qemu-malta HOWTO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx>
---
 Documentation/boards/mips/qemu-malta.rst | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/Documentation/boards/mips/qemu-malta.rst b/Documentation/boards/mips/qemu-malta.rst
index be89ae3..22da600 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
 -----
 
-- 
2.1.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux