From 9de3adafdda1c61a43dc70ec8d48f0b5652a1fa1 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 13 Sep 2012 13:29:51 +0800 Subject: [PATCH] RunQemu - Changes to allow testing using -nographic, and ECHI support --- RunQemu | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/RunQemu b/RunQemu index 74316df7..d2e9ec37 100755 --- a/RunQemu +++ b/RunQemu @@ -33,6 +33,13 @@ while [ $# -ne 0 ]; do -dbgbin) QEMU=/home/tpg/apps/bin/qemu-system-x86_64 ;; + -bin) + shift + QEMU=$1 + ;; + -dbgscript) + QEMU="echo $QEMU" + ;; -extramem) QEMU_PARAMS=$QEMU_PARAMS" -m 768" ;; @@ -52,6 +59,9 @@ while [ $# -ne 0 ]; do -notee) _NOTEE="yes" ;; + -nographic) + _NOGRAPHIC="yes" + ;; esac shift done @@ -59,6 +69,7 @@ QEMU_PARAMS=$QEMU_PARAMS" -net "$_NETTYPE if [ "x$_NOUSB" != "xyes" ] ; then QEMU_PARAMS=$QEMU_PARAMS" -usb" + QEMU_PARAMS=$QEMU_PARAMS" -device usb-ehci" QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none" QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image" QEMU_PARAMS=$QEMU_PARAMS" -usbdevice mouse" @@ -68,8 +79,14 @@ fi # /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt # qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt #echo $QEMU $BOOTOPT $QEMU_PARAMS -if [ "x$_NOTEE" != "xyes" ] ; then - $QEMU $BOOTOPT $QEMU_PARAMS -serial stdio | tee QemuLog.txt -else +if [ "x$_NOGRAPHIC" = "xyes" ] ; then + $QEMU $BOOTOPT $QEMU_PARAMS -nographic + exit +fi + +if [ "x$_NOTEE" = "xyes" ] ; then $QEMU $BOOTOPT $QEMU_PARAMS -serial stdio + exit fi + +$QEMU $BOOTOPT $QEMU_PARAMS -serial stdio | tee QemuLog.txt -- 2.20.1