<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Yes, I found the commit which fixes that.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">I will prepare a ticket and a patch for backporting.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> Joel Sherrill <joel@rtems.org> <br>
<b>Sent:</b> Tuesday, February 9, 2021 1:16 PM<br>
<b>To:</b> Sommer, Jan <Jan.Sommer@dlr.de><br>
<b>Cc:</b> rtems-users@rtems.org <users@rtems.org><br>
<b>Subject:</b> Re: Zynq: Reading from stdin returns immediately<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Thia is related to the set method for ioctls in the console sriver. It returned a failure in some versions and that broke anything changing termios settings.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Tue, Feb 9, 2021, 4:32 AM <<a href="mailto:Jan.Sommer@dlr.de">Jan.Sommer@dlr.de</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">I stand corrected.<br>
It works with current master.<br>
That should make searching easier.<br>
<br>
> -----Original Message-----<br>
> From: users <<a href="mailto:users-bounces@rtems.org" target="_blank">users-bounces@rtems.org</a>> On Behalf Of
<a href="mailto:Jan.Sommer@dlr.de" target="_blank">Jan.Sommer@dlr.de</a><br>
> Sent: Tuesday, February 9, 2021 10:58 AM<br>
> To: <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
> Subject: Zynq: Reading from stdin returns immediately<br>
> <br>
> Hello,<br>
> <br>
> I tried to read data from stdin via scanf in RTEMS5.1 for some user input for a<br>
> Zynq based board, but it returns immediately with 0.<br>
> Also fscanf, read or fgetc do not block and return immediately. The flags for<br>
> stdin show that the O_NONBLOCK flag is not set.<br>
> I tried to check with the termios application from the testsuite since it uses<br>
> those functions as well.<br>
> There seems to be the same behavior. At least I only see the test begin and<br>
> end markers, but never the "Press any key to check the termios input<br>
> capabilities (20s remaining)" as mentioned in the example output.<br>
> The test also finishes immediately.<br>
> <br>
> I also found this thread from Joel, which might be related, but I am not sure:<br>
> <a href="https://lists.rtems.org/pipermail/devel/2020-November/063533.html" target="_blank">
https://lists.rtems.org/pipermail/devel/2020-November/063533.html</a><br>
> <br>
> The rtems_shell seem to work however. At least there the input is correctly<br>
> received and processed.<br>
> Does someone have a hint where I would need to look? I will try with the<br>
> current master as well, but don't expect that this will change much.<br>
> <br>
> Best regards,<br>
> <br>
>     Jan<br>
> <br>
> <br>
> Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR) German Aerospace<br>
> Center Institute for Software Technology | Software for Space Systems and<br>
> Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany<br>
> <br>
> Jan Sommer<br>
> Telephone +49 531 295-2494 | Telefax 0531 295-2767 | <a href="mailto:jan.sommer@dlr.de" target="_blank">
jan.sommer@dlr.de</a><br>
> DLR.de/SC<br>
> <br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/users" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</body>
</html>