On 19/05/2021 15:25, Joel Sherrill wrote:

Yeah. But if you use any method with errno, you get all this. I know the
reent structure has to be initialized but why did it trigger opening
/dev/console? The console device wasn't configured. Can the post driver
hook dependency be cleaved from this chain?

https://git.rtems.org/rtems/tree/cpukit/libcsupport/src/libio_init.c#n69 <https://git.rtems.org/rtems/tree/cpukit/libcsupport/src/libio_init.c#n69>

I think that dependency is only needed if you configure the console
device driver. Shouldn't the sysinit for the post driver hook be part of
configuring the console or simple console?

https://git.rtems.org/rtems/tree/cpukit/include/rtems/confdefs/console.h <https://git.rtems.org/rtems/tree/cpukit/include/rtems/confdefs/console.h> https://git.rtems.org/rtems/tree/cpukit/include/rtems/confdefs/iodrivers.h <https://git.rtems.org/rtems/tree/cpukit/include/rtems/confdefs/iodrivers.h>

Initializing /dev/console via the console drivers is an option. I guess you still get the file system support pulled in via the file descriptors.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: [email protected]
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
devel mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to