-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathRunQemuArm
executable file
·58 lines (53 loc) · 1.3 KB
/
RunQemuArm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
#qemu-system-arm -M realview-pb-a8 -kernel Acess2.arm7.bin -serial stdio
QEMU=qemu-system-arm
USE_GDB=
_SYSTEM=realview-pb-a8
_KERNEL=Acess2.armv7-realview_pb.bin
QEMU_PARAMS=""
_NETTYPE="user"
TEE="| tee QemuLog.txt"
while [ $# -ne 0 ]; do
case $1 in
-raspberrypi)
_SYSTEM="versatilepb"
QEMU_PARAMS=$QEMU_PARAMS" -cpu arm1176 -m 192 -localtime"
_KERNEL=Acess2.armv6-raspberrypi.bin
;;
-tegra2)
# git://repo.or.cz/qemu/afaerber.git BRANCH tegra
QEMU=~/apps_exp/bin/qemu-system-arm
# - Toshiba AC100
_SYSTEM="ac100"
_KERNEL=Acess2.armv7-tegra2.bin
QEMU_PARAMS=$QEMU_PARAMS" -net nic,model=rtl8169"
QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none"
QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image"
;;
-gdb)
QEMU_PARAMS=$QEMU_PARAMS" -s -S"
;;
-extramem)
QEMU_PARAMS=$QEMU_PARAMS" -m 768"
;;
-e)
shift
QEMU_PARAMS=$QEMU_PARAMS" "$1
;;
-bin)
shift
QEMU=$1
;;
-tuntap)
_NETTYPE="tap"
;;
-notee)
TEE=""
;;
esac
shift
done
QEMU_PARAMS="-M $_SYSTEM -kernel KernelLand/$_KERNEL -net $_NETTYPE"$QEMU_PARAMS
# /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt
# qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt
eval $QEMU $QEMU_PARAMS -serial stdio $TEE