diff options
author | Saul Wold <Saul.Wold@intel.com> | 2010-06-04 15:23:37 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-06-07 16:13:00 +0100 |
commit | cab1009b08012cc292d9740cf6e3b0f09a29d74f (patch) | |
tree | be68010bdb2d7ac7bbdd94387ce648b51c16e38d /scripts | |
parent | bf59d217a8c6376f90832927ad3254fbbbbf48f3 (diff) | |
download | poky-cab1009b08012cc292d9740cf6e3b0f09a29d74f.tar.gz |
Fixes for Qemu to use VGA and Touch Screen
Added usb tablet options to poky-qemu-internal script, and adjusted the
xorg.conf script for x86 to use VGA screen and tablet input device
Signed-off-by: Saul Wold <saul.wold@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/poky-qemu-internal | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index 7dd52371b6..11178a7b50 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal | |||
@@ -48,6 +48,7 @@ KERNEL_NETWORK_CMD="ip=192.168.7.2::192.168.7.1:255.255.255.0" | |||
48 | QEMU_TAP_CMD="-net tap,vlan=0,ifname=tap0,script=$QEMUIFUP,downscript=$QEMUIFDOWN" | 48 | QEMU_TAP_CMD="-net tap,vlan=0,ifname=tap0,script=$QEMUIFUP,downscript=$QEMUIFDOWN" |
49 | QEMU_NETWORK_CMD="-net nic,vlan=0 $QEMU_TAP_CMD" | 49 | QEMU_NETWORK_CMD="-net nic,vlan=0 $QEMU_TAP_CMD" |
50 | KERNCMDLINE="mem=$QEMU_MEMORY" | 50 | KERNCMDLINE="mem=$QEMU_MEMORY" |
51 | QEMU_UI_OPTIONS="-show-cursor -usb -usbdevice wacom-tablet" | ||
51 | 52 | ||
52 | SERIALOPTS="" | 53 | SERIALOPTS="" |
53 | if [ "x$SERIAL_LOGFILE" != "x" ]; then | 54 | if [ "x$SERIAL_LOGFILE" != "x" ]; then |
@@ -81,9 +82,10 @@ fi | |||
81 | 82 | ||
82 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "qemuarmv6" -o "$MACHINE" = "qemuarmv7" ]; then | 83 | if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "qemuarmv6" -o "$MACHINE" = "qemuarmv7" ]; then |
83 | QEMU=qemu-system-arm | 84 | QEMU=qemu-system-arm |
85 | # QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -force-pointer" | ||
84 | if [ "$TYPE" = "ext3" ]; then | 86 | if [ "$TYPE" = "ext3" ]; then |
85 | KERNCMDLINE="root=/dev/sda console=ttyAMA0 console=tty0 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" | 87 | KERNCMDLINE="root=/dev/sda console=ttyAMA0 console=tty0 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" |
86 | QEMUOPTIONS="$QEMU_NETWORK_CMD -M versatilepb -hda $HDIMAGE -usb -usbdevice wacom-tablet -no-reboot -force-pointer -show-cursor" | 88 | QEMUOPTIONS="$QEMU_NETWORK_CMD -M versatilepb -hda $HDIMAGE -no-reboot $QEMU_UI_OPTIONS" |
87 | fi | 89 | fi |
88 | if [ "$TYPE" = "nfs" ]; then | 90 | if [ "$TYPE" = "nfs" ]; then |
89 | if [ "x$HDIMAGE" = "x" ]; then | 91 | if [ "x$HDIMAGE" = "x" ]; then |
@@ -94,7 +96,7 @@ if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "qemuarmv6" -o "$MACHINE" = "qemuarm | |||
94 | return | 96 | return |
95 | fi | 97 | fi |
96 | KERNCMDLINE="root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" | 98 | KERNCMDLINE="root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" |
97 | QEMUOPTIONS="$QEMU_NETWORK_CMD -M versatilepb -usb -usbdevice wacom-tablet -no-reboot -force-pointer -show-cursor" | 99 | QEMUOPTIONS="$QEMU_NETWORK_CMD -M versatilepb --no-reboot $QEMU_UI_OPTIONS" |
98 | fi | 100 | fi |
99 | if [ "$MACHINE" = "qemuarmv6" ]; then | 101 | if [ "$MACHINE" = "qemuarmv6" ]; then |
100 | QEMUOPTIONS="$QEMUOPTIONS -cpu arm1136" | 102 | QEMUOPTIONS="$QEMUOPTIONS -cpu arm1136" |
@@ -106,9 +108,10 @@ fi | |||
106 | 108 | ||
107 | if [ "$MACHINE" = "qemux86" ]; then | 109 | if [ "$MACHINE" = "qemux86" ]; then |
108 | QEMU=qemu | 110 | QEMU=qemu |
111 | QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -vga vmware -enable-gl" | ||
109 | if [ "$TYPE" = "ext3" ]; then | 112 | if [ "$TYPE" = "ext3" ]; then |
110 | KERNCMDLINE="vga=0 root=/dev/hda mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD" | 113 | KERNCMDLINE="vga=0 root=/dev/hda mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD" |
111 | QEMUOPTIONS="-vga vmware -show-cursor $QEMU_NETWORK_CMD -hda $HDIMAGE -enable-gl" | 114 | QEMUOPTIONS="$QEMU_NETWORK_CMD -hda $HDIMAGE $QEMU_UI_OPTIONS" |
112 | fi | 115 | fi |
113 | if [ "$TYPE" = "nfs" ]; then | 116 | if [ "$TYPE" = "nfs" ]; then |
114 | if [ "x$HDIMAGE" = "x" ]; then | 117 | if [ "x$HDIMAGE" = "x" ]; then |
@@ -119,7 +122,7 @@ if [ "$MACHINE" = "qemux86" ]; then | |||
119 | return | 122 | return |
120 | fi | 123 | fi |
121 | KERNCMDLINE="root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" | 124 | KERNCMDLINE="root=/dev/nfs nfsroot=192.168.7.1:$HDIMAGE rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" |
122 | QEMUOPTIONS="-vga vmware -show-cursor $QEMU_NETWORK_CMD -enable-gl" | 125 | QEMUOPTIONS="$QEMU_NETWORK_CMD $QEMU_UI_OPTIONS" |
123 | fi | 126 | fi |
124 | fi | 127 | fi |
125 | 128 | ||