From: John Hodge Date: Sun, 9 Feb 2014 01:40:59 +0000 (+0800) Subject: RunQemu - Add module support for -dbin, PCI serial card (on TCP telnet 10023) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=42df7d481a523b6d92c5ed22502801173768b710;p=tpg%2Facess2.git RunQemu - Add module support for -dbin, PCI serial card (on TCP telnet 10023) --- diff --git a/RunQemu b/RunQemu index 01f3429f..e69a55ee 100755 --- a/RunQemu +++ b/RunQemu @@ -9,6 +9,7 @@ QEMU_PARAMS="" QEMU_PARAMS=$QEMU_PARAMS" -hda AcessHDD.img" QEMU_PARAMS=$QEMU_PARAMS" -vga std" QEMU_PARAMS=$QEMU_PARAMS" -smp 2" +MODS="" _NETTYPE="user,hostfwd=tcp::5555-:23" _NETMODEL=e1000 @@ -20,6 +21,10 @@ while [ $# -ne 0 ]; do -gdb) QEMU_PARAMS=$QEMU_PARAMS" -s -S" ;; + -mod) + shift + MODS=$MODS","$1 + ;; -dbin) shift if [ "x$2" = "xdefault" ] || [ "x$2" = "x" ]; then @@ -28,7 +33,7 @@ while [ $# -ne 0 ]; do _kfile="KernelLand/Acess2.$1-$2.bin" fi BOOTOPT="-kernel $_kfile" - BOOTOPT=$BOOTOPT" -initrd KernelLand/Modules/Filesystems/FS_InitRD.kmd.$1 -append \"$3\"" + BOOTOPT=$BOOTOPT" -initrd KernelLand/Modules/Filesystems/FS_InitRD.kmd.$1$MODS -append \"$3\"" shift shift ;; @@ -71,6 +76,10 @@ while [ $# -ne 0 ]; do shift _NETMODEL=$1 ;; + -pciserial) + QEMU_PARAMS=$QEMU_PARAMS" -device pci-serial,chardev=serial2" + QEMU_PARAMS=$QEMU_PARAMS" -chardev socket,id=serial2,host=localhost,port=10023,server,telnet" + ;; esac shift done