summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu4
-rwxr-xr-xscripts/runqemu-internal8
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 09c507dc7a..82711606f6 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -68,6 +68,7 @@ SCRIPT_QEMU_OPT=""
68SCRIPT_QEMU_EXTRA_OPT="" 68SCRIPT_QEMU_EXTRA_OPT=""
69SCRIPT_KERNEL_OPT="" 69SCRIPT_KERNEL_OPT=""
70SERIALSTDIO="" 70SERIALSTDIO=""
71TCPSERIAL_PORTNUM=""
71KVM_ENABLED="no" 72KVM_ENABLED="no"
72KVM_ACTIVE="no" 73KVM_ACTIVE="no"
73 74
@@ -150,6 +151,9 @@ while true; do
150 SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0" 151 SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0"
151 SERIALSTDIO="1" 152 SERIALSTDIO="1"
152 ;; 153 ;;
154 "tcpserial="*)
155 TCPSERIAL_PORTNUM=${arg##tcpserial=}
156 ;;
153 "biosdir="*) 157 "biosdir="*)
154 CUSTOMBIOSDIR="${arg##biosdir=}" 158 CUSTOMBIOSDIR="${arg##biosdir=}"
155 ;; 159 ;;
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index d743322037..b317358f94 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -620,6 +620,14 @@ if [ "x$QEMUOPTIONS" = "x" ]; then
620 return 1 620 return 1
621fi 621fi
622 622
623if [ $TCPSERIAL_PORTNUM != "" ]; then
624 if [ "$MACHINE" = "qemuarm64" ]; then
625 QEMUOPTIONS="$QEMUOPTIONS -device virtio-serial-device -chardev socket,id=virtcon,port=$TCPSERIAL_PORTNUM,host=127.0.0.1 -device virtconsole,chardev=virtcon"
626 else
627 QEMUOPTIONS="$QEMUOPTIONS -serial tcp:127.0.0.1:$TCPSERIAL_PORTNUM"
628 fi
629fi
630
623PATH=$OECORE_NATIVE_SYSROOT/usr/bin:$PATH 631PATH=$OECORE_NATIVE_SYSROOT/usr/bin:$PATH
624 632
625QEMUBIN=`which $QEMU 2> /dev/null` 633QEMUBIN=`which $QEMU 2> /dev/null`