From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] Documentation: mips: add little-endian qemu-malta HOWTO
Date: Fri, 10 Oct 2014 00:08:57 +0400 [thread overview]
Message-ID: <1412885337-1544-3-git-send-email-antonynpavlov@gmail.com> (raw)
In-Reply-To: <1412885337-1544-1-git-send-email-antonynpavlov@gmail.com>
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2014-10-09 20:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-09 20:08 [PATCH 0/2] mips: qemu-malta: add little-endian mode support Antony Pavlov
2014-10-09 20:08 ` [PATCH 1/2] " Antony Pavlov
2014-10-09 20:08 ` Antony Pavlov [this message]
2014-10-10 6:38 ` [PATCH 0/2] " Sascha Hauer
2014-10-10 8:43 ` Antony Pavlov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1412885337-1544-3-git-send-email-antonynpavlov@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox