Initial commit
Initial commit.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Disable Zephyr console
|
||||
CONFIG_CONSOLE=n
|
||||
|
||||
# MCUBoot settings
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
|
||||
CONFIG_MULTITHREADING=y
|
||||
@@ -0,0 +1,10 @@
|
||||
# Disable Zephyr console
|
||||
CONFIG_CONSOLE=n
|
||||
|
||||
# MCUBoot settings
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
|
||||
CONFIG_MULTITHREADING=y
|
||||
@@ -0,0 +1,10 @@
|
||||
# Disable Zephyr console
|
||||
CONFIG_CONSOLE=n
|
||||
|
||||
# MCUBoot settings
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
|
||||
CONFIG_MULTITHREADING=y
|
||||
@@ -0,0 +1,10 @@
|
||||
# Disable Zephyr console
|
||||
CONFIG_CONSOLE=n
|
||||
|
||||
# MCUBoot settings
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
|
||||
CONFIG_MULTITHREADING=y
|
||||
@@ -0,0 +1,6 @@
|
||||
CONFIG_MULTITHREADING=y
|
||||
# Enable QSPI (MX25R64) - Slot 1 in QSPI
|
||||
CONFIG_NORDIC_QSPI_NOR=y
|
||||
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
|
||||
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=4
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
@@ -0,0 +1,13 @@
|
||||
# Disable Zephyr console
|
||||
CONFIG_CONSOLE=n
|
||||
|
||||
# Multithreading
|
||||
CONFIG_MULTITHREADING=y
|
||||
|
||||
# MCUBoot settings
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
CONFIG_BOOT_SERIAL_DETECT_DELAY=450
|
||||
CONFIG_MCUBOOT_INDICATION_LED=y
|
||||
15
bootloader/mcuboot/boot/zephyr/boards/conexio_stratus.conf
Normal file
15
bootloader/mcuboot/boot/zephyr/boards/conexio_stratus.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
# Disable Zephyr console
|
||||
CONFIG_CONSOLE=n
|
||||
CONFIG_CONSOLE_HANDLER=n
|
||||
CONFIG_UART_CONSOLE=n
|
||||
|
||||
# Multithreading
|
||||
CONFIG_MULTITHREADING=y
|
||||
|
||||
# MCUBoot settings
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
CONFIG_BOOT_SERIAL_DETECT_DELAY=450
|
||||
CONFIG_MCUBOOT_INDICATION_LED=y
|
||||
@@ -0,0 +1,2 @@
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
CONFIG_WATCHDOG=y
|
||||
@@ -0,0 +1,2 @@
|
||||
CONFIG_FLASH_SIMULATOR=y
|
||||
CONFIG_FLASH_SIMULATOR_UNALIGNED_READ=y
|
||||
@@ -0,0 +1 @@
|
||||
CONFIG_WATCHDOG=y
|
||||
@@ -0,0 +1,5 @@
|
||||
# Copyright 2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#MCXN94x does not support the MCUBoot swap mode.
|
||||
CONFIG_BOOT_UPGRADE_ONLY=y
|
||||
@@ -0,0 +1,5 @@
|
||||
# Copyright 2023 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=1024
|
||||
CONFIG_BOOT_UPGRADE_ONLY=y
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright 2023 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,flash = &flash;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# Copyright 2023 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#LPC does not support the MCUBoot swap mode.
|
||||
CONFIG_BOOT_UPGRADE_ONLY=y
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
@@ -0,0 +1,6 @@
|
||||
# Copyright 2023 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#LPC does not support the MCUBoot swap mode.
|
||||
CONFIG_BOOT_UPGRADE_ONLY=y
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
@@ -0,0 +1,6 @@
|
||||
# Copyright 2023 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#LPC does not support the MCUBoot swap mode.
|
||||
CONFIG_BOOT_UPGRADE_ONLY=y
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=512
|
||||
@@ -0,0 +1,6 @@
|
||||
# Copyright 2023 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#LPC does not support the MCUBoot swap mode.
|
||||
CONFIG_BOOT_UPGRADE_ONLY=y
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
@@ -0,0 +1,6 @@
|
||||
# Copyright 2023 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#LPC does not support the MCUBoot swap mode.
|
||||
CONFIG_BOOT_UPGRADE_ONLY=y
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=512
|
||||
@@ -0,0 +1,4 @@
|
||||
# Copyright 2023 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=2048
|
||||
@@ -0,0 +1,4 @@
|
||||
# Copyright 2023 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=2048
|
||||
@@ -0,0 +1,4 @@
|
||||
# Copyright 2021 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=1024
|
||||
@@ -0,0 +1,4 @@
|
||||
# Copyright (c) 2021 Prevas A/S
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=512
|
||||
@@ -0,0 +1,4 @@
|
||||
# Copyright 2023 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=1024
|
||||
@@ -0,0 +1,5 @@
|
||||
# Copyright 2021-2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=1024
|
||||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
|
||||
@@ -0,0 +1,5 @@
|
||||
# Copyright 2021-2022 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=1024
|
||||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
|
||||
@@ -0,0 +1,7 @@
|
||||
# Copyright 2022 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=1024
|
||||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
|
||||
# Move swap provides better wear levelling, so use it by default
|
||||
CONFIG_BOOT_SWAP_USING_MOVE=y
|
||||
@@ -0,0 +1,5 @@
|
||||
# Copyright 2021-2022 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=1024
|
||||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
|
||||
@@ -0,0 +1,5 @@
|
||||
# Copyright 2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=1024
|
||||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
|
||||
@@ -0,0 +1,4 @@
|
||||
# Copyright 2021 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=512
|
||||
@@ -0,0 +1,5 @@
|
||||
# Copyright 2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=2048
|
||||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
|
||||
@@ -0,0 +1,6 @@
|
||||
# Copyright 2022-2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=2048
|
||||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# Copyright 2023 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=8192
|
||||
@@ -0,0 +1,4 @@
|
||||
# Copyright 2021 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=8192
|
||||
@@ -0,0 +1,5 @@
|
||||
# Due the small boot partition, we can't enable logging or the debug
|
||||
# optimization level out off the box. You need to increase the boot
|
||||
# partition size with a zephyr DTS overlay to make MCUboot's debug
|
||||
# builds fit.
|
||||
CONFIG_LOG=n
|
||||
36
bootloader/mcuboot/boot/zephyr/boards/nrf52840_big.overlay
Normal file
36
bootloader/mcuboot/boot/zephyr/boards/nrf52840_big.overlay
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/delete-node/ &boot_partition;
|
||||
/delete-node/ &slot0_partition;
|
||||
/delete-node/ &slot1_partition;
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x000000000 0x00010000>;
|
||||
};
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
reg = <0x000010000 0x000074000>;
|
||||
};
|
||||
slot1_partition: partition@75000 {
|
||||
label = "image-1";
|
||||
reg = <0x00084000 0x000074000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&zephyr_udc0 {
|
||||
cdc_acm_uart0 {
|
||||
compatible = "zephyr,cdc-acm-uart";
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/delete-node/ &boot_partition;
|
||||
/delete-node/ &slot0_partition;
|
||||
/delete-node/ &slot1_partition;
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x000000000 0x00010000>;
|
||||
};
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
reg = <0x000010000 0x0000E8000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
CONFIG_UPDATEABLE_IMAGE_NUMBER=2
|
||||
|
||||
CONFIG_FLASH_SIMULATOR=y
|
||||
CONFIG_FLASH_SIMULATOR_UNALIGNED_READ=y
|
||||
|
||||
CONFIG_BOOT_IMAGE_ACCESS_HOOKS=y
|
||||
@@ -0,0 +1,2 @@
|
||||
# Ensure that the qspi driver is disabled by default
|
||||
CONFIG_NORDIC_QSPI_NOR=n
|
||||
@@ -0,0 +1,3 @@
|
||||
&uicr {
|
||||
/delete-property/ gpio-as-nreset;
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
CONFIG_NORDIC_QSPI_NOR=y
|
||||
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
|
||||
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/delete-node/ &boot_partition;
|
||||
/delete-node/ &slot0_partition;
|
||||
/delete-node/ &slot1_partition;
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x000000000 0x00010000>;
|
||||
};
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
reg = <0x000010000 0x0000e8000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mx25r64 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
slot1_partition: partition@0 {
|
||||
label = "image-1";
|
||||
reg = <0x000000000 0x0000e8000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,2 @@
|
||||
CONFIG_MULTITHREADING=y
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
54
bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_ram.overlay
Normal file
54
bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_ram.overlay
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/delete-node/ &slot1_partition;
|
||||
/delete-node/ &slot0_partition;
|
||||
/delete-node/ &boot_partition;
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x000000000 0x00010000>;
|
||||
};
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
reg = <0x000010000 0x00000A000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
soc {
|
||||
flash_controller2: flash-controller@2 {
|
||||
compatible = "zephyr,sim-flash";
|
||||
reg = <0x00000000 DT_SIZE_K(40)>;
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
erase-value = <0xff>;
|
||||
|
||||
flash_sim0: flash_sim@0 {
|
||||
status = "okay";
|
||||
compatible = "soc-nv-flash";
|
||||
erase-block-size = <4096>;
|
||||
write-block-size = <1>;
|
||||
reg = <0x00000000 DT_SIZE_K(40)>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
slot1_partition: partition@0 {
|
||||
label = "image-1";
|
||||
reg = <0x00000000 0x00000A000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/delete-node/ &slot1_partition;
|
||||
/delete-node/ &slot0_partition;
|
||||
/delete-node/ &boot_partition;
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x000000000 0x00010000>;
|
||||
};
|
||||
slot0_partition: partition@10000 {
|
||||
label = "image-0";
|
||||
reg = <0x000010000 0x00000A000>;
|
||||
};
|
||||
slot1_partition: partition@1A000 {
|
||||
label = "image-1";
|
||||
reg = <0x00001A000 0x00000A000>;
|
||||
};
|
||||
slot3_partition: partition@24000 {
|
||||
label = "image-3";
|
||||
reg = <0x000024000 0x00000A000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
soc {
|
||||
flash_controller2: flash-controller@2 {
|
||||
compatible = "zephyr,sim-flash";
|
||||
reg = <0x00000000 DT_SIZE_K(40)>;
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
erase-value = <0xff>;
|
||||
|
||||
flash_sim0: flash_sim@0 {
|
||||
status = "okay";
|
||||
compatible = "soc-nv-flash";
|
||||
erase-block-size = <4096>;
|
||||
write-block-size = <1>;
|
||||
reg = <0x00000000 DT_SIZE_K(40)>;
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
slot2_partition: partition@0 {
|
||||
label = "image-2";
|
||||
reg = <0x00000000 0x00000A000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,26 @@
|
||||
# The UART is used for Serial Recovery, so logging requires
|
||||
# an RTT console, which is not available out of the box on this board.
|
||||
# Disable logging.
|
||||
CONFIG_LOG=n
|
||||
|
||||
# Serial
|
||||
CONFIG_CONSOLE=n
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_NRFX=n
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
CONFIG_UART_LINE_CTRL=y
|
||||
|
||||
# MCUBoot serial
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
CONFIG_BOOT_SERIAL_CDC_ACM=y
|
||||
|
||||
# Required by USB
|
||||
CONFIG_MULTITHREADING=y
|
||||
|
||||
# USB
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_USB_DEVICE_REMOTE_WAKEUP=n
|
||||
CONFIG_USB_DEVICE_PRODUCT="MCUBOOT"
|
||||
|
||||
CONFIG_NORDIC_QSPI_NOR=n
|
||||
@@ -0,0 +1,61 @@
|
||||
# Minimal MCUBoot flash footprint configuration
|
||||
# for nRF52832 SoC targets
|
||||
# This is not recomendet configuration because of security and reliability
|
||||
# reasons.
|
||||
|
||||
|
||||
# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib)
|
||||
CONFIG_BOOT_SIGNATURE_TYPE_ECDSA_P256=y
|
||||
CONFIG_BOOT_SIGNATURE_KEY_FILE="root-ec-p256.pem"
|
||||
|
||||
# In any real project CONFIG_BOOT_VALIDATE_SLOT0 enabling is recommended
|
||||
# by security reason.
|
||||
# CONFIG_BOOT_VALIDATE_SLOT0 is not set
|
||||
|
||||
# In most of projects CONFIG_BOOT_UPGRADE_ONLY disabling is recommended
|
||||
# by reliability reason.
|
||||
CONFIG_BOOT_UPGRADE_ONLY=y
|
||||
|
||||
# CONFIG_BOARD_ENABLE_DCDC is not set
|
||||
CONFIG_SOC_SERIES_NRF52X=y
|
||||
CONFIG_SOC_NRF52832_QFAA=y
|
||||
CONFIG_ARM=y
|
||||
CONFIG_ARM_MPU=n
|
||||
CONFIG_MAIN_STACK_SIZE=10240
|
||||
CONFIG_THREAD_STACK_INFO=n
|
||||
# CONFIG_TICKLESS_KERNEL is not set
|
||||
CONFIG_FLASH=y
|
||||
|
||||
CONFIG_CONSOLE=n
|
||||
CONFIG_DEBUG=n
|
||||
CONFIG_EARLY_CONSOLE=n
|
||||
CONFIG_PRINTK=n
|
||||
|
||||
CONFIG_SYS_CLOCK_EXISTS=n
|
||||
|
||||
# Drivers and peripherals
|
||||
CONFIG_I2C=n
|
||||
CONFIG_WATCHDOG=n
|
||||
CONFIG_GPIO=n
|
||||
CONFIG_PINMUX=n
|
||||
CONFIG_SPI=n
|
||||
CONFIG_SERIAL=n
|
||||
|
||||
# Power management
|
||||
CONFIG_PM=n
|
||||
|
||||
# Interrupts
|
||||
CONFIG_DYNAMIC_INTERRUPTS=n
|
||||
CONFIG_IRQ_OFFLOAD=n
|
||||
|
||||
# Memory protection
|
||||
CONFIG_MEMORY_PROTECTION=n
|
||||
CONFIG_THREAD_CUSTOM_DATA=n
|
||||
CONFIG_FPU=n
|
||||
|
||||
# Boot
|
||||
CONFIG_BOOT_BANNER=n
|
||||
CONFIG_BOOT_DELAY=0
|
||||
|
||||
# Console
|
||||
CONFIG_STDOUT_CONSOLE=n
|
||||
@@ -0,0 +1,13 @@
|
||||
#
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
#
|
||||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
|
||||
#
|
||||
|
||||
# CC3xx is currently not used for nrf53
|
||||
CONFIG_HW_CC3XX=n
|
||||
CONFIG_NRF_CC3XX_PLATFORM=n
|
||||
|
||||
# Required for kernel operation
|
||||
CONFIG_CLOCK_CONTROL=y
|
||||
CONFIG_SYS_CLOCK_EXISTS=y
|
||||
@@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2024 Nordic Semiconductor ASA
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
|
||||
# Ensure that the SPI NOR driver is disabled by default
|
||||
CONFIG_SPI_NOR=n
|
||||
|
||||
# TODO: below are not yet supported and need fixing
|
||||
CONFIG_FPROTECT=n
|
||||
|
||||
CONFIG_BOOT_WATCHDOG_FEED=n
|
||||
@@ -0,0 +1,15 @@
|
||||
CONFIG_MULTITHREADING=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_NOR=y
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x14000
|
||||
CONFIG_MAIN_STACK_SIZE=20480
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=512
|
||||
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
|
||||
# Ensure that the qspi driver is disabled by default
|
||||
CONFIG_NORDIC_QSPI_NOR=n
|
||||
|
||||
# TODO: below are not yet supported and need fixing
|
||||
CONFIG_FPROTECT=n
|
||||
|
||||
CONFIG_BOOT_WATCHDOG_FEED=n
|
||||
@@ -0,0 +1,47 @@
|
||||
/ {
|
||||
chosen {
|
||||
nordic,pm-ext-flash = &mx25r64;
|
||||
zephyr,code-partition = &boot_partition;
|
||||
};
|
||||
};
|
||||
|
||||
/delete-node/ &boot_partition;
|
||||
/delete-node/ &slot0_partition;
|
||||
/delete-node/ &slot1_partition;
|
||||
|
||||
/delete-node/ &slot0_ns_partition;
|
||||
/delete-node/ &slot1_ns_partition;
|
||||
|
||||
/delete-node/ &storage_partition;
|
||||
|
||||
&cpuapp_rram {
|
||||
reg = < 0x0 DT_SIZE_K(1524) >;
|
||||
partitions {
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x000000000 0x00014000>;
|
||||
};
|
||||
slot0_partition: partition@14000 {
|
||||
label = "image-0";
|
||||
reg = <0x000014000 0x0015A000>;
|
||||
};
|
||||
storage_partition: partition@16E000 {
|
||||
label = "storage";
|
||||
reg = < 0x16E000 0x9000 >;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mx25r64 {
|
||||
status = "okay";
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
slot1_partition: partition@0 {
|
||||
label = "image-1";
|
||||
reg = <0x000000000 0x0015A000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
# Copyright (c) 2024 Nordic Semiconductor ASA
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
|
||||
# Ensure that the SPI NOR driver is disabled by default
|
||||
CONFIG_SPI_NOR=n
|
||||
|
||||
# TODO: below are not yet supported and need fixing
|
||||
CONFIG_FPROTECT=n
|
||||
|
||||
CONFIG_BOOT_WATCHDOG_FEED=n
|
||||
@@ -0,0 +1,15 @@
|
||||
CONFIG_MULTITHREADING=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_NOR=y
|
||||
CONFIG_FLASH=y
|
||||
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x14000
|
||||
CONFIG_MAIN_STACK_SIZE=20480
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=512
|
||||
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
|
||||
# Ensure that the qspi driver is disabled by default
|
||||
CONFIG_NORDIC_QSPI_NOR=n
|
||||
|
||||
# TODO: below are not yet supported and need fixing
|
||||
CONFIG_FPROTECT=n
|
||||
|
||||
CONFIG_BOOT_WATCHDOG_FEED=n
|
||||
@@ -0,0 +1,47 @@
|
||||
/ {
|
||||
chosen {
|
||||
nordic,pm-ext-flash = &mx25r64;
|
||||
zephyr,code-partition = &boot_partition;
|
||||
};
|
||||
};
|
||||
|
||||
/delete-node/ &boot_partition;
|
||||
/delete-node/ &slot0_partition;
|
||||
/delete-node/ &slot1_partition;
|
||||
|
||||
/delete-node/ &slot0_ns_partition;
|
||||
/delete-node/ &slot1_ns_partition;
|
||||
|
||||
/delete-node/ &storage_partition;
|
||||
|
||||
&cpuapp_rram {
|
||||
reg = < 0x0 DT_SIZE_K(1524) >;
|
||||
partitions {
|
||||
boot_partition: partition@0 {
|
||||
label = "mcuboot";
|
||||
reg = <0x000000000 0x00014000>;
|
||||
};
|
||||
slot0_partition: partition@14000 {
|
||||
label = "image-0";
|
||||
reg = <0x000014000 0x0015A000>;
|
||||
};
|
||||
storage_partition: partition@16E000 {
|
||||
label = "storage";
|
||||
reg = < 0x16E000 0x9000 >;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mx25r64 {
|
||||
status = "okay";
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
slot1_partition: partition@0 {
|
||||
label = "image-1";
|
||||
reg = <0x000000000 0x0015A000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
CONFIG_SPI_NOR=n
|
||||
@@ -0,0 +1,4 @@
|
||||
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_REGULATOR=n
|
||||
@@ -0,0 +1,6 @@
|
||||
CONFIG_MULTITHREADING=y
|
||||
# Enable QSPI (MX25R64) - Slot 1 in QSPI
|
||||
CONFIG_NORDIC_QSPI_NOR=y
|
||||
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
|
||||
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=4
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
@@ -0,0 +1,4 @@
|
||||
# Copyright 2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=1024
|
||||
@@ -0,0 +1,13 @@
|
||||
# Disable Zephyr console
|
||||
CONFIG_CONSOLE=n
|
||||
|
||||
# Multithreading
|
||||
CONFIG_MULTITHREADING=y
|
||||
|
||||
# MCUBoot settings
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
CONFIG_BOOT_SERIAL_DETECT_DELAY=450
|
||||
CONFIG_MCUBOOT_INDICATION_LED=y
|
||||
@@ -0,0 +1 @@
|
||||
CONFIG_GPIO_SX1509B=n
|
||||
@@ -0,0 +1,74 @@
|
||||
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_GPIO_NRFX_INTERRUPT=n
|
||||
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
|
||||
34
bootloader/mcuboot/boot/zephyr/boards/thingy91_nrf52840.conf
Normal file
34
bootloader/mcuboot/boot/zephyr/boards/thingy91_nrf52840.conf
Normal file
@@ -0,0 +1,34 @@
|
||||
# Disable Zephyr console
|
||||
CONFIG_LOG=n
|
||||
CONFIG_CONSOLE=n
|
||||
CONFIG_CONSOLE_HANDLER=n
|
||||
CONFIG_UART_CONSOLE=n
|
||||
|
||||
# The build won't fit on the partition allocated for it without size
|
||||
# optimizations.
|
||||
CONFIG_SIZE_OPTIMIZATIONS=y
|
||||
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x12000
|
||||
|
||||
# Serial
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_NRFX=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
CONFIG_UART_LINE_CTRL=y
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
CONFIG_BOOT_SERIAL_CDC_ACM=y
|
||||
|
||||
# Required by USB
|
||||
CONFIG_MULTITHREADING=y
|
||||
|
||||
# USB
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_USB_DEVICE_PRODUCT="MCUBOOT"
|
||||
CONFIG_USB_CDC_ACM=y
|
||||
CONFIG_USB_COMPOSITE_DEVICE=y
|
||||
CONFIG_USB_MASS_STORAGE=n
|
||||
CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor"
|
||||
CONFIG_USB_DEVICE_VID=0x1915
|
||||
CONFIG_USB_DEVICE_PID=0x520F
|
||||
13
bootloader/mcuboot/boot/zephyr/boards/thingy91_nrf9160.conf
Normal file
13
bootloader/mcuboot/boot/zephyr/boards/thingy91_nrf9160.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
# Disable Zephyr console
|
||||
CONFIG_CONSOLE=n
|
||||
CONFIG_CONSOLE_HANDLER=n
|
||||
CONFIG_UART_CONSOLE=n
|
||||
|
||||
# Disable Flash protection
|
||||
CONFIG_FPROTECT=n
|
||||
|
||||
# MCUBoot settings
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=256
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
@@ -0,0 +1,63 @@
|
||||
# MCUBoot settings
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=110
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
|
||||
# Disable Zephyr console
|
||||
CONFIG_LOG=n
|
||||
CONFIG_CONSOLE=n
|
||||
CONFIG_CONSOLE_HANDLER=n
|
||||
CONFIG_UART_CONSOLE=n
|
||||
|
||||
# Serial
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_NRFX=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
CONFIG_UART_LINE_CTRL=y
|
||||
|
||||
# MCUboot serial recovery
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
CONFIG_BOOT_SERIAL_CDC_ACM=y
|
||||
|
||||
# Required by USB
|
||||
CONFIG_MULTITHREADING=y
|
||||
|
||||
# USB
|
||||
CONFIG_USB_DEVICE_STACK=y
|
||||
CONFIG_USB_DEVICE_PRODUCT="MCUBOOT"
|
||||
CONFIG_USB_CDC_ACM=y
|
||||
CONFIG_USB_COMPOSITE_DEVICE=y
|
||||
CONFIG_USB_MASS_STORAGE=n
|
||||
CONFIG_USB_DEVICE_MANUFACTURER="Nordic Semiconductor"
|
||||
CONFIG_USB_DEVICE_VID=0x1915
|
||||
CONFIG_USB_DEVICE_PID=0x910A
|
||||
|
||||
CONFIG_BOOT_SERIAL_BOOT_MODE=y
|
||||
|
||||
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x13E00
|
||||
|
||||
# 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
|
||||
|
||||
CONFIG_BOOT_IMAGE_ACCESS_HOOKS=y
|
||||
|
||||
# Makes it possible to update the network core using the flash simulator
|
||||
CONFIG_NRF53_RECOVERY_NETWORK_CORE=y
|
||||
|
||||
CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=y
|
||||
CONFIG_BOOT_SERIAL_IMG_GRP_IMAGE_STATE=y
|
||||
|
||||
# Skip checks on the secondary image to make it possible to update MCUBoot on S1/S0
|
||||
CONFIG_MCUBOOT_VERIFY_IMG_ADDRESS=n
|
||||
|
||||
CONFIG_BOOT_SERIAL_NO_APPLICATION=y
|
||||
CONFIG_FW_INFO_FIRMWARE_VERSION=2
|
||||
21
bootloader/mcuboot/boot/zephyr/boards/thingy91x_nrf9151.conf
Normal file
21
bootloader/mcuboot/boot/zephyr/boards/thingy91x_nrf9151.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
# MCUBoot settings
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=512
|
||||
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_NOR=y
|
||||
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
|
||||
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
|
||||
CONFIG_MULTITHREADING=y
|
||||
|
||||
# Disable Zephyr console and use UART for MCUboot serial recovery instead
|
||||
CONFIG_CONSOLE=n
|
||||
CONFIG_CONSOLE_HANDLER=n
|
||||
CONFIG_UART_CONSOLE=n
|
||||
CONFIG_MCUBOOT_SERIAL=y
|
||||
CONFIG_MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD=y
|
||||
CONFIG_BOOT_SERIAL_IMG_GRP_IMAGE_STATE=y
|
||||
|
||||
CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y
|
||||
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
|
||||
|
||||
CONFIG_FW_INFO_FIRMWARE_VERSION=2
|
||||
@@ -0,0 +1,4 @@
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
current-speed = < 1000000 >;
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
# Copyright 2022 Telink Semiconductor
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=4096
|
||||
@@ -0,0 +1,5 @@
|
||||
# Copyright 2024 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BOOT_MAX_IMG_SECTORS=1024
|
||||
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
|
||||
Reference in New Issue
Block a user