Zynq: Reading from stdin returns immediately

Jan.Sommer at dlr.de Jan.Sommer at dlr.de
Tue Feb 9 12:17:23 UTC 2021


Yes, I found the commit which fixes that.
I will prepare a ticket and a patch for backporting.


From: Joel Sherrill <joel at rtems.org>
Sent: Tuesday, February 9, 2021 1:16 PM
To: Sommer, Jan <Jan.Sommer at dlr.de>
Cc: rtems-users at rtems.org <users at rtems.org>
Subject: Re: Zynq: Reading from stdin returns immediately

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.

On Tue, Feb 9, 2021, 4:32 AM <Jan.Sommer at dlr.de<mailto:Jan.Sommer at dlr.de>> wrote:
I stand corrected.
It works with current master.
That should make searching easier.

> -----Original Message-----
> From: users <users-bounces at rtems.org<mailto:users-bounces at rtems.org>> On Behalf Of Jan.Sommer at dlr.de<mailto:Jan.Sommer at dlr.de>
> Sent: Tuesday, February 9, 2021 10:58 AM
> To: users at rtems.org<mailto:users at rtems.org>
> Subject: Zynq: Reading from stdin returns immediately
>
> Hello,
>
> I tried to read data from stdin via scanf in RTEMS5.1 for some user input for a
> Zynq based board, but it returns immediately with 0.
> Also fscanf, read or fgetc do not block and return immediately. The flags for
> stdin show that the O_NONBLOCK flag is not set.
> I tried to check with the termios application from the testsuite since it uses
> those functions as well.
> There seems to be the same behavior. At least I only see the test begin and
> end markers, but never the "Press any key to check the termios input
> capabilities (20s remaining)" as mentioned in the example output.
> The test also finishes immediately.
>
> I also found this thread from Joel, which might be related, but I am not sure:
> https://lists.rtems.org/pipermail/devel/2020-November/063533.html
>
> The rtems_shell seem to work however. At least there the input is correctly
> received and processed.
> Does someone have a hint where I would need to look? I will try with the
> current master as well, but don't expect that this will change much.
>
> Best regards,
>
>     Jan
>
>
> Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR) German Aerospace
> Center Institute for Software Technology | Software for Space Systems and
> Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany
>
> Jan Sommer
> Telephone +49 531 295-2494 | Telefax 0531 295-2767 | jan.sommer at dlr.de<mailto:jan.sommer at dlr.de>
> DLR.de/SC
>
> _______________________________________________
> users mailing list
> users at rtems.org<mailto:users at rtems.org>
> http://lists.rtems.org/mailman/listinfo/users
_______________________________________________
users mailing list
users at rtems.org<mailto:users at rtems.org>
http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20210209/9cd7a762/attachment.html>


More information about the users mailing list