mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 21:41:18 +08:00
nshlib: Add switchboot command
switchboot <image path> Switch to the updated or specified boot system. This command depends on hardware support CONFIG_BOARDCTL_SWITCH_BOOT. `<image path>` point to a partion or file which contain the firmware to boot. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Petro Karashchenko

parent
aa99d267b7
commit
1d3e6510e6
@@ -529,6 +529,10 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
{ "source", cmd_source, 2, 2, "<script-path>" },
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_BOARDCTL_SWITCH_BOOT) && !defined(CONFIG_NSH_DISABLE_SWITCHBOOT)
|
||||
{ "swtichboot", cmd_swtichboot, 2, 2, "<image path>" },
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_NSH_DISABLESCRIPT) && !defined(CONFIG_NSH_DISABLE_TEST)
|
||||
{ "test", cmd_test, 3, CONFIG_NSH_MAXARGUMENTS, "<expression>" },
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user