Externals - Fixed .gitignore to ignore source dirs
[tpg/acess2.git] / RunQemuArm
1 #!/bin/sh
2 #qemu-system-arm -M realview-pb-a8 -kernel Acess2.arm7.bin -serial stdio
3
4 QEMU=qemu-system-arm
5 USE_GDB=
6
7 _SYSTEM=realview-pb-a8
8 _KERNEL=Acess2.armv7-realview_pb.bin
9
10 QEMU_PARAMS=""
11 _NETTYPE="user"
12
13 while [ $# -ne 0 ]; do
14         case $1 in
15         -raspberrypi)
16                 _SYSTEM="versatilepb"
17                 QEMU_PARAMS=$QEMU_PARAMS" -cpu arm1176 -m 192 -localtime"
18                 _KERNEL=Acess2.armv6-raspberrypi.bin
19                 ;;
20         -gdb)
21                 QEMU_PARAMS=$QEMU_PARAMS" -s -S"
22                 ;;
23         -extramem)
24                 QEMU_PARAMS=$QEMU_PARAMS" -m 768"
25                 ;;
26         -e)
27                 shift
28                 QEMU_PARAMS=$QEMU_PARAMS" "$1
29                 ;;
30         -bin)
31                 shift
32                 QEMU=$1
33                 ;;
34         -tuntap)
35                 _NETTYPE="tap"
36         esac
37         shift
38 done
39 QEMU_PARAMS="-M $_SYSTEM -kernel KernelLand/$_KERNEL -net nic -net $_NETTYPE"$QEMU_PARAMS
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