diff options
author | Randy Witt <randy.e.witt@linux.intel.com> | 2015-08-24 00:25:03 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-24 23:47:07 +0100 |
commit | d893a2503da29ec99b3a911f8877cc59e7e6b50d (patch) | |
tree | 183020614bdb63c539d648116ce83a90508cb20a /scripts/runqemu | |
parent | fd164dcc31aa6c60e9834036a7cfcea5411daa3d (diff) | |
download | poky-d893a2503da29ec99b3a911f8877cc59e7e6b50d.tar.gz |
runqemu: Add a tcpserial option
The option was added so that the qemurunner could start a second tcp
serial port without adding machine conditional logic to qemurunner.
The issue that made this necessary was that when "virt" is passed to
qemu-system-aarch64, the normal mechanism for specifying a tcp serial
port does not work. This is because the hardware for the "virt" machine
is hardcoded in the device tree blob and the addition devices must be
virtio devices.
So runqemu can specify virtio for qemuarm64 whereas it seems all other
qemu machines work with the "-serial tcp*" option.
(From OE-Core rev: 849d65d55e4df5fa443b2cb7b4cee23913fc9d5a)
Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 4 |
1 files changed, 4 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="" | |||
68 | SCRIPT_QEMU_EXTRA_OPT="" | 68 | SCRIPT_QEMU_EXTRA_OPT="" |
69 | SCRIPT_KERNEL_OPT="" | 69 | SCRIPT_KERNEL_OPT="" |
70 | SERIALSTDIO="" | 70 | SERIALSTDIO="" |
71 | TCPSERIAL_PORTNUM="" | ||
71 | KVM_ENABLED="no" | 72 | KVM_ENABLED="no" |
72 | KVM_ACTIVE="no" | 73 | KVM_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 | ;; |