Commit 6871992b authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

boot: zephyr: add nrf52840 QSPI NOR overlays



Add configuration and DTS overlays to run MCUboot + smp_svr on the
nrf52840dk using the secondary slot in the external QSPI NOR flash.

Signed-off-by: default avatarFabio Utzig <fabio.utzig@nordicsemi.no>
parent e42c6482
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
CONFIG_NORDIC_QSPI_NOR=y
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16
+36 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2020 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/delete-node/ &boot_partition;
/delete-node/ &slot0_partition;
/delete-node/ &slot1_partition;
/delete-node/ &scratch_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>;
		};
	};
};
+2 −0
Original line number Diff line number Diff line
CONFIG_MULTITHREADING=y
CONFIG_BOOT_MAX_IMG_SECTORS=256
+5 −0
Original line number Diff line number Diff line
@@ -23,3 +23,8 @@ tests:
      DTC_OVERLAY_FILE=./boards/nrf52840_single_slot.overlay
    platform_allow:  nrf52840dk_nrf52840
    tags: bootloader_mcuboot
  sample.bootloader.mcuboot.qspi_nor_slot:
    extra_args: DTC_OVERLAY_FILE=./boards/nrf52840dk_qspi_nor_secondary.overlay
      OVERLAY_CONFIG="./boards/nrf52840dk_qspi_nor.conf;./boards/nrf52840dk_qspi_secondary_boot.conf"
    platform_allow: nrf52840dk_nrf52840
    tags: bootloader_mcuboot