|
| 1 | +/* |
| 2 | + * Copyright (c) 2026 Nordic Semiconductor ASA |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
| 5 | + * |
| 6 | + * Flash layout (flash0, 1 MiB internal): |
| 7 | + * 0x00000000 b0_partition ( 32 KiB) immutable bootloader |
| 8 | + * 0x00008000 s0_partition ( 80 KiB) primary MCUboot |
| 9 | + * 0x0001c000 s1_partition ( 80 KiB) secondary MCUboot |
| 10 | + * 0x00030000 slot0_partition (image-0) (800 KiB) |
| 11 | + * 0x00000000 slot0_s_partition ( 32 KiB) |
| 12 | + * 0x00008000 slot0_ns_partition (768 KiB) |
| 13 | + * 0x000f8000 memfault_coredump_partition ( 32 KiB) |
| 14 | + * |
| 15 | + * Flash layout (flash_ext, 32 MiB external): |
| 16 | + * 0x00000000 slot1_partition (image-1) (800 KiB) matches slot0 for MCUboot swap-move |
| 17 | + * 0x00000000 slot1_s_partition ( 32 KiB) |
| 18 | + * 0x00008000 slot1_ns_partition (768 KiB) |
| 19 | + * 0x000d0000 fmfu_storage_partition ( 4 MiB) |
| 20 | + * 0x004d0000 settings_storage ( 8 KiB) |
| 21 | + * 0x004d2000 littlefs_storage ( 1 MiB) |
| 22 | + * 0x005d2000 external_flash_partition (~26.2 MiB) free space |
| 23 | + */ |
| 24 | + |
| 25 | +/delete-node/ &slot0_partition; |
| 26 | +/delete-node/ &slot1_partition; |
| 27 | +/delete-node/ &storage_partition; |
| 28 | + |
| 29 | +/ { |
| 30 | + chosen { |
| 31 | + zephyr,settings-partition = &settings_storage; |
| 32 | + fmfu_storage = &fmfu_storage_partition; |
| 33 | + }; |
| 34 | + |
| 35 | + fstab { |
| 36 | + compatible = "zephyr,fstab"; |
| 37 | + lfs1: lfs1 { |
| 38 | + compatible = "zephyr,fstab,littlefs"; |
| 39 | + mount-point = "/att_storage"; |
| 40 | + partition = <&littlefs_storage>; |
| 41 | + automount; |
| 42 | + read-size = <16>; |
| 43 | + prog-size = <16>; |
| 44 | + cache-size = <64>; |
| 45 | + lookahead-size = <32>; |
| 46 | + block-cycles = <512>; |
| 47 | + }; |
| 48 | + }; |
| 49 | +}; |
| 50 | + |
| 51 | +&flash0 { |
| 52 | + partitions { |
| 53 | + slot0_partition: partition@30000 { |
| 54 | + compatible = "fixed-subpartitions"; |
| 55 | + label = "image-0"; |
| 56 | + reg = <0x00030000 0xc8000>; |
| 57 | + ranges = <0x0 0x00030000 0xc8000>; |
| 58 | + #address-cells = <1>; |
| 59 | + #size-cells = <1>; |
| 60 | + |
| 61 | + slot0_s_partition: partition@0 { |
| 62 | + label = "image-0-secure"; |
| 63 | + reg = <0x00000000 0x8000>; |
| 64 | + }; |
| 65 | + |
| 66 | + slot0_ns_partition: partition@8000 { |
| 67 | + label = "image-0-nonsecure"; |
| 68 | + reg = <0x00008000 0xc0000>; |
| 69 | + }; |
| 70 | + }; |
| 71 | + |
| 72 | + storage_partition: memfault_coredump_partition: partition@f8000 { |
| 73 | + label = "memfault_coredump_partition"; |
| 74 | + reg = <0x000f8000 0x00008000>; |
| 75 | + }; |
| 76 | + }; |
| 77 | +}; |
| 78 | + |
| 79 | +&flash_ext { |
| 80 | + status = "okay"; |
| 81 | + |
| 82 | + partitions { |
| 83 | + compatible = "fixed-partitions"; |
| 84 | + #address-cells = <1>; |
| 85 | + #size-cells = <1>; |
| 86 | + |
| 87 | + slot1_partition: partition@0 { |
| 88 | + compatible = "fixed-subpartitions"; |
| 89 | + label = "image-1"; |
| 90 | + reg = <0x00000000 0xc8000>; |
| 91 | + ranges = <0x0 0x00000 0xc8000>; |
| 92 | + #address-cells = <1>; |
| 93 | + #size-cells = <1>; |
| 94 | + |
| 95 | + slot1_s_partition: partition@0 { |
| 96 | + label = "image-1-secure"; |
| 97 | + reg = <0x00000000 0x8000>; |
| 98 | + }; |
| 99 | + |
| 100 | + slot1_ns_partition: partition@8000 { |
| 101 | + label = "image-1-nonsecure"; |
| 102 | + reg = <0x00008000 0xc0000>; |
| 103 | + }; |
| 104 | + }; |
| 105 | + |
| 106 | + fmfu_storage_partition: partition@d0000 { |
| 107 | + label = "fmfu_storage"; |
| 108 | + reg = <0x000d0000 0x00400000>; |
| 109 | + }; |
| 110 | + |
| 111 | + settings_storage: partition@4d0000 { |
| 112 | + label = "settings_storage"; |
| 113 | + reg = <0x004d0000 0x00002000>; |
| 114 | + }; |
| 115 | + |
| 116 | + littlefs_storage: partition@4d2000 { |
| 117 | + label = "littlefs_storage"; |
| 118 | + reg = <0x004d2000 0x00100000>; |
| 119 | + }; |
| 120 | + |
| 121 | + external_flash_partition: partition@5d2000 { |
| 122 | + label = "external_flash"; |
| 123 | + reg = <0x005d2000 0x01a2e000>; |
| 124 | + }; |
| 125 | + }; |
| 126 | +}; |
0 commit comments