1. 22 Dec, 2021 1 commit
  2. 21 Dec, 2021 2 commits
    • Stefano Babic's avatar
      Bump to version 260a3a7 · 15a98792
      Stefano Babic authored
      
      
      This includes the following changes:
      
      260a3a7 util: getroot to return resolved root device path
      3a26a20 Lua: getroot: Return resolved root device path
      79cf0a0 util: get_root mountinfo symlink / container FS support
      47e65c6 util: Factor out get_root_containerized_fs()
      1270e64 server_hawkbit: fix channel deallocation leaks
      ee7c238 server_hawkbit: fix NULL dereference
      6388580 server_general: fix channel deallocation leaks
      8dcf753 server_general: fix NULL dereference
      1390e9d swupdate -i: remove cleanup_files call in main()
      fdf9921 write_notify_msg: silence status client disappearing messages
      da6eecf network_ipc: update swupdate_async_thread to use notify
      8685713 ipc_notify_connect: fix return 0 when message was not acked
      85b2842 ipc_notify_receive: add timeout_ms argument
      5cad56b doc: add documentation for archive handler
      db7fc69 Lua: fix getroot function's type detection
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      15a98792
    • Stefano Babic's avatar
      swupdate-image: use image link name and autodetect FSTYPE · f5fda9ec
      Stefano Babic authored
      
      
      Use IMAGE_LINK_NAME instead of IMAGE_BASENAME, but letting users to set
      SWUPDATE_IMAGE_FSTYPES[$IMAGE_BASE_NAME] as usual.
      
      Try to detect the extension for the image in case it is not seti by
      iterating IMAGE_FSTYPES.
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      CC: Adrian Freihofer <adrian.freihofer@gmail.com>
      f5fda9ec
  3. 10 Dec, 2021 1 commit
  4. 08 Dec, 2021 3 commits
  5. 23 Nov, 2021 2 commits
    • Jyothi's avatar
      Improve signcmd for CUSTOM signing in swupdate-common class · 6fd0f4cd
      Jyothi authored and Stefano Babic's avatar Stefano Babic committed
      
      Signed-off-by: default avatarJyothi <jyothik41rao@gmail.com>
      6fd0f4cd
    • Pierre-Jean Texier's avatar
      swupdate: bump to revision 95eef1d · 5ebed459
      Pierre-Jean Texier authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      95eef1d configs: resynced with current TOT
      0b5defe Updated roadmap
      6088e6f CI: fix build with delta update
      ec72195 all_handlers_defconfig: add delta and unique
      8a9b306 delta: add the option to limit size for source
      456224a doc: drop delta update from roadmap
      618c674 doc: add documentation for delta handler
      1a3e06d delta: add handler for delta update
      d4267e5 Introduce own version of zckRange from zchunk
      efcabf7 Start chunks downloader if delta is enabled
      1143e95 example: userid and groupid in case of downloader
      847ed64 tools: fix warning due to new SOURCE type
      9d7cd24 delta: add process to download chunks
      8b4f4dc server_general: fix warnings
      6688c8f Be sure to initialize channel_data_t by users
      9813d29 channel_curl: store HTTP return code before callbacks
      b812f07 channel_curl: do not check download size if range requested
      a6d616e channel_curl: add the possibility to request a range
      90ebf6c channel_curl: pass channel pointer to internal callbacks
      97ebec2 channel_curl: add optional pointer for callbacks
      d724643 channel_curl: allow an external callback for headers
      2cd9929 channel_curl: pass channel_data to headers callback
      f1b0ae8 curl: add a noipc parameter
      fc1ac40 curl: change signature of write data callback
      f6559a6 channel_curl: do not automatically add charset header
      d91aecb channel_curl: fix wrong usage of pointer in assert
      85e5543 channel_curl: statify entry points functions
      2564510 Convert multiparser to SWUpdate codestyle
      db8ba16 Check return from malloc in multiparser library
      343caf8 Fix warning in multipart code
      8a37494 Import small multipart library
      b17a835 Introduce copybuffer to copy from memory
      8b11ba5 Hide copyfile() implementation to add more input
      db6d82f util: add function to convert string to lowercase
      03e96a9 util: add safe version for realloc()
      2898503 Add utility function to detect filesystem
      b0a07e8 Handlers: sort list of handlers in menuconfig
      df88b7c Doc for delta update
      f83a788 swupdate-ipc: remove unused readline headers
      5acf057 archive_handler: fix archive_locale memory leak
      38372f3 network_thread: ensure ipcmsg is initialised
      bd145c8 notifier: ensure notifymsg is initialised
      f498d63 CI: run jobs in parallel on Gitlab
      c110691 CI: add missing dependency for efibootguard
      972ef5e Fix deadlock from calling exit() in signal handler
      4415db1 Fix lua progress reports
      b030a50 mongoose: convert notify level to RFC 5424
      449f2a3 Fix warnings when JSON is disabled
      a4664e6 test: Fix cross compilation issue
      2a6f607 diskpart: fix crash when diskpart format is not set
      0935263 gitignore: add tools/swupdate-ipc and clean up
      0831a41 doc: add missing doc for rawcopy handler
      3999bb6 swupdate-ipc: set socketpath for multiple instances
      0dfd359 tools: fix dependency to rebuild
      4ab993c Drop tools replaced by swupdate-ipc
      eaa8c4d Add man page for new swupdate-ipc tool
      1fe27b9 swupdate-ipc: just one tool for IPC
      9e13a09 CI: add REUSE check
      Signed-off-by: default avatarPierre-Jean Texier <pierre-jean.texier@lafon.fr>
      5ebed459
  6. 22 Nov, 2021 2 commits
  7. 21 Nov, 2021 2 commits
    • Adrian Freihofer's avatar
      swupdate-image: use image link name · 557b1b55
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      
      
      Use IMAGE_LINK_NAME instead of IMAGE_BASENAME. IMAGE_BASENAME contains a
      timestamp which causes some sporadic build failures. The problem is that
      if the image files have been built by a previous bitbake call and bitbake
      skips the task to build them again swupdate fails with searching for images
      with the timestamp of the current build job in the file name. The link
      refers to the latest available build in any case.
      
      Setting S to WORKDIR should not be needed. It's the default from
      bitbake.conf.
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
      557b1b55
    • Adrian Freihofer's avatar
      swupdate-common: improve signing · b733bcf6
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      
      
      Improve signing implementation and related task dependencies.
      
      Replace os.system with subprocess.run. os.system does not show any helpful
      error messages and therefore signing simply fails. Since os.system was
      replaced by the more verbose subprocess.run, several interesting error
      patterns occurred. Especially when running more complex build flows with
      rm_work active the signing step failed sometimes.
      
      subprocess.run exceptions showed different errors:
      - openssl binary not found: Fixed dependencies
      - openssl fails because the "-passin file:'%s' " parameter is invalid.
        With the list based syntax of subprocess.run this gets fixed without '
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
      b733bcf6
  8. 08 Nov, 2021 1 commit
  9. 01 Nov, 2021 1 commit
    • Pierre-Jean Texier's avatar
      swupdate: bump to revision 235b16e · d4610830
      Pierre-Jean Texier authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      235b16e README: use badge from Gitlab pipeline
      7407c82 ucfw: drop support for old libgpiod
      c36e703 Add .gitignore and .flake8 to example client
      26cdd7f Update license identifiers in example client
      a8cbfbd diskpart: fix context memory leak in hybrid mode
      18f69e4 suricatta: separate ipc into separate thread
      8a01261 channel_curl: add separate error codes for SSL
      b137cb9 doc: add description for hawkBit server status
      a61b0e6 gitignore: add tools/swupdate-gethawkbitstatus
      bc317f4 tools: add trigger to swupdate-hawkbitcfg
      ec39522 tools: add swupdate-gethawkbitstatus
      6f28f69 suricatta: add basic status request
      5558bbd util: add optional swupdate_time_iso8601 param
      5502546 Add Pipfile and README.md
      e1a43e8 Improve example client
      b367c0b Rename swupdate-client.py to swupdate_client.py
      8f3371c channel_curl: keep retrying file download after connection lost
      146726e Fix memory leak in boot handler
      2a5b2a8 doc: specify valid version range in sw-description.rst
      de64a76 compare_versions: remove useless else statement
      637a1eb archive_handler: fail update on more archive errors
      Signed-off-by: default avatarPierre-Jean Texier <texier.pj2@gmail.com>
      d4610830
  10. 20 Oct, 2021 1 commit
  11. 19 Oct, 2021 1 commit
    • Stefano Babic's avatar
      swupdate: bump to revision e1df95fa · d207ce12
      Stefano Babic authored
      
      
      This includes the following changes:
      
      e1df95fa compare_versions: make is_oldstyle_version fail when number > 65535
      8ca165e1 cosmetic: align help output in suricatta
      25f1f120 Utility: detect and return root device
      af1addbf cosmetic: sort entries in getopt list
      127b23b3 doc: add SPDX to documentation files
      e5f5b788 REUSE: add .reuse/dep5 for files without SPDX
      c1cc2804 REUSE: drop not used BSD-2-Clause license
      1b41348e REUSE: add OFL-1.1 license
      c356dec2 LICENSES: update list of licenses
      056cde2f doc: explain versioning schemas in SWUpdate
      cc9b6218 doc: add missing documentation for Webserver parms
      50747d0f doc: drop obsolete reference to legacy web application
      0053dee2 doc: fix sphinx warnings due to wrong indentation
      4c0025c8 README: show REUSE badge
      057d6337 mtd: fix flash_erase_sector
      bcc6f7d9 channel_curl: Remove leftover comment after 859be4a
      b47f94d3 (denx/master) CI: add missing dependency libpci-dev
      6f952493 doc: add CIP talk about SWUpdate
      0d349bcf diskpart: ensure expected filesystems are present/created
      f4b149db Doc: Update building with Yocto
      60514a1f channel_curl: Add maximum download speed limit
      97d37105 mke2fs/ext2fs: remove check for casefold and encrypt
      c1a18b74 diskpart: ensure diskpart format is enabled if fstype is set
      37163fff IPC: add status streaming support
      859be4a8 channel_curl: Add ability to define a set of custom HTTP headers
      25a21e30 doc encrypted_images: remove generating keys from password
      4de12481 doc swupdate.rst: clarify execution order for scripts
      2beab61f Lua: Replace lightuserdata to fix LuaJIT on aarch64 with 48bit VA
      c7860675 channel_curl: Let curl use default system cacert bundle path
      68867fb7 Replace CONFIG_DISABLE_CPIO_CRC with dynamic check
      8bb47ef6 Simplify footprint for get_cpiohdr
      0b93eb40 diskpart: resolve symlinks for fdisk_assign_device
      fa4a27a2 doc: Fix documentation for nolock/noinuse to match implementation.
      c96ccf9f Create and destroy scripts/datadst temp folders on install.
      07d30be7 flash: allow to erase just a part of device
      f0170ea6 mtd: add flash_erase_sector
      d04c986c Make usage of strtobool function
      24017b88 doc: describe usage of swupdate-image class in OE
      a2487795 diskpart: fix computed partname when device is a symlink
      8b4bb8e3 boot_handler: Check for copyimage() failure
      7124297d Remove travis integration
      b44e1ede Progress: fix socket send return error check
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      d207ce12
  12. 30 Sep, 2021 1 commit
  13. 22 Sep, 2021 2 commits
  14. 15 Sep, 2021 1 commit
  15. 06 Sep, 2021 1 commit
  16. 26 Aug, 2021 1 commit
    • Stefano Babic's avatar
      Create a class to generate SWU from image · 52911419
      Stefano Babic authored
      
      
      It is currently required a separate recipe to build the SWU from an
      image. This is very flexible but it appears overkilling in use cases
      where the only artifact is the rootfs. Create a separate class that can
      be inherited replacing swupdate.bbclass and that build a SWU from an
      image recipe.
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      52911419
  17. 25 Aug, 2021 7 commits
  18. 23 Aug, 2021 1 commit
  19. 15 Aug, 2021 1 commit
    • Pierre-Jean Texier's avatar
      swupdate: bump to revision eef1767 · abc520d9
      Pierre-Jean Texier authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      eef1767 Kconfig: use DISKFORMAT as flag
      b6b7d82 diskpart: add a force mode to write table
      0dc9ba7 util: add strtobool() function
      873d672 doc: handlers: add diskformat handler description
      51ed672 handlers: add diskformat handler
      8944ae9 network_thread: log expected IPC bytes
      63515ba suricatta: Fix command line argument size allocation
      25c9c42 tools: Fix some dead assignments
      8d4b99f utils: Fix string_split() formatting
      8adc9b5 mongoose: not block the sender if update is ended
      c9e7753 util: Use a proper cast in the error message
      508b824 util: Use %llu for printing 'long long unsigned int'
      Signed-off-by: default avatarPierre-Jean Texier <texier.pj2@gmail.com>
      abc520d9
  20. 11 Aug, 2021 1 commit
  21. 05 Aug, 2021 1 commit
  22. 28 Jul, 2021 1 commit
    • Stefano Babic's avatar
      Bump to version b9ca32e · 128364c3
      Stefano Babic authored
      
      
      This includes the following changes:
      
      b9ca32e raw_handler: Check for openfileoutput() failure
      44f111b boot_handler: Check for openfileoutput() failure
      aff5234 stream_interface: Close the file descriptor on failure
      2c32873 (origin/master, origin/HEAD) mongoose: Ignore PROGRESS messages
      a099046 mongoose: Escape JSON strings
      c90742c diskpart: lock the device before writing the disklabel
      161dfd2 handlers: set rawcopy as script handler
      eb8657f pkcs11: Reuse one session for all operations
      de80779 Improve error handling around archive_read_next_header
      a73fe5d Lua: Ignore EROFS errors in lua umount.
      2ffc29d Kconfig: Add HAVE_LINUX dependency to MTD support
      61e5f71 Fix coverity #331313
      77a0e81 Fix coverity #331311
      a649e7f diskpart: improve partition diff logging
      84ccd66 Kconfig: Add HAVE_LIBSYSTEMD
      fdb27d3 Kconfig: Add HAVE_LIBEXT2FS
      ce653dc Kconfig: Add HAVE_LIBRSYNC
      e9c3bfb  Fix coverity #314955
      c3392fb  Fix coverity #292113
      9135330 ucfw handler: check return code from parsing GPIO
      53844d1 building-with-yocto.rst: Extend documentation of automatic versions
      6f3ed64 Fix coverity #332451
      9bc6446 Fix coverity #332450
      d031f2d diskpart: fix createtable memory leak
      055d418 CI: add coverity tool to gitlab runner
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      128364c3
  23. 23 Jul, 2021 2 commits
  24. 01 Jul, 2021 2 commits
  25. 25 Jun, 2021 1 commit
    • Pierre-Jean Texier's avatar
      swupdate: bump to revision 2d98b2c · a233ac5c
      Pierre-Jean Texier authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      2d98b2c correct missing goto in swuforward_handler causing curl failure to be overwritten as successful
      301dc57 read_lines_notify: fix segfault if a program prints a line starting with \0
      371d693 Add support for setting hybrid dos partition entries.
      ae6ef03 suricatta: wrong exit from server.send_target_data
      3914d2b util: Extend get_root to find LUKS devices
      388f177 util: Add get_root source /proc/self/mountinfo
      043bdeb building-with-yocto.rst: fix whitespace errors
      1f3c9d2 building-with-yocto.rst: Document automatic versions
      ca01568 doc: improve 'best practise' spelling and wording
      8e4c326 Add optional CMS single signer verification
      c4ff683 diskpart: refactor partition table comparison into separate function
      06080d8 diskpart: refactor partition table fill into separate function
      e43cb24 doc: add hints and best practise
      4687f1e diskpart: fix bug in partition comparision of autogenerated sizes
      1cd84eb REUSE: add SPDX to files in examples
      be654c7 diskpart: check fdisk_create_disklabel return
      aae966c diskpart: disable fdisk dialog driven partitioning
      3c70984 diskpart: format filesystem only if partition table is changed
      531d4ca BUG: buffer overflow with semantic version > 50
      a040310 gitlab-ci: Add REUSE header
      b6c0adb Remove unused OpenSSL exception
      ef373fc doc: Add CC0-1.0 to license overview
      e42c1b1 doc: Correct GPL-2 references in license overview
      b7908c7 configs: Add HASH_VERIFY to no_ssl_defconfig
      2643d78 ci: Run all tests
      1439351 Correct tpyos found by Lintian
      3612a85 Correct SWUpdate Logo license
      Signed-off-by: default avatarPierre-Jean Texier <texier.pj2@gmail.com>
      a233ac5c