1. 24 Apr, 2020 1 commit
  2. 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>
  3. 26 Mar, 2020 1 commit
  4. 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>
    • 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>
  5. 18 Mar, 2020 4 commits
  6. 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>
  7. 06 Feb, 2020 1 commit
  8. 02 Feb, 2020 3 commits
  9. 07 Jan, 2020 2 commits
  10. 16 Dec, 2019 2 commits
  11. 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>
  12. 02 Dec, 2019 2 commits
  13. 18 Nov, 2019 1 commit
  14. 16 Nov, 2019 1 commit
  15. 15 Nov, 2019 2 commits
  16. 10 Nov, 2019 3 commits
    • Reto Schneider's avatar
      Remove multiple after keywords · 99152530
      Reto Schneider authored and Stefano Babic's avatar Stefano Babic committed
      This fixes the follwing warning:
       addtask contained multiple 'after' keywords, only one is supported
      Signed-off-by: default avatarReto Schneider <reto.schneider@husqvarnagroup.com>
    • Adrian Freihofer's avatar
      swupdate: simplify find images added to swu · b6534bbc
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      Try to make the swupdate.bbclass a little bit smarter in finding the
      image files added to the swu archive. The implementation is also a bit
      more Yocto like. By default, files are searched automatically whereas
      MACHINE specific files get priority over files without the MACHINE in
      the filename.
      This makes the SWUPDATE_IMAGES_NOAPPEND_MACHINE VarFlag more optional.
      Most standard use cases are expected to "just work" without setting
      this flag.
      Add support for files in a sub-folder of DEPLOY_DIR_IMAGE.
      Add documentation to the header of the swupdate.bbclass file.
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
    • Stefano Babic's avatar
      swupdate: improve systemd config · 135d46bc
      Stefano Babic authored
      For most projects starting swupdate requires some logic implemented
      in shell scripts. Therefore swupdate is now started by a shell script
      if systemd is enabled in DISTRO_FEATURES.
      The new swupdate startup script sources code snippets located in
      /usr/lib/swupdate/conf.d and in /etc/swupdate/conf.d. The snippets are
      executed in alphabetical order. The idea is that files in /usr are added
      at build time and files in /etc might be added or modified at run-time.
      If two scripts, one in /etc and one in /usr have the same file name, the
      script in /usr gets skipped completely. This allows to disable code in
      /usr, which is probably mounted ro, at runtime.
      Code snippets are automatically generated at build-time, depending on
      the configuration created by swupdate's menuconfig. But code snippets
      may be created manually and added via bbappend to the
      /usr/lib/swupdate/conf.d folder as well.
      All modes (file, webserver, webclient) of swupdate are supported.
      Different variables might be defined by the code snippets added to the
      named folders:
      Finally swupdate gets started by a line similar to:
        exec /usr/bin/swupdate $SWUPDATE_ARGS \
                               -w "$SWUPDATE_WEBSERVER_ARGS" \
                               -u "$SWUPDATE_DOWNLOAD_ARGS"
      The default set of configuraton and service files is now installed by
      the "make install" target of the swupdate Makefile. The service files
      which are not used for the latest git version of swupdate are moved
      to swupdate-2019.04 folder.
      Fixes in do_install
      - This changes the filenames of the tools binaries for several reasons:
        - Binaries should not be named "client" or "progress"
          (also not accepted by Debian upstream)
        - Inconsistent with names referred in the service files
      - The swupdate_tools.inc file gets merged into swupdate.inc file. By
        removing the tools file some bugs are fixed:
        - The tools binaries were installed twice.
        - do_compile from swupdate.inc was over written resulting in wired
        - swupdate-progress.service file was part of swupdate package were
          the corresponding swupdate-progress binary was part of the tools
      Improve package splitting
      - New packages are: swupdate-client, swupdate-progress, swupdate-usb,
      - Additionally swupdate-sd, swupdate-sv, swupdate-usb-sd and
        swupdate-progress-sd have been introduced. The purpose of the -sd
        and -sv packages is to provide the systemd service files or the
        sysv init scripts. Splitting the init scripts and service files is
        very atypical for Yocto, but it offers the flexibility to build a
        second minimal rescue image with sysv, just capable to run swupdate,
        out of the same DISTRO.
        By default (if not changed by a bbappend file) the rdepends are
        set e.g. from swupdate-usb to swupdate-sd, if systemd is enabled.
      - The swupdate-tools package is an empty meta package now. It provides
        backward compatibility for setups installing swupdate-tools. It
        depends on swupdate-client, swupdate-progress, swupdate-usb,
        swupdate-tools-hawkbit packages.
      Remove the INSANE_SKIP_${PN} = "ldflags". Seems obsolete.
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
      Signed-off-by: Stefano Babic's avatarStefano Babic <sbabic@denx.de>
  17. 29 Oct, 2019 4 commits
    • Adrian Freihofer's avatar
      swupdate: bump git srcrev · 9f1d8a6c
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      This includes the following changes:
      045a618 raw_handler: handle ro block devices
      5700346 Makefile: rename tools binaries
      48f22c6 add .editorconfig file
      e5e7e02 doc: describe REST api
      75985aa Add Kconfig option for new systemd files
      bdc1d3c systemd generic startup
      16790d1 doc: fix broken link for talks
      7c8926d ssbl_handler: fix age comparison
      f130541 travis: set libwebsockets version
      9409e9a Prepare 2019.11-rc1
      d8d9fd4 handler: add a copy handler
      21594da Add SSBL Handler
      34c55f1 handlers: sort the list of modules in Makefile
      ede66e7 doc: add scenarios how to use SWUpdate
      a5e82b9 doc: add links to single and double copy scenarios
      c744dfe Cosmetic: rename entry points in raw handler
      864dedd raw handler: return error number instead of -1
      e38ad73 handler: push progress status from bootloader handler
      cfaec8c u-boot handler: fix removing variable
       doc: ELC video published on YouTube
      07811c7 swupdate: add pre-update command hook
      da974cd doc: update list of talks with ELC 2019
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
    • Adrian Freihofer's avatar
      swupdate git define PV · 31d22095
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      The devtool workflow does not work without setting PV properly.
      To prefer the git version add the following line to the distro config:
        PREFERRED_VERSION_swupdate = "2019.04+git%"
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
    • Adrian Freihofer's avatar
      libubootenv: git define PV · ef7ab199
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      The devtool workflow does not work without setting PV properly.
      To prefer the git version add the following line to the distro config:
        PREFERRED_VERSION_libubootenv = "0.1+git%"
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
    • Adrian Freihofer's avatar
      libubootenv: bump git srcrev · a13faf75
      Adrian Freihofer authored and Stefano Babic's avatar Stefano Babic committed
      This includes the following changes:
      9294981 handle protected mmcblk_boot_ devices
      ac6d18a add missing includes
      8106b65 add .editorconfig file
      3286c57 CMakeLists: fix build with old compilers
      4d05047 Merge pull request #3 from lamby/reproducible-build
      d63e76f Make the build reproducible
      Signed-off-by: default avatarAdrian Freihofer <adrian.freihofer@siemens.com>
  18. 28 Oct, 2019 1 commit
  19. 14 Oct, 2019 1 commit
  20. 08 Oct, 2019 1 commit
  21. 18 Sep, 2019 1 commit
    • Pierre-Jean Texier' via swupdate's avatar
      swupdate: bump git srcrev · ebd88fe3
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      This includes the following changes:
      a8d4538 bootloader transaction marker: allow to disable globally via cmdline
      c3ef374 Change license for Logo
      e06c7d9 lua: export swupdate_progress_update
      4f41d74 parser: allow skip for bootenv
      6144c27 Stream the SWU in a file chosen in sw-description
      c533766 parser: added output attribute
      3947e88 util: add macro to align a buffer
      a49c1d9 cpio: export get_cpiohdr function
      c704549 Add tests for the TLS code
      edd5691 bootloader: fix typo
      911bf46 Add cpp guards in IPC interface
      d9a61e9 doc: fix WARNING: Title underline too short.
      07bebd9 parser: support hook for bootloader entries
      685ea77 doc: update talks list with LinuxLab 2018
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
  22. 27 Aug, 2019 1 commit
  23. 04 Aug, 2019 1 commit
  24. 29 Jul, 2019 2 commits
    • Pierre-Jean Texier' via swupdate's avatar
      libubootenv: bump git srcrev · bebed43f
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      This includes the following changes:
      9e121d4 uboot_env: fix print format of type size_t
      6c623d1 uboot_env: add ubi volume support
      8feae6a uboot_env: add a flag to manage device type
      65ae5fe uboot_env: don't accept MTD_DATAFLASH and MTD_UBI_VOLUME
      2c36d07 uboot_env: nand: fix return of devwrite
      a1744ab uboot_env: nand: fix return of devread
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
    • Pierre-Jean Texier' via swupdate's avatar
      swupdate: bump git srcrev · 56a1a579
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      This includes the following changes:
      d3c0bfa Add mbedtls as an alternative SSL implementation
      76f5e4b rdiff_handler: remove WARN in case of missing EOF
      49354e8 rdiff_handler: fix compressed / encrypted delta
      44a6d09 rdiff_handler: differentiate TRACE in fill_inbuffer
      72be778 add attribute install-if-higher
      54426aa handles: ubivol: add property auto-resize
      439ca54 handlers: ubivol: create a function resize_volume
      3917b1c swuforward: drop support for V1 Website
      0e6a1bc hw compatibility check: add regexp support
      4fc82ee swupdate: drop unnecessary strlen check
      c2ef97d parser: check_missing_hash: use flag NO_DATA_HANDLER
      1ffdf8b swupdate: check_provided: use flag NO_DATA_HANDLER
      e7d22e7 handler: ubivol: set flag NO_DATA_HANDLER
      940317f handlers: add a special handler flag NO_DATA_HANDLER
      8c9618a rsa signature: add support of rsa-pss
      77b05c5 Name of a running handler is never updated in the progress_msg
      327a967 doc: Update sw-description documentation (remove ',' in the examples)
      5a36f09 webserver: pass user_data to the upload handler in the case of an error
      d7424cb Add more config options to debian_defconfig
      81ab86c parser: don't check hash for image of type ubiswap
      467dd6e handlers: ubiswap: may swap several ubi volume
      ff17986 scripts: a file is no longer required
      720cf6d travis: update to bionic
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>