Skip to content
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

Closed

Commits on Oct 6, 2024

  1. 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>
    fg-cfh committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    12c79e2 View commit details
    Browse the repository at this point in the history
  2. 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>
    fg-cfh committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    a3c4f18 View commit details
    Browse the repository at this point in the history
  3. 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>
    fg-cfh committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    63bbfe3 View commit details
    Browse the repository at this point in the history
  4. 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>
    fg-cfh committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    68ab2c8 View commit details
    Browse the repository at this point in the history
  5. 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>
    fg-cfh committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    b02898a View commit details
    Browse the repository at this point in the history
  6. 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>
    fg-cfh committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    e87763f View commit details
    Browse the repository at this point in the history
  7. 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>
    fg-cfh committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    d7f5dc3 View commit details
    Browse the repository at this point in the history
  8. 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>
    fg-cfh committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    701617d View commit details
    Browse the repository at this point in the history