Kernel/arm7 - Fiddling with PCI etc
[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 _NETTYPE="user"
13
14 while [ $# -ne 0 ]; do
15         case $1 in
16         -gdb)
17                 QEMU_PARAMS=$QEMU_PARAMS" -s -S"
18                 ;;
19         -dbgbin)
20                 QEMU=/home/tpg/apps/bin/qemu-system-x86_64
21                 ;;
22         -extramem)
23                 QEMU_PARAMS=$QEMU_PARAMS" -m 768"
24                 ;;
25         -e)
26                 shift
27                 QEMU_PARAMS=$QEMU_PARAMS" "$1
28                 ;;
29         -tuntap)
30                 _NETTYPE="tap"
31         esac
32         shift
33 done
34 QEMU_PARAMS=$QEMU_PARAMS" -net "$_NETTYPE
35
36 #       /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt
37 #       qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt
38 $QEMU $QEMU_PARAMS -serial stdio | tee QemuLog.txt

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