]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
scritps/runqemu: Ensure we only have two serial ports
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 Oct 2023 12:24:43 +0000 (13:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Oct 2023 12:00:20 +0000 (13:00 +0100)
commit1b0348535dce3b776efbcf26406b94730a51eb85
tree3e0765d183c2bce5b10423bc9731443001bd92a1
parenteae8634ff7a7dd6f84c4607b5f1b0c6fe5e39f37
scritps/runqemu: Ensure we only have two serial ports

I have a theory that some of the console boot issues we're seeing are due to
starting images with three serial ports yet only starting gettys on two of them.

This means that occasionally, depending on the port numbering we may not get
a login prompt on the console we expect it on.

To fix this, change the runqemu code so that if serial ports are passed in on
the commandline (as is the case in automated testing), we don't add any other
GUI serial consoles.

We do need to make sure we do have at least two serial ports since we don't want
getty timeout warnings.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu