mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
nshlib: Add boot command
boot [<image path> [<header size>]] Boot a new firmware image. This command depends on hardware support CONFIG_BOARDCTL_BOOT_IMAGE. <image path> may point to a partion or file which contain the firmware to boot. The optional, numeric argument <header size> may be useful for skipping metadata information preprended to the firmware image. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Petro Karashchenko

parent
c694d8d90f
commit
4f7dd7be7c
@@ -129,6 +129,10 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
{ "basename", cmd_basename, 2, 3, "<path> [<suffix>]" },
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BOARDCTL_BOOT_IMAGE) && !defined(CONFIG_NSH_DISABLE_BOOT)
|
||||
{ "boot", cmd_boot, 1, 3, "[<image path> [<header size>]]" },
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_NSH_DISABLESCRIPT) && !defined(CONFIG_NSH_DISABLE_LOOPS)
|
||||
{ "break", cmd_break, 1, 1, NULL },
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user