1. 18 Apr, 2021 1 commit
    • Kyle Russell's avatar
      swupdate: reboot on update from initramfs recovery image · bf95cb0f
      Kyle Russell authored and Stefano Babic's avatar Stefano Babic committed
      Create swupdate-progress-sysvinit and swupdate-progress-systemd packages with
      the necessary startup scripts for swupdate-progress to run correctly during
      startup for both virtual/init managers. swupdate-image initramfs should RDEPEND
      on swupdate-progress-sysvinit, which now adds a dependency on the swupdate-progress
      binary (packaged in swupdate-progress-bin).
      This allows swupdate-progress to simultaneously be installed in both a distro's
      main rootfs which uses the systemd DISTRO_FEATURE, and the initramfs image which
      uses sysvinit.
      The old swupdate-progress package is now empty, and can still be used as an
      RDEPENDS on the main rootfs image recipe, and swupdate will automatically
      select the appropriate startup script based on DISTRO_FEATURES.
      Signed-off-by: default avatarKyle Russell <bkylerussell@gmail.com>
  2. 17 Apr, 2021 1 commit
  3. 06 Apr, 2021 1 commit
  4. 05 Apr, 2021 1 commit
    • Stefano Babic's avatar
      swupdate: bump to revision fa7f5a1 · 9f4166c5
      Stefano Babic authored
      This adjust checksum for licenses because the licenses directory is
      renamed to LICENSES as specified by REUSE 3.0.
      This includes the following changes
      fa7f5a1 bsdqueue: Make REUSE compliant
      e870ac9 mongoose: Make REUSE compliant
      4ef88a9 LICENSES: Rename LGPL-2.1 to match SPDX ĺist 3.0
      af2cc98 LICENSES: Remove GPL-2.0, add GPL-2.0-only text
      2f513d1 LICENSES: Rename Exception to obey SPDX naming
      141380f doc: Add BSD 1-Clause to license list
      c1bad02 Rename Licenses to LICENSES for REUSE compliance
      77863d7 Fix SPDX inside the project
      550ac19 README: drop erroneous statement about license
      5c048cf (github/coverity_scan) core/stream_interface: add free space checks before writing file copies
      06e19d3 utils: fix get_output_size segfault if properties not set
      1474ac1 utils: move get_output_size from ubivol handler
      43952cc all_handlers_defconfig: add FAT formatter
      79b42c0 doc: handlers: add filesystem creation with diskpart handler description
      fb50fad handlers: diskpart: add filesystem creation support
      498fd2a fatfs: add wrapper for FatFs
      e419b06 Licenses: add BSD 1 clause license text
      c35590c fatfs: add FatFs library R0.14a by ChaN
      0404ce4 utils: add read_lines_notify helper
      3db1d94 grubenv: fix buffer overflow on strtok function
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
  5. 22 Mar, 2021 1 commit
    • Pierre-Jean Texier's avatar
      swupdate: bump to revision 9b2155e · 7e7afffb
      Pierre-Jean Texier authored and Stefano Babic's avatar Stefano Babic committed
      This includes the following changes:
      9b2155e Lua: add getroot function
      0ac47ed util: add function to retrieve root device
      829d11e IPC: extend to set accepted versions
      c46a180 Rename structure globals to parms
      7039df5 Restructure swupdate data
      0cfd653 Cleanup: type boolean in general structure
      8b4be00 Type dry_run as bool
      19d94fd Introduce an upper check for version to be installed
      0b34b6a raw handler: fix typo
      0968c76 state: Make save_state() write to STATE_KEY unconditionally
      87ed2e3 server_general: fix call of read_module_setting
      338dc8e Avoid re-opening and reading configuration file
      69f5d5a Lua: export preserve-attributes property
      506ad34 Core: Properly close socket after processing in networking thread
      e4eb7e5 doc: add talk at Liveembedded 2020
      aa91186 Make IPC more robust
      bf414d1 Config parser: Additional logging
      2d6555f Added software select to swupdate.cfg globals
      39483e6 Enable tracing for early start up code
      99e3f79 Simplify get_sw_versions
      063c066 state: Update code comments on persistent state handling
      05ce5c9 state: Optionally disable setting ustate marker
      ee47553 Fix install-if-higher behaviour if version is equal
      b11f494 Fix coverity #316445
      348cc4e Fix coverity #316444
      f6d7216 parser: add hook to partitions
      e1ae537 parser: follow the links
      5069ad4 parser: split find_node function
      6af3c38 editorconfig: added settings for *.cfg files
      e1915f1 bootloader: EBG: update transaction marker handling
      5df09dd bootloader: EBG: env_unset(STATE_KEY) ~ env_set(STATE_KEY, STATE_OK)
      0183fd7 IPC: allow to enable programmatically -o flag
      f77a762 Makefile: Run acceptance tests sequentially
      d525b3d channel_curl: Improve tracking of download progress
      1a22eca raw handler: Allow symlink traversal in blkprotect
      ea19f2f Replace int with enum in check_if_required
      d4a8bfe gservice: add missing dependency
      b1d1cd1 diskpart: fix warning in TRACE
      526e36b Sync update from file with CV
      a7f5568 Added missing copyright for strlcpy function
      6500f1e Add isc license text to Licenses
      f700061 lua: link lua_swupdate library
      4ebaad0 Create output directory for -o option
      91e9fea swupdate-client: use CV for synchronization
      58c5c5d Drop handling of exit status when install from file
      f5fc64b Drop unneeded wrapper save_state_string
      8b70ae5 Drop separate installation path for local file
      f65b3ea Fix warnings in mongoose code
      0fa7f9b Cleanup: drop dead code for Webserver API
      0c5b7d2 mongoose: updated to 6.18
      a18599a README: rework and drop obsolete parts
      08d95fa README: add license badge
      9123cf4 util: Whitespace fixes
      80408e0 util: Fix CID 314958
      a8794bf doc: improve roadmap
      d1494b7 doc: improve description how SWUpdate runs
      a1b8296 Make access to bootloader state exclusive also for GET_UPDATE_STATE
      27d4ad7 Execute subprocess IPC in separate thread
      1829ea7 Progress: set message status in download and progress mode
      0d23f72 Use valid JSON key format when sending progress info message
      70ce28a Add force flag in Makefile when creating symbolic link of shared IPC library
      4ca2f9d Remove unused compiler attributes from bootloader RAM environment implementation
      2aceb66 Type encrypted flag as bool
      Signed-off-by: default avatarPierre-Jean Texier <pierre-jean.texier@lafon.fr>
  6. 18 Feb, 2021 1 commit
  7. 07 Feb, 2021 1 commit
  8. 31 Dec, 2020 1 commit
  9. 28 Dec, 2020 1 commit
  10. 18 Dec, 2020 1 commit
    • Pierre-Jean Texier's avatar
      swupdate: bump to revision d3f207f · 635f4d11
      Pierre-Jean Texier authored and Stefano Babic's avatar Stefano Babic committed
      This includes the following changes:
      d3f207f Fix memory leak after sending progress message with version string
      f476577 handlers/swuforward_handler.c: Correct failing returns
      661b9c6 swuforward-ws.c: Prevent segfault in TEXTRANGE_TO_STR
      0295914 pkcs11: Fix first block decryption
      a776b59 pkcs11: Eliminate additional buffer
      31178ec notifier: fix termination string when console is not used
      9763342 Prepare 2020.11
      Signed-off-by: default avatarPierre-Jean Texier <pierre-jean.texier@lafon.fr>
  11. 15 Dec, 2020 2 commits
  12. 11 Dec, 2020 1 commit
    • Christoph Lauer's avatar
      sign unencrypted sw-description · 21092c20
      Christoph Lauer authored and Stefano Babic's avatar Stefano Babic committed
      If sw-description is encrypted and signed, swupdate verifies the decrypted sw-description file (see core/stream_interface.c in swupdate code).
      So the signature has to be created from the unencrypted sw-description as well.
      Alternatively, the swupdate code needs to be changed to verify the encrypted sw-description.
      Signed-off-by: default avatarChristoph Lauer <christoph.lauer@xtronic.de>
  13. 30 Nov, 2020 1 commit
    • Stefano Babic's avatar
      Fix breakage if encryption is not set · 9995157c
      Stefano Babic authored
      Commit introduces the encryption into the swupdate class, but it breaks
      builds if encryption is not used at all. Fix this and rework function
      to retrieve key from a file.
      Replace os.system() with subprocess.run() - this should be done for other
      occurrencies od os.system() that is declared obsolete.
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
  14. 28 Nov, 2020 1 commit
  15. 26 Nov, 2020 1 commit
  16. 16 Nov, 2020 2 commits
  17. 06 Nov, 2020 1 commit
  18. 30 Oct, 2020 1 commit
  19. 28 Oct, 2020 3 commits
    • Stefano Babic's avatar
      SWUpdate: Bump to version bd2685e · fbbba41c
      Stefano Babic authored
      This includes the following changes:
      bd2685e swupdate-progress: add quiet mode
      71bb096 swupdate-progress: move code for bars in function
      f61d255 handlers: add new handler to check UUID
      985176f Reset progress values after Update is completed
      c942421 hakbit: missing initialization of msg in postupdate
      6bc7475 Use swupdate_download_update in curl connections
      c908117 Replace prbar name in progress thread
      029738e Rework emit download progress
      b369d54 progress API: set define for info field size
      2fd3949 downloader: drop unuseful marker when dwl is started
      0396cab progress: Handle EINTR in progress_ipc_receive()
      a1d9b47 progress: Handle all progress_ipc_receive() error conditions
      0b83e24 doc: add links to SWUpdate related talks, ELC 2020
      37b6c6f doc: update list of handlers
      86098d8 progress_thread: Send VERSION as valid sub-JSON in progress IPC
      8fe30c2 channel_curl: Add CURLOPT_POSTREDIR option
      d930c99 Kconfig: Disable Suricatta on unavailable curl
      1073d12 Kconfig: Unify swuforwarder unavailability messages
      31cff86 Kconfig: Remove unused option
      54ec8e9 Kconfig: Move U-Boot unavailability message to choice
      476490b Suricatta: Fix activation IPC behavior when Hawkbit is not accessible
      9db9458 Drop extra include path for p11-kit
      2f0b1c8 wolfssl: Prepend includes and add options.h
      6dfa291 openssl: Remove stray includes
      aa72c97 tools: swupdate-sendtohawkbit: Fix JSON string for 'details'
      63a8bc7 tools: swupdate-sendtohawkbit: Fix setting IPC message length
      d8a0790 channel_curl: Strip CR in addition to LF from headers
      a89f288 Make curl features independent from SSL implementation
      bdec44a handlers: ubivol: rework size properties
      60c64e8 travis: Use libwebsockets and libgpiod packages
      b8a15ad travis: Update to Ubuntu 20.04 (Focal Fossa)
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
    • Leon Leijssen's avatar
      Trigger swupdate on usb media only · 8090c9bb
      Leon Leijssen authored and Stefano Babic's avatar Stefano Babic committed
      The swupdate usb udev rule was triggering on devices
      which were not connected throug USB.
      Signed-off-by: default avatarLeon Leijssen <leon.leijssen@topic.nl>
      Reviewed-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
    • Sava Jakovljev's avatar
      Specify all licenses for SWUpdate in Yocto recipe · b4ad2077
      Sava Jakovljev authored and Stefano Babic's avatar Stefano Babic committed
      Signed-off-by: default avatarSava Jakovljev <sava.jakovljev@teufel.de>
  20. 20 Oct, 2020 1 commit
  21. 12 Oct, 2020 2 commits
  22. 24 Sep, 2020 2 commits
    • Stefano Babic's avatar
      swupdate: bump to version 7c78773 · 26cc2024
      Stefano Babic authored
      This includes the following changes:
      7c78773 channel_curl: Support for custom headers
      09fd046 channel_curl: Strip newline from received key-unique headers
      413e81f Lua: Improve LuaJIT / Lua 5.1 compatibility
      ee8bf12 scripts: Fix format-overflow compiler warning
      9ed68f2 state: Rename reset_state() to unset_state()
      bcb7c2d cpio header: Add support for newc format
      f8ee098 IPC: Add bounds check for SET_UPDATE_STATE IPC call
      3fb504c doc: handlers: Describe property decompressed-size
      8e6187f handlers: ubivol: add property decompressed-size
      33ed601 encrypted images: Test other key lengths
      907315b doc: encrypted images: Using different key lenghts
      4ea0899 encrypted images: Implement other key lengths in providers
      cfb2917 encrypted images: Accept other AES key lengths
      aed6e94 doc: encrypted images: Add a PKCS#11 section
      1b56d69 doc: Add note on the PKCS#11 libraries
      30f81ef pkcs11: Differentiate key handling based on config
      3bb2c19 Kbuild: Add PKCS11 option
      7d961aa pkcs11: Implement based on wolfSSL and p11-kit
      816cec1 sslapi: Add wolfSSL compatibility macro
      b214f6a mongoose: Hide deprecated function for wolfSSL
      ba8c4a8 Makefile.flags: Add missing wolfSSL definitions
      d2491dd sslapi: Add X509 related wolfSSL definitions
      6f9a761 sslapi: Move CMS-only functions to conditional
      fa1ba52 Rename wolfSSL incompatible definition
      7fe9b4a Kbuild: Add wolfSSL as SSL implementation
      0f03c06 channel_curl: Introduce support for PATCH method
      16e10c4 channel_curl: Make setting channel operation method symmetric
      61d5e28 channel_curl: Rename to channel_callback_ipc()
      372f9c0 channel_curl: Pass through dry_run flag
      daa98b7 suricatta: Adapt to CHANNEL_PARSE_NONE
      0e54840 channel_curl: Make CHANNEL_PARSE_RAW actually "parse"
      c5b7b53 channel_curl: Consolidate effective URL logging
      440f0af channel_curl: get_file: use log function
      330d053 channel_curl: put: use log function, respect nocheckanswer
      3075c60 channel_curl: post: use log & buffer functions, respect nocheckanswer
      795b0ea channel_curl: Factor out channel reply log handling
      5465058 channel_curl: Factor out channel reply buffer handling
      39f0827 channel_curl: Consolidate curl verbose setting
      eede9a3 channel_curl: Make setting request_body symmetric
      e6c98b4 bootloader: remove cruft
      eb1f7d8 rsa_verify_mbedtls: Support RSA PSS
      fa9d27c hawkBit: Fix spelling of hawkBit
      d46655b core: Refactor config file reading to fail early
      9e0bcaa encrypted images: Prevent premature decryption end
      8c43208 doc: Update SWUpdate's understood command line parameters
      5987e62 doc: Fix typo in suricatta's general HTTP server description
      b9cceb8 examples: Update configuration file example
      744def0 encrypted images: fix one block sized image decryption
      a464d8d Make logcolors optional in configuration file
      a5e2e5c diskpart: do not write to disk if partitions do not change
      036e858 Replace WARN with ERROR if save_state fails
      bc47fdd parser: add result of version check in TRACE
      602ab84 doc: encrypted images: Add note on ivt attribute
      347ab28 doc: Mention general HTTP server in suricatta's introduction
      1b68a3b doc: Fix sphinx warning about unterminated bullet list
      5507fec Configure colors for stdout / stderr
      185ec65 lua: BUG in LuaStackDump causes SEGV
      d39dd41 Move artifact version check to inner parsing loop
      7e88bfb diskpart: fix crash in case if GPT
      21136eb Save Update State after each update
      3cd4e82 Make save_state available to coprocesses
      5af74e1 Start network threads before processes
      25ba0a9 Fix progress info message so it can be embedded in a JSON doc
      0297485 doc: extend example for diskpart
      b968508 Fix typo in update status report
      a4f06c3 doc: add ELC 2020 talks with SWUpdate
      9b8b498 diskpart: fix adding more as 4 partitions
      019edd7 examples: client: add port as argument for swupdate-client.py
      e41004b handlers: ubivol: add property always-remove
      1f4189c Regression: allow SW version comparisons as strings
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
    • Stefano Babic's avatar
      Use image-artifact-names · ffa0420a
      Stefano Babic authored
      OE-core has moved IMAGE_ variables to a separate class, and they are not
      found without image-artifact-names class.
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      Reported-by: default avatarParthiban Nallathambi <parthiban@linumiz.com>
      Tested-by: default avatarParthiban Nallathambi <parthiban@linumiz.com>
  23. 11 Aug, 2020 1 commit
  24. 07 Aug, 2020 2 commits
  25. 13 Jul, 2020 1 commit
    • Stefano Babic's avatar
      Bump to version 609ad51 · e3606b2a
      Stefano Babic authored
      This includes the following changes:
      609ad51 swupdate-progress: Terminate bar array string
      9aa4bbe lua: Prevent mtdname and path from clobbering each other
      57f64a9 core/artifacts_version: Don't concat version
      b060243 core/artifacts_version: Fix infinite loop in is_oldstyle_version()
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
  26. 12 Jul, 2020 1 commit
  27. 09 Jul, 2020 1 commit
    • Stefano Babic's avatar
      mtd-utils: fix build on dunfell · 3f4d8d7b
      Stefano Babic authored
      Commit ece400ed
       interacts with changes in poky, dunfell due to a
      backport patch for mtd-utils. Instead of updating the version, just take
      the commits from mtd-utils master branch that are needed by SWUpdate.
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      CC: Richard Allen <richard_allen@keysight.com>
      CC: Bastian Germann <bage@linutronix.de>
      CC: Guy Morand <guy@guy-morand.ch>
  28. 08 Jul, 2020 2 commits
    • Joshua Watt's avatar
      swupdate-lualoader: Add recipe · 559b12c8
      Joshua Watt authored and Stefano Babic's avatar Stefano Babic committed
      Adds a recipe for a simple swudpate_handlers.lua script that loads lua
      files from a directory. This allows other recipes to drop lua handler
      scripts in the specified location and swupdate will find them instead of
      having to explicitly list all the files to be loaded in a custom
      swupdate_handlers.lua script.
      Signed-off-by: default avatarJoshua Watt <JPEWhacker@gmail.com>
      Reviewed-by: Stefano Babic's avatarstefano Babic <sbabic@denx.de>
    • Joshua Watt's avatar
      swupdate: Build out-of-tree · 035538a1
      Joshua Watt authored and Stefano Babic's avatar Stefano Babic committed
      Configure the recipe to build swupdate out-of-tree. This is extra
      helpful when building with externalsrc or devtool. A bug fix in swupdate
      is required for out-of-tree builds to work, so it is currently only
      enabled for the git version, and the fix has been brought in there.
      Signed-off-by: default avatarJoshua Watt <JPEWhacker@gmail.com>
  29. 07 Jul, 2020 2 commits
  30. 22 Jun, 2020 1 commit
  31. 08 Jun, 2020 1 commit
    • Joris Offouga's avatar
      swupdate: bump to version 4ad398c · dff42d41
      Joris Offouga authored and Stefano Babic's avatar Stefano Babic committed
      This includes the following changes:
      4ad398c Add option to disable cpio CRC check
      be8f129 Makefile: fix the tests target
      a11c349 acceptance-tests: signatures work only with CMS
      4b38d2d acceptance-tests: libconfig and raw config
      e2fd804 Bump size of ivt_ascii field to 33 bytes to include zero-terminator
      9983cce ascii_to_bin: rework interface to accept destination length
      e7400c5 ascii_to_bin: rename arguments to clarify function
      8a11494 _progress_ipc_connect: in case of reconnect option disabled return error instead of exit
      d789039 signature: ifdef for mbedtls public key operations
      589d3c9 Move swupdate_dgst_init to the right place
      13e4f3e configs: remove debian_defconfig
      1af7b70 doc: fix wrong rendering of command line parms
      d406578 tools: fix coverity #292171 in swupdate-progress
      40093b0 suricatta: drop dead code
      b8015d4 swupdate-progress: fix psplash_fifo_dir
      81f5378 chmod a-x on jpg and png files of the website
      19ed53a Set 2020.04 as version in documentation
      1ef1e2d Consolidate variable naming for the dry run option
      Signed-off-by: default avatarJoris Offouga <offougajoris@gmail.com>