mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
Documentation: add nsh boot command reference
Add boot commands.rst section describing its syntax and behavior, including relative image path resolution against the NSH current working directory, and boot command config.rst dependency-table entry mapping CONFIG_BOARDCTL_BOOT_IMAGE and CONFIG_NSH_DISABLE_BOOT. Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
This commit is contained in:
parent
7eb9bb0be6
commit
85af043d65
2 changed files with 18 additions and 0 deletions
|
|
@ -143,6 +143,23 @@ default gateway.
|
|||
removing the preceding path segments and (optionally) removing any
|
||||
trailing ``<suffix>``.
|
||||
|
||||
.. _cmdboot:
|
||||
|
||||
``boot`` Boot an Application Image
|
||||
==================================
|
||||
|
||||
**Command Syntax**::
|
||||
|
||||
boot [<image path> [<header size>]]
|
||||
|
||||
**Synopsis**. Boot a new application firmware image by invoking
|
||||
``boardctl(BOARDIOC_BOOT_IMAGE)``. The ``<image path>`` may be
|
||||
absolute or relative; relative paths are resolved against the NSH
|
||||
current working directory, consistent with ``cp``, ``cat``, and
|
||||
``rm``. This command depends on ``CONFIG_BOARDCTL_BOOT_IMAGE``; if
|
||||
the boot image cannot be started, ``boardctl()`` returns and an
|
||||
error is reported.
|
||||
|
||||
.. _cmdbreak:
|
||||
|
||||
``break`` Terminate a Loop
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ Command Depends on Configuration Can Be Disabl
|
|||
:ref:`cmdbase64enc` ``CONFIG_NETUTILS_CODECS`` && ``CONFIG_NSH_DISABLE_BASE64ENC``
|
||||
``CONFIG_CODECS_BASE64``
|
||||
:ref:`cmdbasename` . ``CONFIG_NSH_DISABLE_BASENAME``
|
||||
:ref:`cmdboot` ``CONFIG_BOARDCTL_BOOT_IMAGE`` ``CONFIG_NSH_DISABLE_BOOT``
|
||||
:ref:`cmdbreak` ! ``CONFIG_NSH_DISABLESCRIPT`` && .
|
||||
! ``CONFIG_NSH_DISABLE_LOOPS``
|
||||
:ref:`cmdcat` ``CONFIG_NSH_DISABLE_CAT`` .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue