|
| 1 | +# |
| 2 | +# Copyright (c) 2026 Nordic Semiconductor |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
| 5 | +# |
| 6 | + |
| 7 | +module = UNBOXER |
| 8 | +module-str = unboxer |
| 9 | +source "subsys/logging/Kconfig.template.log_config" |
| 10 | + |
| 11 | +choice UNBOXER_FW_LOADER_ENTRANCE_METHOD |
| 12 | + prompt "Method which the unboxer uses to request firmware loader entrance" |
| 13 | + default UNBOXER_FW_LOADER_ENTRANCE_SELF_INVALIDATE_BY_ERASE |
| 14 | + help |
| 15 | + Select the method which the unboxer uses to request firmware loader entrance. |
| 16 | + |
| 17 | +config UNBOXER_FW_LOADER_ENTRANCE_SELF_INVALIDATE_BY_ERASE |
| 18 | + bool "Erase start of the unboxer package to enter firmware loader" |
| 19 | + help |
| 20 | + If this method is used, the unboxer will erase the start of the unboxer package |
| 21 | + if it detects the need to request firmware loader entrance. |
| 22 | + The amount of bytes to erase is equal to the erase block size. |
| 23 | + |
| 24 | +config UNBOXER_FW_LOADER_ENTRANCE_BOOT_MODE |
| 25 | + bool "Use boot mode to request FW loader entrance" |
| 26 | + select RETAINED_MEM |
| 27 | + select RETENTION |
| 28 | + select RETENTION_BOOT_MODE |
| 29 | + |
| 30 | +config UNBOXER_FW_LOADER_ENTRANCE_BOOT_REQ |
| 31 | + bool "Use boot request to request FW loader entrance" |
| 32 | + select RETAINED_MEM if !SOC_NRF54H20 |
| 33 | + select RETENTION if !SOC_NRF54H20 |
| 34 | + select NRF_MCUBOOT_BOOT_REQUEST |
| 35 | + select IMG_MANAGER |
| 36 | + |
| 37 | +config UNBOXER_FW_LOADER_ENTRANCE_METHOD_NONE |
| 38 | + bool "Do not perform any actions to request firmware loader entrance" |
| 39 | + help |
| 40 | + In some of the cases the unboxer should not perform any actions |
| 41 | + to request firmware loader entrance. |
| 42 | + Currently these include: |
| 43 | + - Firmware loader entrance requested by gpio |
| 44 | + - Firmware loader entrance requested by reset pin |
| 45 | + |
| 46 | +endchoice |
| 47 | + |
| 48 | +config UNBOXER_REBOOT |
| 49 | + bool "Reboot the device after requesting firmware loader entrance" |
| 50 | + depends on !UNBOXER_FW_LOADER_ENTRANCE_METHOD_NONE |
| 51 | + default y if UNBOXER_FW_LOADER_ENTRANCE_SELF_INVALIDATE_BY_ERASE |
| 52 | + default y if UNBOXER_FW_LOADER_ENTRANCE_BOOT_REQ |
| 53 | + default y if UNBOXER_FW_LOADER_ENTRANCE_BOOT_MODE |
| 54 | + select REBOOT |
| 55 | + |
| 56 | +source "Kconfig.zephyr" |
0 commit comments