-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boards: mps2_an521: Fix qemu error on Windows #68661
boards: mps2_an521: Fix qemu error on Windows #68661
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for QEMU support on Windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m not familiar with QEMU, Do you know what this line does and what makes it unnecessary on Windows?
pty is not available on Windows hosts. Running a sample in Qemu on Windows shows an error. Fix it by enabling pty on Unix hosts only. Signed-off-by: Michal Smola <michal.smola@nxp.com>
bb7da1a
to
9fc7f1d
Compare
The line creates a new pseudo-terminal on the host, connects to it, and redirects the virtual serial port to pseudo-terminal Pseudo-terminal is now available on Windows, it causes QEMU error on Windows. |
I understand, thank you. |
@ithinuel QEMU prints output from serial on Windows, because QEMU still uses options -chardev stdio,id=con,mux=on -serial chardev:con, to connect serial to standard input and output of the QEMU process. |
QEMU for mps2_an521 uses tty and pty which is not available on Windows hosts. Running a sample in QEMU on Windows shows an error. Fix it by enabling tty on Unix hosts only.