forked from nrfconnect/sdk-mcuboot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf noup] boot: nrf53-specific customizations
- Add network core bootloader implementation Enables network core updates of nrf53 using MCUBoot by identifying images through their start addresses. Also implements the control and transfer using the PCD module. - Add support for multi image DFU using partition manager. - Add check for netcore addr if NSIB is enabled so netcore updates works - boot: zephyr: move thingy53_nrf5340_cpuapp.conf downstream Moved the board configuration for Thingy:53 Application Core to the nRF Connect SDK MCUboot downstream repository. The configuration file contains references to the Kconfig modules that are only available in the nRF Connect SDK. The current configuration is set up to work in the nRF Connect SDK environment and cannot be used upstream. - pm: enable ram flash partition using common flag This patch makes mcuboot_primary_1 ram-flash partition selectable using CONFIG_NRF53_MCUBOOT_PRIMARY_1_RAM_FLASH property. This is needed since CONFIG_NRF53_MULTI_IMAGE_UPDATE become not only configuration which requires that partition. - MCUBoot configures USB CDC by its own. There is no need for BOARD_SERIAL_BACKEND_CDC_ACM option to configure anything which is later overwritten anyway. Jira: NCSDK-18596 Signed-off-by: Andrzej Puzdrowski <[email protected]> Signed-off-by: Emil Obalski <[email protected]> Signed-off-by: Håkon Øye Amundsen <[email protected]> Signed-off-by: Ioannis Glaropoulos <[email protected]> Signed-off-by: Jamie McCrae <[email protected]> Signed-off-by: Johann Fischer <[email protected]> Signed-off-by: Kamil Piszczek <[email protected]> Signed-off-by: Ole Sæther <[email protected]> Signed-off-by: Sigvart Hovland <[email protected]> Signed-off-by: Simon Iversen <[email protected]> Signed-off-by: Torsten Rasmussen <[email protected]> Signed-off-by: Trond Einar Snekvik <[email protected]> Signed-off-by: Mateusz Kapala <[email protected]> Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 2bbd3b1) (cherry picked from commit 0098451)
- Loading branch information
1 parent
80016fd
commit 2009587
Showing
5 changed files
with
186 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
CONFIG_SIZE_OPTIMIZATIONS=y | ||
|
||
CONFIG_SYSTEM_CLOCK_NO_WAIT=y | ||
CONFIG_PM=n | ||
|
||
CONFIG_MAIN_STACK_SIZE=10240 | ||
CONFIG_MBEDTLS_CFG_FILE="mcuboot-mbedtls-cfg.h" | ||
|
||
CONFIG_BOOT_MAX_IMG_SECTORS=2048 | ||
CONFIG_BOOT_SIGNATURE_TYPE_RSA=y | ||
|
||
# Flash | ||
CONFIG_FLASH=y | ||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y | ||
CONFIG_SOC_FLASH_NRF_EMULATE_ONE_BYTE_WRITE_ACCESS=y | ||
CONFIG_FPROTECT=y | ||
|
||
# Serial | ||
CONFIG_SERIAL=y | ||
CONFIG_UART_LINE_CTRL=y | ||
|
||
# MCUBoot serial | ||
CONFIG_GPIO=y | ||
CONFIG_MCUBOOT_SERIAL=y | ||
CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=y | ||
CONFIG_BOOT_SERIAL_CDC_ACM=y | ||
|
||
# Required by QSPI | ||
CONFIG_NORDIC_QSPI_NOR=y | ||
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096 | ||
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16 | ||
|
||
# Required by USB and QSPI | ||
CONFIG_MULTITHREADING=y | ||
|
||
# USB | ||
CONFIG_BOARD_SERIAL_BACKEND_CDC_ACM=n | ||
CONFIG_USB_DEVICE_REMOTE_WAKEUP=n | ||
CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor ASA" | ||
CONFIG_USB_DEVICE_PRODUCT="Bootloader Thingy:53" | ||
CONFIG_USB_DEVICE_VID=0x1915 | ||
CONFIG_USB_DEVICE_PID=0x5300 | ||
CONFIG_USB_CDC_ACM=y | ||
|
||
# Decrease memory footprint | ||
CONFIG_CBPRINTF_NANO=y | ||
CONFIG_TIMESLICING=n | ||
CONFIG_BOOT_BANNER=n | ||
CONFIG_CONSOLE=n | ||
CONFIG_CONSOLE_HANDLER=n | ||
CONFIG_UART_CONSOLE=n | ||
CONFIG_USE_SEGGER_RTT=n | ||
CONFIG_LOG=n | ||
CONFIG_ERRNO=n | ||
CONFIG_PRINTK=n | ||
CONFIG_RESET_ON_FATAL_ERROR=n | ||
CONFIG_SPI=n | ||
CONFIG_I2C=n | ||
CONFIG_UART_NRFX=n | ||
|
||
# The following configurations are required to support simultaneous multi image update | ||
CONFIG_PCD_APP=y | ||
CONFIG_UPDATEABLE_IMAGE_NUMBER=2 | ||
CONFIG_BOOT_UPGRADE_ONLY=y | ||
# The network core cannot access external flash directly. The flash simulator must be used to | ||
# provide a memory region that is used to forward the new firmware to the network core. | ||
CONFIG_FLASH_SIMULATOR=y | ||
CONFIG_FLASH_SIMULATOR_DOUBLE_WRITES=y | ||
CONFIG_FLASH_SIMULATOR_STATS=n | ||
|
||
# Enable custom command to erase settings partition. | ||
CONFIG_ENABLE_MGMT_PERUSER=y | ||
CONFIG_BOOT_MGMT_CUSTOM_STORAGE_ERASE=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters