Modules/InitRD - Disabled tree dump, it makes things slow :)
[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 _NETTYPE="user"
14
15 while [ $# -ne 0 ]; do
16         case $1 in
17         -gdb)
18                 QEMU_PARAMS=$QEMU_PARAMS" -s -S"
19                 ;;
20         -dbgbin)
21                 QEMU=/home/tpg/apps/bin/qemu-system-x86_64
22                 ;;
23         -extramem)
24                 QEMU_PARAMS=$QEMU_PARAMS" -m 768"
25                 ;;
26         -e)
27                 shift
28                 QEMU_PARAMS=$QEMU_PARAMS" "$1
29                 ;;
30         -fwd)
31                 _NETTYPE=$_NETTYPE",hostfwd=tcp::10023-10.0.2.10:23"
32                 ;;
33         -tuntap)
34                 _NETTYPE="tap"
35                 ;;
36         -nousb)
37                 _NOUSB="yes"
38                 ;;
39         -notee)
40                 _NOTEE="yes"
41                 ;;
42         esac
43         shift
44 done
45 QEMU_PARAMS=$QEMU_PARAMS" -net "$_NETTYPE
46
47 if [ "x$_NOUSB" != "xyes" ] ; then
48         QEMU_PARAMS=$QEMU_PARAMS" -usb"
49         QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none"
50         QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image"
51         QEMU_PARAMS=$QEMU_PARAMS" -usbdevice mouse"
52         QEMU_PARAMS=$QEMU_PARAMS" -usbdevice keyboard"
53 fi
54
55 #       /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt
56 #       qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt
57 if [ "x$_NOTEE" != "xyes" ] ; then
58         $QEMU $QEMU_PARAMS -serial stdio | tee QemuLog.txt
59 else
60         $QEMU $QEMU_PARAMS -serial stdio
61 fi

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