You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pm_static.yml missing explicit storage partition — NVS can be overwritten as firmware grows #5400
omi/firmware/boards/omi/pm_static.yml does not define an explicit storage partition for NVS (Non-Volatile Storage). The firmware uses Zephyr's settings subsystem with NVS backend:
Without an explicit partition, Zephyr's Partition Manager places NVS automatically — typically at the end of the application flash region. The app partition spans 0xF200 to 0x100000 (959 KB), which is the entire remaining internal flash with no reserved area for NVS.
Risk
As firmware grows (especially with WiFi/networking enabled via CONFIG_OMI_ENABLE_WIFI=y which adds WPA supplicant, TCP/IP stack, etc.), the application binary can overwrite the NVS storage area, causing:
settings_load() reads garbage/corrupted data on next boot
RTC epoch, mic gain, dim ratio, IMU time base — all corrupted or lost
Device may boot with wrong settings or crash during settings_set() due to size mismatches
Symptoms: random boot failures, settings not persisting, incorrect timestamps
This is silent data corruption — the device still boots but settings are garbage.
Settings at risk
From settings.c, stored in NVS under omi/ namespace:
dim_ratio (1 byte)
mic_gain (1 byte)
rtc_timestamp (struct rtc_time)
rtc_epoch (8 bytes, with u32 backward compat)
lsm6dsl_time_base (16 bytes, with 12-byte legacy compat)
Proposed Fix
Add explicit settings_storage partition to pm_static.yml:
@josancamon19@kodjima33 — I re-checked this against current main and it still appears unresolved: CONFIG_SETTINGS_NVS=y / CONFIG_NVS=y are enabled, while omi/firmware/boards/omi/pm_static.yml still allocates the app through 0x100000 and the repository has no explicit settings_storage partition.
Would you approve a US$20 bounty for a focused fix under the documented Omi bounty process?
Before changing the flash layout, I’d like maintainer confirmation on the intended upgrade/migration behavior for existing devices. If an explicit NVS reservation is still desired, proposed scope is:
reserve an explicit settings/NVS partition and adjust the app span accordingly;
keep MCUboot/secondary-slot constraints valid;
add build/map or other repository-appropriate regression checks that prove the partition layout;
document any migration/compatibility implication agreed here.
I will not make a speculative flash-layout change before that scope is confirmed. AI assistance is being used for investigation/implementation, with the change reviewed and validated before PR submission. I’ll wait for bounty and migration-scope confirmation before implementing.
Activity
Aiowuka commentedon Sep 9, 2026
@josancamon19 @kodjima33 — I re-checked this against current
mainand it still appears unresolved:CONFIG_SETTINGS_NVS=y/CONFIG_NVS=yare enabled, whileomi/firmware/boards/omi/pm_static.ymlstill allocates the app through0x100000and the repository has no explicitsettings_storagepartition.Would you approve a US$20 bounty for a focused fix under the documented Omi bounty process?
Before changing the flash layout, I’d like maintainer confirmation on the intended upgrade/migration behavior for existing devices. If an explicit NVS reservation is still desired, proposed scope is:
I will not make a speculative flash-layout change before that scope is confirmed. AI assistance is being used for investigation/implementation, with the change reviewed and validated before PR submission. I’ll wait for bounty and migration-scope confirmation before implementing.
firmware: CV1 3.0.23 release candidate (backlog + safe mode) (#24393)
fix(firmware): reserve explicit settings_storage in pm_static