Skip to content

Commit bd2fbff

Browse files
committed
boot: zephyr: boards: Assign boot_partition to code-patition
Include the 2M SysBuild partitions from the device-tree. Use the boot_partition as the code-partition for RPI Pico and Pico W in order for the SysBuild to use the boot_partition during build. Projects using SysBuild will need to include the same 2M SysBuild partitions and select the slot0_parition as the code-partition. Both slot0_partition and slot1_partitions will be used for firmware upgrade. Signed-off-by: John Lin <john.lin@beechwoods.com>
1 parent 990b1fc commit bd2fbff

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

boot/zephyr/boards/rpi_pico.overlay

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Beechwoods Software Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <raspberrypi/partitions_2M_sysbuild.dtsi>
8+
9+
/ {
10+
chosen {
11+
/delete-property/ zephyr,code-partition;
12+
zephyr,code-partition = &boot_partition;
13+
};
14+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "rpi_pico.overlay"

0 commit comments

Comments
 (0)