UDI/ne2000 - RX code implemented
[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 TEE="| tee QemuLog.txt"
13
14 while [ $# -ne 0 ]; do
15         case $1 in
16         -raspberrypi)
17                 _SYSTEM="versatilepb"
18                 QEMU_PARAMS=$QEMU_PARAMS" -cpu arm1176 -m 192 -localtime"
19                 _KERNEL=Acess2.armv6-raspberrypi.bin
20                 ;;
21         -tegra2)
22                 # git://repo.or.cz/qemu/afaerber.git BRANCH tegra
23                 QEMU=~/apps_exp/bin/qemu-system-arm
24                 # - Toshiba AC100
25                 _SYSTEM="ac100"
26                 _KERNEL=Acess2.armv7-tegra2.bin
27                 QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none"
28                 QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image"
29                 ;;
30         -gdb)
31                 QEMU_PARAMS=$QEMU_PARAMS" -s -S"
32                 ;;
33         -extramem)
34                 QEMU_PARAMS=$QEMU_PARAMS" -m 768"
35                 ;;
36         -e)
37                 shift
38                 QEMU_PARAMS=$QEMU_PARAMS" "$1
39                 ;;
40         -bin)
41                 shift
42                 QEMU=$1
43                 ;;
44         -tuntap)
45                 _NETTYPE="tap"
46                 ;;
47         -notee)
48                 TEE=""
49                 ;;
50         esac
51         shift
52 done
53 QEMU_PARAMS="-M $_SYSTEM -kernel KernelLand/$_KERNEL -net nic -net $_NETTYPE"$QEMU_PARAMS
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 $QEMU $QEMU_PARAMS -serial stdio $TEE

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