diff options
author | Scott Garman <scott.a.garman@intel.com> | 2010-10-04 21:04:15 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-07 19:57:34 +0100 |
commit | 0f973ed66551cdd1112ee9df42df5603835b8384 (patch) | |
tree | 753442dd27a029749846a718353e1fba02a09e49 /scripts/poky-qemu-internal | |
parent | e70c8981f250ead9e025ecd27aef94b67d784fc6 (diff) | |
download | poky-0f973ed66551cdd1112ee9df42df5603835b8384.tar.gz |
Merge runqemu features into poky-qemu
This merges the functionality of the runqemu script into poky-qemu.
It also removes the requirement to order command line args to poky-qemu
in any particular order.
This fixes a slew of runqemu-related bugs by making the runqemu script
obsolete (and fixing the issues in the new poky-qemu), including
[BUGID #294] [BUGID #295] [BUGID #371] and [BUGID #324].
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-x | scripts/poky-qemu-internal | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index 532b255da9..01c92ee980 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal | |||
@@ -115,16 +115,16 @@ fi | |||
115 | 115 | ||
116 | release_lock() { | 116 | release_lock() { |
117 | if [ ! -e "$NOSUDO_FLAG" ]; then | 117 | if [ ! -e "$NOSUDO_FLAG" ]; then |
118 | $QEMUIFDOWN $TAP $POKY_NATIVE_SYSROOT | 118 | sudo $QEMUIFDOWN $TAP $POKY_NATIVE_SYSROOT |
119 | fi | ||
120 | echo "Releasing lockfile of preconfigured tap device '$TAP'" | ||
121 | lockfile-remove $LOCKFILE | ||
122 | |||
123 | if [ "$NFSRUNNING" = "true" ]; then | ||
124 | echo "Shutting down the userspace NFS server..." | ||
125 | echo "poky-export-rootfs stop $ROOTFS" | ||
126 | poky-export-rootfs stop $ROOTFS | ||
119 | fi | 127 | fi |
120 | echo "Releasing lockfile of preconfigured tap device '$TAP'" | ||
121 | lockfile-remove $LOCKFILE | ||
122 | |||
123 | if [ "$NFSRUNNING" = "true" ]; then | ||
124 | echo "Shutting down the userspace NFS server..." | ||
125 | echo "poky-export-rootfs stop $ROOTFS" | ||
126 | poky-export-rootfs stop $ROOTFS | ||
127 | fi | ||
128 | } | 128 | } |
129 | 129 | ||
130 | n1=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] | 130 | n1=$[ (`echo $TAP | sed 's/tap//'` * 2) + 1 ] |
@@ -209,7 +209,7 @@ if [ "$MACHINE" = "qemuarm" -o "$MACHINE" = "qemuarmv6" -o "$MACHINE" = "qemuarm | |||
209 | if [ -e /proc/sys/vm/mmap_min_addr ]; then | 209 | if [ -e /proc/sys/vm/mmap_min_addr ]; then |
210 | if [ `cat /proc/sys/vm/mmap_min_addr` != "0" ]; then | 210 | if [ `cat /proc/sys/vm/mmap_min_addr` != "0" ]; then |
211 | echo "Error, please set /proc/sys/vm/mmap_min_addr to 0 since otherwise it can cause problems with QEMU" | 211 | echo "Error, please set /proc/sys/vm/mmap_min_addr to 0 since otherwise it can cause problems with QEMU" |
212 | return | 212 | return |
213 | fi | 213 | fi |
214 | fi | 214 | fi |
215 | 215 | ||
@@ -295,7 +295,7 @@ if [ "$MACHINE" = "qemumips" ]; then | |||
295 | QEMU=qemu-system-mips | 295 | QEMU=qemu-system-mips |
296 | MACHINE_SUBTYPE=malta | 296 | MACHINE_SUBTYPE=malta |
297 | QEMU_UI_OPTIONS="-vga cirrus" | 297 | QEMU_UI_OPTIONS="-vga cirrus" |
298 | if [ "$TYPE" = "ext3" ]; then | 298 | if [ "$FSTYPE" = "ext3" ]; then |
299 | #KERNCMDLINE="root=/dev/hda console=ttyS0 console=tty0 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" | 299 | #KERNCMDLINE="root=/dev/hda console=ttyS0 console=tty0 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" |
300 | KERNCMDLINE="root=/dev/hda console=ttyS0 console=tty $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" | 300 | KERNCMDLINE="root=/dev/hda console=ttyS0 console=tty $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" |
301 | QEMUOPTIONS="$QEMU_NETWORK_CMD -M $MACHINE_SUBTYPE -hda $ROOTFS -no-reboot $QEMU_UI_OPTIONS" | 301 | QEMUOPTIONS="$QEMU_NETWORK_CMD -M $MACHINE_SUBTYPE -hda $ROOTFS -no-reboot $QEMU_UI_OPTIONS" |
@@ -396,8 +396,8 @@ else | |||
396 | fi | 396 | fi |
397 | 397 | ||
398 | echo "Running $QEMU..." | 398 | echo "Running $QEMU..." |
399 | echo $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS $* --append '"'$KERNCMDLINE'"' | 399 | echo $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS $SCRIPT_QEMU_CMDLINE_OPT --append '"'$KERNCMDLINE $SCRIPT_KERNEL_OPT'"' |
400 | $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS $* --append "$KERNCMDLINE" || /bin/true | 400 | $QEMUBIN -kernel $KERNEL $QEMUOPTIONS $SERIALOPTS $SCRIPT_QEMU_OPT --append "$KERNCMDLINE $SCRIPT_KERNEL_OPT" || /bin/true |
401 | 401 | ||
402 | release_lock | 402 | release_lock |
403 | 403 | ||