mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 05:08:41 +08:00
f66c4a0733
I think the guy who wants to port NuttX is expected to understand NuttX kernel code and related configurations, but the getting enough knowledge needs to read the kernel codes deeply. To reduce the time for NuttX beginner who wants to port, I tried to make the guide (how to port) based on my porting journey.
13 lines
612 B
ReStructuredText
13 lines
612 B
ReStructuredText
The diagram of boot sequence
|
|
============================
|
|
|
|
The premise of this sequence diagram is NuttX12.4.0, cxd56xx, non-SMP and Flat build.
|
|
|
|
The beginning of boot sequence is __start().
|
|
__start() will call nx_start(). nx_start() will initialize the kernel and call nsh_main().
|
|
nsh_main() will execute NuttShell(NSH).
|
|
nx_start() is NuttX standard function, but the behavior depends on some kernel configurations.
|
|
For example, the calling nsh_main() is also configurable.
|
|
About related kernel configurations, see :doc:`/guides/port_relatedkernelconfigrations`.
|
|
|
|
.. image:: image/port_bootsequence-12.4.0.png
|