mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-23 01:41:29 +00:00
update all boards with storage revert
This commit is contained in:
1 parent
14f0bb54c6
commit
ae47c5a062
6 files changed
+43
-71
No files matched your search
@@ -20,10 +20,6 @@
|
||||
led0 = &user_led;
|
||||
};
|
||||
|
||||
chosen {
|
||||
zephyr,settings-partition = &storage_partition;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
user_led: led_0 {
|
||||
@@ -62,25 +58,19 @@
|
||||
};
|
||||
|
||||
/*
|
||||
* Flash partitions — split default storage into NVS + LittleFS.
|
||||
* Standard ESP32 4MB layout:
|
||||
* 0x3B0000 - 0x3B2000 (8KB) NVS (BLE bonds)
|
||||
* 0x3B2000 - 0x3E0000 (184KB) LittleFS (identity, contacts)
|
||||
* Flash partitions — repartition default ESP32 layout.
|
||||
* Default storage_partition is 192KB at 0x3B0000.
|
||||
*
|
||||
* 0x3B0000 - 0x3E0000 (192KB) LittleFS (identity, contacts, channels, BLE bonds)
|
||||
*/
|
||||
/delete-node/ &storage_partition;
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
/* NVS 8KB for BLE bonds + settings */
|
||||
storage_partition: partition@3b0000 {
|
||||
label = "storage";
|
||||
reg = <0x3B0000 0x2000>;
|
||||
};
|
||||
|
||||
/* LittleFS 184KB for DataStore */
|
||||
lfs_partition: partition@3b2000 {
|
||||
/* LittleFS 192KB for DataStore + file-based BLE settings */
|
||||
lfs_partition: partition@3b0000 {
|
||||
label = "lfs";
|
||||
reg = <0x3B2000 0x2E000>;
|
||||
reg = <0x3B0000 0x30000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
};
|
||||
|
||||
chosen {
|
||||
zephyr,settings-partition = &storage_partition;
|
||||
zephyr,display = &oled;
|
||||
};
|
||||
|
||||
@@ -89,7 +88,8 @@
|
||||
* Flash partitions — repartition default ESP32-S3 16 MB layout.
|
||||
* Default storage_partition is 192 KB at 0xFB0000.
|
||||
* Delete unused partitions (lpcore, scratch, coredump) to reclaim space.
|
||||
* Split into: NVS 8 KB (BLE bonds) + LittleFS 376 KB (DataStore).
|
||||
*
|
||||
* 0xFA0000 - 0x1000000 (384KB) LittleFS (identity, contacts, channels, BLE bonds)
|
||||
*/
|
||||
/delete-node/ &slot0_lpcore_partition;
|
||||
/delete-node/ &slot1_lpcore_partition;
|
||||
@@ -99,16 +99,10 @@
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
/* NVS 8 KB for BLE bonds + settings */
|
||||
storage_partition: partition@fa0000 {
|
||||
label = "storage";
|
||||
reg = <0xFA0000 0x2000>;
|
||||
};
|
||||
|
||||
/* LittleFS 376 KB for DataStore (identity, contacts, channels, etc.) */
|
||||
lfs_partition: partition@fa2000 {
|
||||
/* LittleFS 384KB for DataStore + file-based BLE settings */
|
||||
lfs_partition: partition@fa0000 {
|
||||
label = "lfs";
|
||||
reg = <0xFA2000 0x5E000>;
|
||||
reg = <0xFA0000 0x60000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
chosen {
|
||||
zephyr,console = &usb_serial;
|
||||
zephyr,shell-uart = &usb_serial;
|
||||
zephyr,settings-partition = &storage_partition;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -57,22 +56,17 @@
|
||||
/*
|
||||
* Flash partitions — repartition default ESP32 layout.
|
||||
* Default storage_partition is 192KB at 0x3B0000.
|
||||
* Split into: NVS 8KB (BLE bonds) + LittleFS 184KB (identity, contacts, etc.)
|
||||
*
|
||||
* 0x3B0000 - 0x3E0000 (192KB) LittleFS (identity, contacts, channels, BLE bonds)
|
||||
*/
|
||||
/delete-node/ &storage_partition;
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
/* NVS 8KB for BLE bonds + settings */
|
||||
storage_partition: partition@3b0000 {
|
||||
label = "storage";
|
||||
reg = <0x3B0000 0x2000>;
|
||||
};
|
||||
|
||||
/* LittleFS 184KB for DataStore */
|
||||
lfs_partition: partition@3b2000 {
|
||||
/* LittleFS 192KB for DataStore + file-based BLE settings */
|
||||
lfs_partition: partition@3b0000 {
|
||||
label = "lfs";
|
||||
reg = <0x3B2000 0x2E000>;
|
||||
reg = <0x3B0000 0x30000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
chosen {
|
||||
zephyr,console = &usb_serial;
|
||||
zephyr,shell-uart = &usb_serial;
|
||||
zephyr,settings-partition = &storage_partition;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -57,22 +56,17 @@
|
||||
/*
|
||||
* Flash partitions — repartition default ESP32 layout.
|
||||
* Default storage_partition is 192KB at 0x3B0000.
|
||||
* Split into: NVS 8KB (BLE bonds) + LittleFS 184KB (identity, contacts, etc.)
|
||||
*
|
||||
* 0x3B0000 - 0x3E0000 (192KB) LittleFS (identity, contacts, channels, BLE bonds)
|
||||
*/
|
||||
/delete-node/ &storage_partition;
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
/* NVS 8KB for BLE bonds + settings */
|
||||
storage_partition: partition@3b0000 {
|
||||
label = "storage";
|
||||
reg = <0x3B0000 0x2000>;
|
||||
};
|
||||
|
||||
/* LittleFS 184KB for DataStore */
|
||||
lfs_partition: partition@3b2000 {
|
||||
/* LittleFS 192KB for DataStore + file-based BLE settings */
|
||||
lfs_partition: partition@3b0000 {
|
||||
label = "lfs";
|
||||
reg = <0x3B2000 0x2E000>;
|
||||
reg = <0x3B0000 0x30000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user