aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Schmidt <stefan.schmidt@huawei.com>2021-07-15 14:55:22 +0200
committerNaveen Saini <naveen.kumar.saini@intel.com>2021-07-16 14:10:09 +0800
commita16a5d431860fc6145317258dcbb4e9caab9f247 (patch)
tree20988b1623e2b7b136bc7ac9a0b1b1a23bd6b833
parent58b9d677f13bc07e3ac34bbc1d2244c7c7e22f64 (diff)
downloadmeta-zephyr-a16a5d431860fc6145317258dcbb4e9caab9f247.tar.gz
meta-zephyr-a16a5d431860fc6145317258dcbb4e9caab9f247.tar.bz2
meta-zephyr-a16a5d431860fc6145317258dcbb4e9caab9f247.zip
zephyr-kernel-src.inc: Add backport patch for storage partition
Patch already merged upstream, but after the 2.6 release we are based on. Taking the backport in here until we can figure out if that can go to the Zephyr 2.6 LTS branch. The storage partition itself is needed on the Arduino Nano e.g. for OpenThread or applications needed a storage space. Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
-rw-r--r--recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch49
-rw-r--r--recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc1
2 files changed, 50 insertions, 0 deletions
diff --git a/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch b/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch
new file mode 100644
index 0000000..4568a41
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch
@@ -0,0 +1,49 @@
+commit 6c9945aafa00c09149e2052a9c2bccad16dd1d8a
+Author: Stefan Schmidt <stefan.schmidt@huawei.com>
+Date: Fri May 7 11:47:44 2021 +0200
+
+ boards/arduino_nano_33_ble: add storage partition at end of flash
+
+ Change default partition table to allow for application which need
+ storage. One use case is running the OpenThread integration which has
+ a dependency on this.
+
+ Upstream-Status: Backported [https://github.com/zephyrproject-rtos/zephyr/commit/6c9945aafa00c09149e2052a9c2bccad16dd1d8a]
+
+ Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
+ Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
+
+diff --git a/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts b/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
+index d09b66ec43..d11d800eb5 100644
+--- a/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
++++ b/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
+@@ -44,15 +44,27 @@
+
+ boot_partition: partition@0 {
+ label = "sam-ba";
+- reg = <0x0 0x10000>;
++ reg = <0x00000000 0x00010000>;
+ read-only;
+ };
+
+ code_partition: partition@10000 {
+ label = "code";
+- reg = <0x10000 0xf0000>;
++ reg = <0x00010000 0x000e8000>;
+ read-only;
+ };
++
++ /*
++ * The flash starting at 0x000f8000 and ending at
++ * 0x000fffff is reserved for use by the application.
++ *
++ * Storage partition will be used by FCB/LittleFS/NVS
++ * if enabled.
++ */
++ storage_partition: partition@f8000 {
++ label = "storage";
++ reg = <0x000f8000 0x00008000>;
++ };
+ };
+ };
+
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
index 949492f..091c057 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
@@ -14,4 +14,5 @@ PV = "2.6.0+git${SRCPV}"
SRC_URI_append = " file://0001-cmake-add-yocto-toolchain.patch \
file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \
+ file://arduino-nano-33-ble-storage-partition.patch \
"