Yes, I found the commit which fixes that. I will prepare a ticket and a patch for backporting.
From: Joel Sherrill <j...@rtems.org> Sent: Tuesday, February 9, 2021 1:16 PM To: Sommer, Jan <jan.som...@dlr.de> Cc: rtems-us...@rtems.org <users@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.som...@dlr.de<mailto:jan.som...@dlr.de>> wrote: I stand corrected. It works with current master. That should make searching easier. > -----Original Message----- > From: users <users-boun...@rtems.org<mailto:users-boun...@rtems.org>> On > Behalf Of jan.som...@dlr.de<mailto:jan.som...@dlr.de> > Sent: Tuesday, February 9, 2021 10:58 AM > To: users@rtems.org<mailto:users@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.som...@dlr.de<mailto:jan.som...@dlr.de> > DLR.de/SC > > _______________________________________________ > users mailing list > users@rtems.org<mailto:users@rtems.org> > http://lists.rtems.org/mailman/listinfo/users _______________________________________________ users mailing list users@rtems.org<mailto:users@rtems.org> http://lists.rtems.org/mailman/listinfo/users
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users