1. 12 Oct, 2020 2 commits
  2. 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>
      26cc2024
    • 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>
      ffa0420a
  3. 11 Aug, 2020 1 commit
  4. 07 Aug, 2020 2 commits
    • Zheng Ruoqin's avatar
      mtd-utils: Remove patchs · 1886350d
      Zheng Ruoqin authored and Stefano Babic's avatar Stefano Babic committed
      files/0001-libubigen-remove-unnecessary-include.patch
      files/0002-libubi-remove-private-kernel-header-from-includes.patch
      Removed since these are included in 2.1.2.
      
      Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>/
      1886350d
    • Joshua Watt's avatar
      swupdate: Set build flags · f1178606
      Joshua Watt authored and Stefano Babic's avatar Stefano Babic committed
      
      
      Sets the recipe build flags in the default configuration file. This
      ensures that swupdate is correctly compiled with the flags that are set
      by build, for example ensuring that debug symbols are present.
      Signed-off-by: default avatarJoshua Watt <JPEWhacker@gmail.com>
      f1178606
  5. 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>
      e3606b2a
  6. 12 Jul, 2020 1 commit
  7. 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>
      3f4d8d7b
  8. 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>
      559b12c8
    • 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>
      035538a1
  9. 07 Jul, 2020 2 commits
  10. 22 Jun, 2020 1 commit
  11. 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>
      dff42d41
  12. 01 Jun, 2020 1 commit
  13. 08 May, 2020 3 commits
  14. 24 Apr, 2020 1 commit
  15. 14 Apr, 2020 1 commit
    • Stefano Babic's avatar
      swupdate: bump to version 088b65d · 68673ce3
      Stefano Babic authored
      
      
      This includes the following changes:
      
      088b65d test: make requirement for gawk explicit
      f2719f4 README: add link to list of features
      9a65443 hawkbit: process_notification_thread shall check data_avail before status
      064f5a7 Fix coverity #292124
      ae32ad7 Fix coverity #292113
      0938c8b Fix coverity #292117
      fe7c90d Travis for coverity
      587c631 core: Fix CID 292204 copyfile() out parameter check
      ddc9479 core: Fix CID 292180 save_stream() check read error
      46f4700 suricatta: Fix CID 292131 constant dead code guard
      bb6ec4b core: Fix CID 292129 save_stream() fd leak
      6c8a4dc ipc: Fix trailing whitespace in network_ipc.c
      a0ba1d7 ipc: Fix CID 292125 network_ipc prepare_ipc()
      171c675 core: Fix CID 292110 cpio_utils extract_sw_description()
      b21a5ae Fix coverity #292168
      d777853 Fix coverity #292154
      79e6c2c Fix coverity #292118
      a53445f handlers: swuforward: Fix CID 292163 and 292165
      e0e1376 diskpart: fix coverity #292144
      bc4a149 core: Fix whitespace issues in network_thread.c
      6491901 core: Fix CID 292193 argument cannot be negative
      6dd7c5f mongoose: Fix CID 292194 logically dead code
      c223d7c core: Fix CID 292152 bad shift operation
      e8e15dd doc: improve link with reference documentation
      b27b139 Replace strncpy() with strlcpy()
      f628881 Fix coverity #292212
      ca00d83 Introduce strlcpy() as string copy replacement
      89b3d7a Fix coverity #292111 in swupdate-sysrestart
      aa71c29 Fix double free when splitargs is called
      5d4f42a Do not raise ERROR if MTD is not present
      9c41b06 Fix resource leak #292188 in flash_handler
      60fe9ea Fix resource leak in extract_scripts
      b66ad34 mtd-interface: replace LIST_FOREACH with LIST_FOREACH_SAFE
      855947e parser: replace LIST_FOREACH with LIST_FOREACH_SAFE
      b1adbb2 diskpart: replace LIST_FOREACH with LIST_FOREACH_SAFE
      3f2221f (tag: 2020.04-rc1) Prepare 2020.04-rc1
      e757cbc BUG: all images runs in streaming mode
      548ed79 IPC: do not overwrite message type
      e44925d tools: explicit send destination for IPC command
      2441933 Permit a per artefact IV to decrypt
      aa97f75 IPC: extend to set AES key
      f01e637 util: export function to set AES key
      fe0ef95 util: export ascii_to_bin funtion
      ffd30f1 util: just move static function at the beginning
      f9aeae2 Drop "confirm" from configuration file
      affe2c9 hawkbit: configure if to use token when getting file
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      68673ce3
  16. 26 Mar, 2020 1 commit
  17. 23 Mar, 2020 2 commits
    • Khem Raj's avatar
      initscripts-swupdate-usb: Mark init with update alternatives · 98650aca
      Khem Raj authored and Stefano Babic's avatar Stefano Babic committed
      
      
      When using busybox init as main image's init system, postinsts for
      busybox fails in swupdate-image because it tries to create link for
      /sbin/init but it cant't because /sbin/init is already created by this
      recipe but is not marked update alternative and build fails obscurely
      
      ERROR: swupdate-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
      then please place them into pkg_postinst_ontarget_${PN} ().
      Deferring to first boot via 'exit 1' is no longer supported.
      
      but the real error is inside log.do_rootfs
      
      pdate-alternatives: Error: not linking /mnt/b/yoe/build/tmp/work/raspberrypi4_64-yoe-linux-musl/swupdate-image/1.0-r0/rootfs/sbin/init to /bin/busybox.nosuid since /mnt/b/yoe/build/tmp/work/raspberrypi4_64-yoe-linux-musl/swupdate-image/1.0-r0/rootfs/sbin/init exists and is not a link
      Signed-off-by: default avatarKhem Raj <raj.khem@gmail.com>
      Acked-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      98650aca
    • Heiko Schocher's avatar
      swupdate.inc: drop UBOOT_NEWAPI · fc13404b
      Heiko Schocher authored and Stefano Babic's avatar Stefano Babic committed
      
      
      commit: 82a157e35e90 ("bootloader: drop suppport for legacy U-Boot tools")
      
      removed UBOOT_NEWAPI. Remove this also in swupdate.inc.
      Signed-off-by: Heiko Schocher's avatarHeiko Schocher <hs@denx.de>
      fc13404b
  18. 18 Mar, 2020 4 commits
  19. 17 Mar, 2020 1 commit
    • Pierre-Jean Texier' via swupdate's avatar
      swupdate: bump to revision f735ee7 · 7f7ebbc7
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      f735ee7 test: fix hawkbit test case
      8963660 Use SSL conditionally in general suricatta variant
      cfae014 Select CHANNEL_CURL_SSL with SURICATTA_SSL
      ea50cc6 hawkbit: send log of the update to the server
      6896f25 Factorize snescape function
      43471fc IPC: add get_status_timeout
      8fb94d7 Intercepts the output of shell scripts
      c981949 Factorize calls of system()
      aa6ff03 Rename token field in curl structure
      c3450e2 hawkbit: free not called by setting token
      a732367 Fix SIGALG_RSAPSS with mbed TLS
      a4ebb98 Use SSL provider for mongoose
      c20be59 Do not traces messages for progress interface
      2c1c8b8 tools: swupdate-hawkbitcfg: print returned IPC message
      a19e03d tools: swupdate-hawkbitcfg: set IPC message length
      4110532 stream_interface: Keep reading the cpio padding
      d465647 Move fixed option into core directory
      119173d swupdate-progress: fix warning
      cbf02f8 Support systems without locale in toolchain
      ab4994c doc: Add command line arguments for suricatta and downloader.
      9a64781 suricatta: added option to bind to interface/IP address.
      86f273c swupdate-progress: allow to call a script after an update
      857cde1 examples: add enable attribute to suricatta section
      68026ae suricatta: add enable / disable at startup
      4cf3d1e server_hawkbit: do not raise error in case of unrecognized option
      afac0f0 server_general: do not raise error in case of unrecognized option
      f66b259 Remove warning in swupdate-sysrestart
      2dd2200 parser: value for bootloader reused
      9c4044f util: Fix memory leak
      3e1f167 doc: Remove special handling of "data" volume
      87d04b9 handlers: ubivol: Special handling for zero sized volumes
      792a4af swupdate: run pre-update command hook earlier
      af717f0 Makefile: Fix out of tree build for tools
      0dac45d swupdate-sysrestart: Fix potential buffer overflow
      abdd651 util: Add missing includes
      f884f11 diskpart_handler: Fix printf format warnings
      b00d2eb suricatta: Add missing includes
      a8dd938 rsa_verify_mbedtls: Add missing includes
      bdbcb75 IPC: Add missing includes
      74a3134 swupdate: Fix printf format warning
      f8a49af parser: Fix printf format warnings
      88e6c3e Makefile: Fix out of tree build for documentation
      0a43820 Do not hardcode install path
      edaa956 doc: document IPC to suricatta daemon
      8ca8e77 tools: enhance swupdate-hawkbitcfg
      e705a76 suricatta: add IPC copmmand to enable / disable
      06162a1 suricatta: factorize server_tokenize_msg
      5d5a371 hawkbit: rename server_set_polling_interval
      28984ab Factorize IPC to suricatta
      b99481d Send version string to progress interface
      4383dec travis: add libfdisk for disk handler
      27f2c96 configs: add config to build all handlers
      237d5a4 Add disk partitioner handler
      d00f462 parser: relax partition check
      f1c9d26 handlers: trim Config.in trailing whitespace
      84c19b8 doc: handlers: trim trailing whitespaces
      56b2f1b doc: handlers: add readback handler documentation
      5428017 handlers: add readback handler
      e155f2b Updated defconfigs
      82a157e bootloader: drop suppport for legacy U-Boot tools
      b0bbbbe webserver: do not flood with ERROR when IPC ic closed
      16f44d8 Run all partition's handlers in case of streaming
      3445052 swupdate_file_setnonblock: simply returns from fcntl
      08e755d ssbl handler: removed testcode used for development
      8b20916 doc: build swupdate-sysrestart man page
      a668db5 test: temporary disable some tests for Hawkbit
      e261300 Drop target suricatta-tests
      3e6c378 test: fix suricatta-tests and move them to tests
      d1336c3 lua: pass parameter string to lua scripts
      da851ce doc: document language bindings
      8a42ef5 Bindings: Implement control socket binding for Lua
      01f0b52 IPC: factor out pthread-based methods
      7f4e63f travis: set libgpiod version
      cfe8fea server_general: fix polldelay option
      88b85c3 Webserver: drop multiplication factor for monitoring
      98b0ee9 Webserver: write to IPC in non blocking mode
      2be647d util: global function to set non blocking mode
      f104511 mongoose: set receive limit to 256KB
      033ce81 mongoose: SPDX and GPLv2 license
      aa35322 Fix warnings in mongoose code
      c99c796 Updated mongoose to 6.16
      9b2a236 doc: fix build of man pages
      5de3bc3 Prepare 2019.11
      9fe934b examples: add timeout to Webserver setup
      6d8179a doc: new roadmap after 2019.11
      503993c doc: update swupdate-sendtohawkbit.{cfg -> rst}
      4ab9d7b Webserver: drop help for API
      37089b0 Webserver: monitor and check for lost connection
      eff52c0 Protect define of ARRAY_SIZE
      cd4439f webserver: drop dead code for V1
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
      7f7ebbc7
  20. 06 Feb, 2020 1 commit
  21. 02 Feb, 2020 3 commits
  22. 07 Jan, 2020 2 commits
  23. 16 Dec, 2019 2 commits
  24. 14 Dec, 2019 1 commit
    • Stefano Babic's avatar
      Check for fetched URLs before adding to SWU · c6634ee0
      Stefano Babic authored
      
      
      There are cases where the fetched URLs are retrieved from a repo. Files
      cannot be copied as they are and must be evaluated in the recipe. IOne
      use case is if the sw-description is fetched from a git repo instead of
      beeing stored on a local file. The check vrifies that the fetched URL is
      a file before copying it.
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
      c6634ee0
  25. 02 Dec, 2019 1 commit