summaryrefslogtreecommitdiff
path: root/board/qemu-mips
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2013-01-08 17:51:11 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2013-01-16 10:52:08 +0100
commit2b086ce4a1e7bb35a885b1455239d1b1ee814f97 (patch)
tree032acf04db6c5d586398645ebe9ea91bfa985812 /board/qemu-mips
parent3567e4ef115dc129b4f8720b5abd65262f32f0f9 (diff)
downloadu-boot-imx-2b086ce4a1e7bb35a885b1455239d1b1ee814f97.zip
u-boot-imx-2b086ce4a1e7bb35a885b1455239d1b1ee814f97.tar.gz
u-boot-imx-2b086ce4a1e7bb35a885b1455239d1b1ee814f97.tar.bz2
MIPS: qemu-mips: update and fix example usage in README
By now U-Boot supports Qemu MIPS for little and big endian as well as 32 bit and 64 bit. Update and fix the example usage in the README to reflect this. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'board/qemu-mips')
-rw-r--r--board/qemu-mips/README28
1 files changed, 21 insertions, 7 deletions
diff --git a/board/qemu-mips/README b/board/qemu-mips/README
index ec58ce4..1fdfbab 100644
--- a/board/qemu-mips/README
+++ b/board/qemu-mips/README
@@ -7,7 +7,7 @@ http://www.nongnu.org/qemu/
Limitations & comments
----------------------
Supports the "-M mips" configuration of qemu: serial,NE2000,IDE.
-Support is big endian only for now (or at least this is what I tested).
+Supports little and big endian as well as 32 bit and 64 bit.
Derived from au1x00 with a lot of things cut out.
Supports emulated flash (patch Jean-Christophe PLAGNIOL-VILLARD) with
@@ -21,19 +21,33 @@ Notes for the Qemu MIPS port
I) Example usage:
-# ln -s u-boot.bin mips_bios.bin
-start it:
-qemu-system-mips -M mips -L . /dev/null -nographic
+Using u-boot.bin as ROM (replaces Qemu monitor):
-or
+32 bit, big endian:
+# make qemu_mips
+# qemu-system-mips -M mips -bios u-boot.bin -nographic
+
+32 bit, little endian:
+# make qemu_mipsel
+# qemu-system-mipsel -M mips -bios u-boot.bin -nographic
+
+64 bit, big endian:
+# make qemu_mips64
+# qemu-system-mips64 -cpu MIPS64R2-generic -M mips -bios u-boot.bin -nographic
+
+64 bit, little endian:
+# make qemu_mips64el
+# qemu-system-mips64el -cpu MIPS64R2-generic -M mips -bios u-boot.bin -nographic
+
+or using u-boot.bin from emulated flash:
if you use a qemu version after commit 4224
create image:
# dd of=flash bs=1k count=4k if=/dev/zero
# dd of=flash bs=1k conv=notrunc if=u-boot.bin
-start it:
-# qemu-system-mips -M mips -pflash flash -monitor null -nographic
+start it (see above):
+# qemu-system-mips[64][el] [-cpu MIPS64R2-generic] -M mips -pflash flash -nographic
2) Download kernel + initrd