From 21949128eb6e8daf8308e29c19904288f9e341ef Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Fri, 9 Jul 2010 14:26:43 +0100 Subject: qemu-scripts: Add support for mips and powerpc machines, update qemuarm For mips, the malta platform emulates a cirrus chipset. With the udpated 2.6.34 kernel options, we can now enable framebuffer boot for the qemumips platform. We need to pass a valid cpu (603e) and do a -nographic boot to make it all the way to a prompt so graphics is disabled for now for ppc. Signed-off-by: Bruce Ashfield --- scripts/runqemu | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'scripts/runqemu') diff --git a/scripts/runqemu b/scripts/runqemu index 5b44402579..25d30c98a9 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -102,6 +102,32 @@ if [ "$MACHINE" = "qemuarm" ]; then fi fi +if [ "$MACHINE" = "qemumips" ]; then + if [ "x$ZIMAGE" = "x" ]; then + ZIMAGE=$BUILDDIR/tmp/deploy/images/vmlinux.bin-$MACHINE.bin + fi + if [ "$TYPE" = "ext3" ]; then + if [ "x$HDIMAGE" = "x" ]; then + T=$BUILDDIR/tmp/deploy/images + findimage $T $MACHINE ext3 "poky-image-sdk poky-image-sato poky-image-minimal" + fi + fi + CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr +fi + +if [ "$MACHINE" = "qemuppc" ]; then + if [ "x$ZIMAGE" = "x" ]; then + ZIMAGE=$BUILDDIR/tmp/deploy/images/zImage-$MACHINE.bin + fi + if [ "$TYPE" = "ext3" ]; then + if [ "x$HDIMAGE" = "x" ]; then + T=$BUILDDIR/tmp/deploy/images + findimage $T $MACHINE ext3 "poky-image-sdk poky-image-sato poky-image-minimal" + fi + fi + CROSSPATH=$BUILDDIR/tmp/sysroots/$BUILD_SYS/usr +fi + if [ "$MACHINE" = "spitz" ]; then if [ "$TYPE" = "ext3" ]; then if [ "x$HDIMAGE" = "x" ]; then @@ -144,6 +170,8 @@ if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "spitz" -o "$MACHINE" = "borzoi" -o TARGET_SYS="arm-poky-linux" elif [ "$MACHINE" = "qemux86" ]; then TARGET_SYS="i586-poky-linux" +elif [ "$MACHINE" = "qemumips" ]; then + TARGET_SYS="mips-poky-linux" fi if [ ! -e $CROSSPATH/$TARGET_SYS/bin/cc ]; then -- cgit v1.2.3-54-g00ecf