1. 17 Nov, 2021 1 commit
  2. 02 Nov, 2021 3 commits
  3. 26 Aug, 2021 1 commit
  4. 22 Jul, 2021 2 commits
  5. 13 Jul, 2021 4 commits
  6. 01 May, 2021 1 commit
  7. 28 Apr, 2021 1 commit
  8. 02 Mar, 2021 2 commits
  9. 11 Jan, 2021 1 commit
  10. 10 Jan, 2021 1 commit
  11. 15 Dec, 2020 2 commits
  12. 27 Nov, 2020 1 commit
  13. 13 Oct, 2020 1 commit
  14. 04 Sep, 2020 1 commit
  15. 03 Sep, 2020 1 commit
    • Adrian Bunk's avatar
      Fix file reading/writing when the environment is in EEPROM · ca6aaa16
      Adrian Bunk authored and Stefano Babic's avatar Stefano Babic committed
      
      
      Trying to use fw_printenv/fw_setenv with
      /sys/bus/i2c/devices/0-0050/eeprom always fails for me:
      
      $ fw_printenv
      Cannot read environment, using default
      Cannot read default environment from file
      $
      
      The problem is that fileread() and filewrite() in src/uboot_env.c
      read/write once, and callers treat it as error if they did read/write
      fewer bytes than requested.
      
      In C it is not an error if fewer bytes get read/written than requested,
      the caller is supposed to retry with the remaining bytes until everything
      is done or an error occurs.
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      ca6aaa16
  16. 25 Aug, 2020 1 commit
    • S. Lockwood-Childs's avatar
      Fix regression in UBI volume support · a031dea2
      S. Lockwood-Childs authored and Stefano Babic's avatar Stefano Babic committed
      
      
      Running realpath() directly on the name parsed from the env config file
      fails in the special case of UBI volume syntax, e.g.
        /dev/ubi0:env
                  ^^^------ UBI volume name
      
      That special case with UBI volume name is handled by ubi_update_name(),
      which doesn't happen early enough for normalizing the device path.
      With above example, libuboot_read_config() would attempt to normalize
      "/dev/ubi0:env" which does not exist.
      
      Separate out the path normalization into a helper function that splits
      off any volume part (e.g. ":env") before trying to normalize the path,
      then appends the volume part to the normalized path.
      Signed-off-by: default avatarS. Lockwood-Childs <sjl@vctlabs.com>
      a031dea2
  17. 16 Aug, 2020 1 commit
  18. 12 Aug, 2020 3 commits
  19. 07 Aug, 2020 2 commits
  20. 02 Jul, 2020 1 commit
  21. 29 Jun, 2020 2 commits
  22. 28 Jun, 2020 7 commits