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
4 QEMU=qemu-system-x86_64
6 BOOTOPT="-fda DiskImage.img -boot a"
9 QEMU_PARAMS=$QEMU_PARAMS" -hda AcessHDD.img"
10 QEMU_PARAMS=$QEMU_PARAMS" -vga std"
11 QEMU_PARAMS=$QEMU_PARAMS" -smp 2"
14 _NETTYPE="user,hostfwd=tcp::5555-:23"
19 while [ $# -ne 0 ]; do
22 QEMU_PARAMS=$QEMU_PARAMS" -s -S"
30 if [ "x$2" = "xdefault" ] || [ "x$2" = "x" ]; then
31 _kfile="KernelLand/Acess2.$1.bin"
33 _kfile="KernelLand/Acess2.$1-$2.bin"
35 BOOTOPT="-kernel $_kfile"
36 BOOTOPT=$BOOTOPT" -initrd KernelLand/Modules/Filesystems/FS_InitRD.kmd.$1$MODS -append \"$3\""
41 QEMU=/home/tpg/apps/bin/qemu-system-x86_64
51 QEMU_PARAMS=$QEMU_PARAMS" -m 768"
55 QEMU_PARAMS=$QEMU_PARAMS" "$1
61 _NETTYPE=$_NETTYPE",hostfwd=tcp::10023-10.0.2.10:23"
80 QEMU_PARAMS=$QEMU_PARAMS" -device pci-serial,chardev=serial2"
81 QEMU_PARAMS=$QEMU_PARAMS" -chardev socket,id=serial2,host=localhost,port=10023,server,telnet"
87 QEMU_PARAMS=$QEMU_PARAMS" -net nic,model="$_NETMODEL
88 QEMU_PARAMS=$QEMU_PARAMS" -net "$_NETTYPE
90 if [ "x$_NOUSB" != "xyes" ] ; then
91 QEMU_PARAMS=$QEMU_PARAMS" -usb"
92 QEMU_PARAMS=$QEMU_PARAMS" -device usb-ehci"
93 QEMU_PARAMS=$QEMU_PARAMS" -drive id=test_usb_image,file=USB_Test_Image.img,if=none"
94 QEMU_PARAMS=$QEMU_PARAMS" -device usb-storage,drive=test_usb_image"
95 QEMU_PARAMS=$QEMU_PARAMS" -usbdevice mouse"
96 # QEMU_PARAMS=$QEMU_PARAMS" -usbdevice keyboard"
99 if [ "x$_NOTEE" = "xyes" ] ; then
102 _TEECMD=" | tee QemuLog.txt"
105 # /home/tpg/apps/bin/qemu-system-x86_64 $QEMU_PARAMS -serial stdio -serial file:QemuLog.txt
106 # qemu-system-x86_64 $QEMU_PARAMS -serial stdio | tee QemuLog.txt
107 #echo $QEMU $BOOTOPT $QEMU_PARAMS
108 if [ "x$_NOGRAPHIC" = "xyes" ] ; then
109 $_EVAL $QEMU $BOOTOPT $QEMU_PARAMS -nographic $_TEECMD
113 $_EVAL $QEMU $BOOTOPT $QEMU_PARAMS -serial stdio $_TEECMD