mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
This example makes it possible to use a binary from local storage for MCUBoot update. It copies the binary file to the secondary slot instead of downloading from a remote URL. Can be used to update from a SD Card, for example. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_MCUBOOT_LOCAL_AGENT
|
|
tristate "MCUBoot Local Update Agent"
|
|
default n
|
|
depends on BOOT_MCUBOOT
|
|
select BOARDCTL
|
|
select BOARDCTL_RESET
|
|
---help---
|
|
Enable the MCUBoot Local Update Agent example.
|
|
This application reads a firmware binary from local storage
|
|
and copies it to the MCUBoot secondary flash slot for update.
|
|
|
|
if EXAMPLES_MCUBOOT_LOCAL_AGENT
|
|
|
|
config EXAMPLES_MCUBOOT_LOCAL_AGENT_PROGNAME
|
|
string "Program name"
|
|
default "mcuboot_local_agent"
|
|
---help---
|
|
This is the name of the program that will be used when the NSH ELF
|
|
program is installed.
|
|
|
|
config EXAMPLES_MCUBOOT_LOCAL_AGENT_PRIORITY
|
|
int "MCUBoot Local Agent task priority"
|
|
default 100
|
|
|
|
config EXAMPLES_MCUBOOT_LOCAL_AGENT_STACKSIZE
|
|
int "MCUBoot Local Agent stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
config EXAMPLES_MCUBOOT_LOCAL_AGENT_DEFAULT_PATH
|
|
string "Default firmware file path"
|
|
default "/mnt/sdcard/firmware.bin"
|
|
---help---
|
|
Default path to the firmware binary file on local storage.
|
|
This can be overridden by passing a path as a command line argument.
|
|
|
|
endif # EXAMPLES_MCUBOOT_LOCAL_AGENT
|