Missing files
[tpg/acess2.git] / RunQemu
1 #!/bin/sh
2 #qemu-system-x86_64 -fda DiskImage.img -boot a -serial stdio -net user,hostname=prelude,dns=10.0.2.1 -net nic,model=ne2k_pci -vga std
3
4 QEMU=qemu-system-x86_64
5 USE_GDB=
6
7 QEMU_PARAMS="-fda DiskImage.img -boot a"
8 QEMU_PARAMS=$QEMU_PARAMS" -hda AcessHDD.img"
9 QEMU_PARAMS=$QEMU_PARAMS" -vga std"
10 QEMU_PARAMS=$QEMU_PARAMS" -smp 2"
11 QEMU_PARAMS=$QEMU_PARAMS" -net nic"
12
13 QEMU_PARAMS=$QEMU_PARAMS" -usb"
14 QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none"
15 QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image"
16 QEMU_PARAMS=$QEMU_PARAMS" -usbdevice mouse"
17 _NETTYPE="user"
18
19 while [ $# -ne 0 ]; do
20         case $1 in
21         -gdb)
22                 QEMU_PARAMS=$QEMU_PARAMS" -s -S"
23                 ;;
24         -dbgbin)
25                 QEMU=/home/tpg/apps/bin/qemu-system-x86_64
26                 ;;
27         -extramem)
28                 QEMU_PARAMS=$QEMU_PARAMS" -m 768"
29                 ;;
30         -e)
31                 shift
32                 QEMU_PARAMS=$QEMU_PARAMS" "$1
33                 ;;
34         -tuntap)
35                 _NETTYPE="tap"
36         esac
37         shift
38 done
39 QEMU_PARAMS=$QEMU_PARAMS" -net "$_NETTYPE
40
41 #       /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt
42 #       qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt
43 $QEMU $QEMU_PARAMS -serial stdio | tee QemuLog.txt

UCC git Repository :: git.ucc.asn.au