1. 02 Dec, 2018 1 commit
    • Andre Przywara's avatar
      FEL: introduce semantic versioning for SPL header · 8fa2f24d
      Andre Przywara authored
      Every addition of a new feature to the SPL header currently requires us
      to update the FEL tool, to teach it about the new supported maximum
      value. Many times the FEL tool doesn't really care, but complains
      anyway - and refuses to load.
      Let's introduce semantic versioning [1] for this field, where backwards
      compatible additions just increase a minor number, but incompatible
      changes require bumping the major version.
      We have 8 bits for the SPL header version, let's split this to have 3 bits
      for the major and 5 bit for the minor version number.
      
      [1] https://semver.org
      
      Signed-off-by: default avatarAndre Przywara <osp@andrep.de>
      Signed-off-by: default avatarIcenowy Zheng <icenowy@aosc.io>
      8fa2f24d
  2. 09 Jul, 2018 2 commits
  3. 06 Nov, 2017 3 commits
  4. 29 Apr, 2017 1 commit
    • Icenowy Zheng's avatar
      fel: enable support for v2 SPL · c8ada384
      Icenowy Zheng authored
      
      
      The version 2 of SPL added the possibility to add a device tree name in
      the header, with adding some pad and using a reserved word.
      
      As FEL boot currently doesn't need the device tree name, directly raise
      the maximum supported version number to 2.
      Signed-off-by: default avatarIcenowy Zheng <icenowy@aosc.io>
      c8ada384
  5. 28 Feb, 2017 1 commit
    • Andre Przywara's avatar
      fel: SMC workaround to enter "secure boot" FEL mode on some SoCs · 8c45b33e
      Andre Przywara authored
      
      
      If an SoC has the "secure boot" fuse burned, it will enter FEL mode in
      non-secure state, so with the SCR.NS bit set. Since in this mode the
      secure/non-secure state restrictions are actually observed, we suffer
      from several restrictions:
      - No access to the SID information (both via memory mapped and "register").
      - No access to secure SRAM (SRAM A2 on H3/A64/H5).
      - No access to the secure side of the GIC, so it can't be configured to
        be accessible from non-secure world.
      - No RMR trigger on ARMv8 cores to bring the core into AArch64.
      Those limitations make a board pretty useless for many applications.
      
      However it has been found out that a simple "smc" call will immediately
      return from monitor mode, but with the NS bit cleared, so access to all
      secure peripherals is suddenly possible.
      
      Add all the necessary support code for doing a runtime check and
      activating this workaround. Affected SoCs need to have the "smc"
      workaround enabled in their soc_info struct.
      Signed-off-by: default avatarAndre Przywara <osp@andrep.de>
      ["sunxi-fel smc" command changed to automatic detection by Siarhei]
      Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
      8c45b33e
  6. 13 Feb, 2017 1 commit
  7. 11 Feb, 2017 1 commit
  8. 27 Jan, 2017 1 commit
  9. 28 Dec, 2016 4 commits
  10. 13 Dec, 2016 1 commit
    • Bernhard Nortmann's avatar
      fel: Improve on handling invalid options · 1d2182c4
      Bernhard Nortmann authored
      
      
      For unknown option-style arguments (starting with '-'), exit after
      printing an error message.
      
      This avoids situations where sunxi-fel would not report incorrect
      options (with no FEL device attached/detected) and fail with
      "Allwinner USB FEL device not found" instead, which is undesirable.
      
      TODO: Might have to eventually migrate this to some better argument
      parsing, e.g. getopt(3) or something similar.
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      1d2182c4
  11. 07 Dec, 2016 2 commits
  12. 01 Dec, 2016 2 commits
  13. 29 Nov, 2016 9 commits
  14. 19 Nov, 2016 2 commits
  15. 13 Nov, 2016 1 commit
  16. 11 Nov, 2016 1 commit
    • Bernhard Nortmann's avatar
      fel: Lower timeout to a more practical value · d3e860b0
      Bernhard Nortmann authored
      
      
      The previous timeout of 60 seconds was mostly based on scenarios
      where large ("write") transfers take place. But it could easily
      become annoying if users are awaiting completion of simpler
      commands like "read" or "hexdump", and for some reason FEL fails
      to respond.
      
      Therefore I've decided to lower the timeout value to 10 seconds,
      adjust the maximum chunk size accordingly and - while at it -
      improve the source comments documenting their relationship.
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      d3e860b0
  17. 10 Nov, 2016 1 commit
  18. 26 Oct, 2016 2 commits
  19. 25 Oct, 2016 2 commits
  20. 24 Oct, 2016 2 commits
    • Bernhard Nortmann's avatar
      Have programs display version information in their usage help · 569f1896
      Bernhard Nortmann authored
      
      
      This way we don't have to introduce new options for retrieving
      version info. For those programs that do not output their usage
      by default (e.g. because they would process stdin), you may pass
      a "-?" option to get help - and thus version information.
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      569f1896
    • NiteHawk's avatar
      fel: Add the ability to pass uEnv-style data via FEL (#60) · a8eadb9b
      NiteHawk authored
      
      
      * fel: Add the ability to pass uEnv-style data via FEL
      
      The corresponding format is recognized by having the environment
      data (= text) start with a special "#=uEnv" marker. Upon transfer
      of such a file, sunxi-fel will detect this condition, and set a
      field in the SPL header accordingly - which in turn also requests
      U-Boot to auto-import it (i.e. merge with the default environment).
      
      (Note that this requires a U-Boot version that knows about the
      new meaning of this field, namely v2016.09 or later. Older U-Boot
      versions will fail to import the uEnv-style data.)
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      a8eadb9b