-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
subsys: settings: nvs: provisioning of settings images #79130
subsys: settings: nvs: provisioning of settings images #79130
Commits on Oct 6, 2024
-
tests: flash_simulator: support non-zero offset
The flash simulator tests were still assuming that the base memory offset of the flash buffer is zero, see #79082. As we'll introduce non-zero base addresses in the next change of this change set, we need to fix it now. Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
Configuration menu - View commit details
-
Copy full SHA for 12c79e2 - Browse repository at this point
Copy the full SHA 12c79e2View commit details -
arch: x86: intel64: add missing dt sections macro
The LINKER_DT_SECTIONS macro is being added to the x86/intel64 platform to support memory attributes. Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
Configuration menu - View commit details
-
Copy full SHA for a3c4f18 - Browse repository at this point
Copy the full SHA a3c4f18View commit details -
boards: qemu: x86: rename sim flash node
The flash simulator node is renamed for compatibility with other boards. This is required to access simulated flash under a single name in DTS (e.g. for samples or tests). Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
Configuration menu - View commit details
-
Copy full SHA for 63bbfe3 - Browse repository at this point
Copy the full SHA 63bbfe3View commit details -
qemu: x86: support memory-mapped flash simulator
This change adds a reserved mapped memory region to the QEMU x86 board and places fixed simulated flash partitions inside that region mapped to its own linker section in the final ELF file. The section is then added to the pagetable to support access even if memory protection is active. The change places the simulated flash at a well-defined memory address rather than in the common .bss section. The rationale behind this approach is, that then the contents of the simulated flash can be pre-provisioned via a separate raw binary or Intel hex image to qemu (or any other application using simulated flash) independently from the kernel image. This will be used in a later PR to exemplify pre-provisioned settings partitions with the NVS settings backend. Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
Configuration menu - View commit details
-
Copy full SHA for 68ab2c8 - Browse repository at this point
Copy the full SHA 68ab2c8View commit details -
drivers: flash: simulator: simulate pre-provisioned flash
Enables the flash simulator to simulate pre-provisioned flash with QEMU (or any other application using the flash simulator). Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
Configuration menu - View commit details
-
Copy full SHA for b02898a - Browse repository at this point
Copy the full SHA b02898aView commit details -
samples: settings: make private functions static
Makes all private functions static and fixes a minor typo. Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
Configuration menu - View commit details
-
Copy full SHA for e87763f - Browse repository at this point
Copy the full SHA e87763fView commit details -
samples: settings: mask result values
Values may be compressed in the settings storage to reduce memory footprint. Therefore the read length may be shorter than the target variable's size. We need to mask the result to zero bits that may remain from earlier values assigned to the internal variables. We rename the variable containing the length of data read from "rc" to "bytes_read" to make this intent clear as we believe that samples should be as self-documenting as possible. Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
Configuration menu - View commit details
-
Copy full SHA for d7f5dc3 - Browse repository at this point
Copy the full SHA d7f5dc3View commit details -
samples: settings: provisioned flash
Adds an overlay, code and documentation to the sample that allows user to test an independently provisioned settings partition on QEMU. Also provides instructions how to achieve the same on real devices. Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
Configuration menu - View commit details
-
Copy full SHA for 701617d - Browse repository at this point
Copy the full SHA 701617dView commit details