summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLiming Wang <liming.wang@windriver.com>2011-08-24 16:48:27 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-29 13:48:00 +0100
commit84ef84dbb8627fa5292cf10d1c9146c1236802d0 (patch)
treeab3a71ced88727d77c4d4e23681dd1018d4a42c0 /scripts
parent5d463057b4b7eb38a2ff009904ad1f240193f3ad (diff)
downloadpoky-84ef84dbb8627fa5292cf10d1c9146c1236802d0.tar.gz
script/runqemu: change boot command line for qemuppc
Because qemuppc has no graphic emulation, remove console=tty0 and make it run into 3 run level. This can reduce boot time for qemuppc booting. (From OE-Core rev: ba02844fd3c3e09b4c40bfff50c32bdcc27899fc) Signed-off-by: Liming Wang <liming.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu-internal4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index c15632d32e..883fa5b902 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -384,7 +384,7 @@ if [ "$MACHINE" = "qemuppc" ]; then
384 BIOS=powerpc_rom.bin 384 BIOS=powerpc_rom.bin
385 QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -nographic" 385 QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -nographic"
386 if [ "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" ]; then 386 if [ "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" ]; then
387 KERNCMDLINE="root=/dev/hda rw console=ttyS0 console=tty0 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" 387 KERNCMDLINE="root=/dev/hda rw console=ttyS0 3 $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
388 QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE -M $MACHINE_SUBTYPE -bios $BIOS -hda $ROOTFS -no-reboot $QEMU_UI_OPTIONS" 388 QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE -M $MACHINE_SUBTYPE -bios $BIOS -hda $ROOTFS -no-reboot $QEMU_UI_OPTIONS"
389 fi 389 fi
390 if [ "$FSTYPE" = "nfs" ]; then 390 if [ "$FSTYPE" = "nfs" ]; then
@@ -393,7 +393,7 @@ if [ "$MACHINE" = "qemuppc" ]; then
393 cleanup 393 cleanup
394 return 394 return
395 fi 395 fi
396 KERNCMDLINE="root=/dev/nfs console=ttyS0 console=tty0 nfsroot=$NFS_SERVER:$NFS_DIR,$UNFS_OPTS rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY" 396 KERNCMDLINE="root=/dev/nfs console=ttyS0 3 nfsroot=$NFS_SERVER:$NFS_DIR,$UNFS_OPTS rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
397 QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE -M $MACHINE_SUBTYPE -bios $BIOS -no-reboot $QEMU_UI_OPTIONS" 397 QEMUOPTIONS="$QEMU_NETWORK_CMD -cpu $CPU_SUBTYPE -M $MACHINE_SUBTYPE -bios $BIOS -no-reboot $QEMU_UI_OPTIONS"
398 fi 398 fi
399fi 399fi