Skip to content
Snippets Groups Projects
  1. Jul 06, 2024
  2. May 29, 2024
  3. May 10, 2024
  4. Apr 21, 2024
  5. Jan 22, 2024
  6. Dec 06, 2023
  7. Nov 28, 2023
  8. Oct 08, 2023
  9. Oct 06, 2023
    • James Hilliard's avatar
      Allow specifying UBI Volumes by MTD path · fc9a3991
      James Hilliard authored and Stefano babic's avatar Stefano babic committed
      
      In cases where the env is in an unattached UBI volume we may need
      to specify the volume name via the MTD path to attach.
      
      For this to work correctly we should first scan for any already
      attached UBI devices to see if they correspond to the mtd partition
      number in our configuration, if no corresponding attached mtd devices
      are found we should attempt to ubiattach to the configured MTD path.
      
      Signed-off-by: default avatarJames Hilliard <james.hilliard1@gmail.com>
      fc9a3991
  10. Sep 20, 2023
  11. Sep 02, 2023
  12. Aug 14, 2023
  13. Jun 15, 2023
  14. Jun 02, 2023
  15. Apr 12, 2023
    • Stefano Babic's avatar
      Add function to return the library version · 6b389a9e
      Stefano Babic authored
      
      This helps the caller to identify the version of the running version of
      libubootenv. It returns a pointer to a static structure. Applications
      should use this information to judge if things are possible to do or not,
      instead of using compile-time checks, as libraries loaded via dlopen()
      can be changed independent from the application.
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      6b389a9e
    • Stefano Babic's avatar
      Add compatibility with older version · 061e05f9
      Stefano Babic authored
      
      Make transition to new API simpler. Older application can still call
      libuboot_read_config() as in the past. This function requires to have a
      valid context as input.
      
      Newer applications just call libuboot_read_config_ext(struct uboot_env
      **ctx). It gets the pointer to an array of ctx. Allocation is done by
      the libuboot_read_config_ext(9 function.
      
      Old API:
      
      	// Allocate ctx
      	struct uboot_env *ctx;
      	libuboot_initialize(&ctx);
      	libuboot_read_config(ctx, configfile);
      
      New API:
      	struct uboot_env *ctx;
      	libuboot_read_config_ext(&ctx, configfile);
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      Tested-by: default avatarJoris Offouga <offougajoris@gmail.com>
      061e05f9
  16. Apr 04, 2023
  17. Apr 01, 2023
  18. Mar 31, 2023
  19. Mar 26, 2023
    • Stefano Babic's avatar
      Add new configuration file in YAML · c6784ab6
      Stefano Babic authored
      
      Legacy configuration file was taken by U-Boot project. Its format is
      very simple, but unflexible and it cannot be extended. Changes in the
      format could lead to uncompatibility with U-Boot tools, that are still
      part of U-Boot.
      
      This introduces a new format, letting the old format as fallback if YAML
      cannot be parsed. It uses the libyaml library.
      
      Multiple sets can be configured - an environment is not bound with the
      bootloader, and can be used for other purposes, but still having the
      features provided by the handling for the bootloader (redundancy,
      power-cut safe).
      
      See documentation for the format of the yaml file. Each not recognized
      keyword generates an error.
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      c6784ab6
  20. Mar 21, 2023
  21. Feb 23, 2023
  22. Sep 05, 2022
Loading