-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nrf fromlist] ZMS a new memory storage system #2045
base: main
Are you sure you want to change the base?
Commits on Oct 1, 2024
-
[nrf fromtree] drivers/flash: Add explicit_erase property
The commit adds and no_explicit_erase capability to flash_parameters, that indicates whether device is program-erase type device; such devices, like Flash type devices, require erase prior to writing random data at any previously programmed location. This capability should only be set by drivers. The flash_params_get_erase_cap() function has been added, for parsing flash_parameters object to obtain erase capabilities of device. The function returns capabilities as combination of bits representing them. Currently it will return: 0 -- no erase capabilities FLASH_ERASE_C_EXPLICIT -- erase required before write of random data. Additional capabilities have been reserved but are not yet used. There are following Kconfig options added: FLASH_HAS_EXPLICIT_ERASE FLASH_HAS_NO_EXPLICIT_ERASE that should be selected by device driver to indicate whether devices served by driver needs erase prior to write. The above Kconfigs are used to figure out whether app is built for hardware that requires erase prior to write. They can be also used to detect that it is attempted to build some subsystem that will not work with provided hardware, for example file system that has not been prepared to work with devices that do not require erase. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit b3c9f95)
Configuration menu - View commit details
-
Copy full SHA for 384b44d - Browse repository at this point
Copy the full SHA 384b44dView commit details -
[nrf fromtree] drivers/flash/nrf: Mark driver as FLASH_HAS_EXPLICIT_E…
…RASE Select CONFIG_FLASH_HAS_EXPLICIT_ERASE for the NRF driver. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 6d75bc5)
Configuration menu - View commit details
-
Copy full SHA for a921ad0 - Browse repository at this point
Copy the full SHA a921ad0View commit details -
[nrf fromtree] drivers/flash/nrf_rram: Set no explicit erase capabili…
…ty to true NRF RRAM does not require erase prior to re-programming already written area. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 127bc5e)
Configuration menu - View commit details
-
Copy full SHA for 622512e - Browse repository at this point
Copy the full SHA 622512eView commit details -
[nrf fromtree] drivers/flash/nrf_mram: Set no explicit erase capabili…
…ty to true NRF MRAM does not require erase prior to re-programming already written area. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit 0e970c8)
Configuration menu - View commit details
-
Copy full SHA for 3386bf7 - Browse repository at this point
Copy the full SHA 3386bf7View commit details -
[nrf fromtree] kconfig: Add variables for integer constants
Add a Kconfig.constants file that defines variables for different known integer minimum and maximum values. Signed-off-by: Pieter De Gendt <[email protected]> (cherry picked from commit dfdebc9)
Configuration menu - View commit details
-
Copy full SHA for 42bde1a - Browse repository at this point
Copy the full SHA 42bde1aView commit details
Commits on Oct 3, 2024
-
[nrf fromlist] fs: introduce ZMS a new Memory storage system
ZMS is the abreviation of Zephyr Memory Storage. It is a storage developed to target especially the non erasable devices. The new memory storage system inherit from the NVS storage multiple features and introduce new ones : * Inherited features : - light key-value based storage - cache for entries - Wear Leveling of flash memory - Resilience to power failures * New features : - cycle counter for non erasable devices (instead of erase emulation) - Keys up to 32-bit - Built-in support of CRC32 for data - Small size data (<= 8 bytes) integrated within entries Upstream PR: zephyrproject-rtos/zephyr#77930 Signed-off-by: Riadh Ghaddab <[email protected]> (cherry picked from commit 7bf5d179cc5d586fb3cf4564f92cea7b66b0e964)
Configuration menu - View commit details
-
Copy full SHA for b694bac - Browse repository at this point
Copy the full SHA b694bacView commit details -
[nrf fromlist] tests: fs: zms: add testsuite for ZMS storage
List of added tests : - zms.test_delete - zms.test_zms_cache_collission - zms.test_zms_cache_gc - zms.test_zms_cache_hash_quality - zms.test_zms_cache_init - zms.test_zms_corrupted_sector_close_operation - zms.test_zms_corrupted_write - zms.test_zms_full_sector - zms.test_zms_gc - zms.test_zms_gc_3sectors - zms.test_zms_gc_corrupt_ate - zms.test_zms_gc_corrupt_close_ate - zms.test_zms_mount - zms.test_zms_write Upstream PR: zephyrproject-rtos/zephyr#77930 Signed-off-by: Riadh Ghaddab <[email protected]> (cherry picked from commit 1f4e92c3da4b738d2dd203348d7a93f5ccdb5b99)
Configuration menu - View commit details
-
Copy full SHA for 9572965 - Browse repository at this point
Copy the full SHA 9572965View commit details -
[nrf fromlist] samples: fs: zms: add a sample app for ZMS storage system
This adds a user application that shows the usage of ZMS The sample app shows three main functions of ZMS: - read/write/delete key/value pairs - fill all storage and delete it - calculate free remaining space Upstream PR: zephyrproject-rtos/zephyr#77930 Signed-off-by: Riadh Ghaddab <[email protected]> (cherry picked from commit c479fadad817a84da18ea2f2e1873cebbd9c1f12)
Configuration menu - View commit details
-
Copy full SHA for 025a88d - Browse repository at this point
Copy the full SHA 025a88dView commit details -
[nrf fromlist] settings: ZMS: add a backend for ZMS (Zephyr Memory St…
…orage) This adds the initial backend support for the ZMS storage system. Upstream PR: zephyrproject-rtos/zephyr#78632 Signed-off-by: Riadh Ghaddab <[email protected]> (cherry picked from commit 85bc1f8cd205fc3de17ebca2774acaf595cac16c)
Configuration menu - View commit details
-
Copy full SHA for 84144c6 - Browse repository at this point
Copy the full SHA 84144c6View commit details