]> code.ossystems Code Review - openembedded-core.git/commit
qemurunner: Use two serial ports and log console with a thread
authorRandy Witt <randy.e.witt@linux.intel.com>
Thu, 20 Aug 2015 20:01:25 +0000 (13:01 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Aug 2015 22:45:24 +0000 (23:45 +0100)
commit2da3fee6b6d9f4dd4c4cb529f4ba393c20aa0f13
tree0a0b460f73d607d9921500d1527f5f654b0edfa3
parentb46d83a848cf23c7f639a6ebafbd0f2c1413584a
qemurunner: Use two serial ports and log console with a thread

qemu can freeze and stop responding if the socket buffer connected to a tcp
serial connection fills up. This happens of course when the reader of
the serial data doesn't actually read it.

This happened in the qemurunner code, because after checking for the
"login:" sentinel, data was never again read from the serial connection.

This patch solves the potential freeze by adding a thread to continuously
read the data from the console and log it. So it also will give a full log
of the console, rather than just up to the login prompt.

To simplify this patch, another serial port was also added to use for the
sole purpose of watching for the sentinel as well as being the interactive
serial port. This will also prevent the possibility of lots of debug
data on the console preventing the sentinel value from being seen due to
interleaved text.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/conf/machine/qemuarm.conf
meta/conf/machine/qemuarm64.conf
meta/conf/machine/qemumips.conf
meta/conf/machine/qemumips64.conf
meta/conf/machine/qemuppc.conf
meta/conf/machine/qemux86-64.conf
meta/conf/machine/qemux86.conf
meta/lib/oeqa/utils/qemurunner.py