mbox series

[libubootenv,0/3] Autoselect YAML namespace based on DT prop

Message ID 20230816095641.149618-1-frieder@fris.de
Headers show
Series Autoselect YAML namespace based on DT prop | expand

Message

Frieder Schrempf Aug. 16, 2023, 9:56 a.m. UTC
From: Frieder Schrempf <frieder.schrempf@kontron.de>

This is a small change to allow fw_printenv/fw_setenv to automatically select
a namespace from a YAML config file based on a devicetree property in the
"/chosen" node.

This is based on the previous discussion here: [1].

This allows the bootloader to dynamically decide where the environment is
located and pass the information to userspace where we automatically use the
environment that is currently in use.

See [2] for a board-specific implementation in U-Boot.

[1] https://patchwork.ozlabs.org/project/uboot/patch/20230801144606.689900-1-frieder@fris.de/#3159297
[2] https://git.kontron-electronics.de/sw/misc/u-boot/-/blob/develop-v2023.04-ktn-imx/board/kontron/sl-mx8mm/sl-mx8mm.c?ref_type=heads#L148

Frieder Schrempf (3):
  Try to autoselect namespace based on DT property
  docs: fw_env_config.md: Limit line length
  docs: fw_env_config.md: Add info about namespace selection in YAML
    config

 docs/fw_env_config.md | 18 +++++++++++++-----
 src/fw_printenv.c     | 17 +++++++++++++++++
 2 files changed, 30 insertions(+), 5 deletions(-)