diff options
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 | ||
