On 7/9/2024 9:10 AM, michal.lyszc...@bofc.pl wrote:
I am just copy pasting my message from other thread, as I did not see
that one in time :) So my proposition is:
I think I would be good if nuttx had something like /sbin/init that would
do some very simple service management. Then you could just tick
"Start NSH after boot up". Programs would probably be had to added via
some compile-time header file that could look like that: [snip]
Starting any initialization task implies that you have already
initialized the operating system. This is fine for application level
initialization but OS level initialization must already be complete.
The only complex thing about initialization are the chicken'n'egg
problems. For example, on DRAM-based platforms you can't execute any
"normal" C code until memory resources are initialized. Any
initialization sequence must account for the initialization and ordering
requirements of all supported platforms but must do so in a
platform-independent way.
Sweeping generalizations generally don't work for all initialization cases.