1. 23 Mar, 2020 1 commit
  2. 18 Mar, 2020 4 commits
  3. 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
  4. 06 Feb, 2020 1 commit
  5. 02 Feb, 2020 3 commits
  6. 07 Jan, 2020 2 commits
  7. 16 Dec, 2019 2 commits
  8. 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
  9. 02 Dec, 2019 2 commits
  10. 18 Nov, 2019 1 commit
  11. 16 Nov, 2019 1 commit
  12. 15 Nov, 2019 2 commits
  13. 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>
      99152530
    • 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>
      b6534bbc
    • 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:
      - SWUPDATE_ARGS
      - SWUPDATE_WEBSERVER_ARGS
      - SWUPDATE_DOWNLOAD_ARGS
      
      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
          behavior
        - swupdate-progress.service file was part of swupdate package were
          the corresponding swupdate-progress binary was part of the tools
          package.
      
      Improve package splitting
      - New packages are: swupdate-client, swupdate-progress, swupdate-usb,
        swupdate-tools-hawkbit.
      - 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>
      135d46bc
  14. 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
      27c40c43
      
       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>
      9f1d8a6c
    • 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>
      31d22095
    • 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>
      ef7ab199
    • 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>
      a13faf75
  15. 28 Oct, 2019 1 commit
  16. 14 Oct, 2019 1 commit
  17. 08 Oct, 2019 1 commit
  18. 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>
      ebd88fe3
  19. 27 Aug, 2019 1 commit
  20. 04 Aug, 2019 1 commit
  21. 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>
      bebed43f
    • 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>
      56a1a579
  22. 03 Jul, 2019 3 commits
    • Pierre-Jean Texier' via swupdate's avatar
      libubootenv: bump git SRCREV · 8799e48a
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      88de5d2 uboot_env: access_tostring: fix write once flag
      41999c9 README: rework README file
      a0ec01c doc: add Buildroot support
      5af2a3b uboot_env: fix comment typo
      43d6707 uboot_env: remove <pthread.h> header file
      6d2abc6 flags are not parsed when environment is loaded
      728f047 uboot_env: fix compilation for glibc version >= 2.28
      539796c uboot_env: fix build with musl libc
      8c07bf0 License: add license file
      
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
      8799e48a
    • Pierre-Jean Texier' via swupdate's avatar
      swupdate: add DEPENDS for SWUforwader · 46c81c90
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      
      
      Check if libwebsockets, uriparser & curl are required
      
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
      Tested-by: default avatarJoris Offouga <offougajoris@gmail.com>
      46c81c90
    • Pierre-Jean Texier' via swupdate's avatar
      swupdate: bump git srcrev · ec73a561
      Pierre-Jean Texier' via swupdate authored and Stefano Babic's avatar Stefano Babic committed
      
      
      This includes the following changes:
      
      9ce9434 Remove the superfluous salt parameter
      8ef2946 tools: swupdate-sysrestart to restart system
      ecc9bf3 swuforward: rework to use new Website
      7e696fc util: add function to get a substring from a string
      2211234 Put the UDS in the directory pointed by TMPDIR
      d69ffc5 progress: allow to pass the UDS in the connection
      db80704 handlers: shell scripts: fix typo in postinstall function
      cc68fff configs: add a test config for ucfw handler
      c7dcf13 doc: handlers: ucfw: improve description
      f1c8fff /core/swupdate.c: dynamic memory allocation for downloader, suricatta and webserver options
      f811c91 u-boot: fix script format when !CONFIG_UBOOT_NEWAPI
      ee17493 Lua: fix segfault in image property handling
      
      Signed-off-by: default avatarPierre-Jean Texier <pjtexier@koncepto.io>
      ec73a561
  23. 31 May, 2019 1 commit