- 25 Aug, 2021 3 commits
-
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
Stefano Babic authored
Autoversion tries to get the name of packages from the list of files for the CPIO archive, while the list of packages is already set in the SWUPDATE_IMAGES variable. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
Stefano Babic authored
Instead of setting hash just for files going into SWU, scans sw-description for any occurencies of sha256 attribute. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 23 Aug, 2021 1 commit
-
-
Stefano Babic authored
This is as preparation to introduce other classes in the layer. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 15 Aug, 2021 1 commit
-
-
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:
Pierre-Jean Texier <texier.pj2@gmail.com>
-
- 11 Aug, 2021 1 commit
-
-
The override syntax was changed in Yocto master & honister core layers to repace '_' the deliminator with ':'. New syntax is supported in older releases if bitbake patches are applied. Add honister and remove older layers from LAYERSERIS_COMPAT, except dunfell LTS release. Signed-off-by:
Geoff Parker <geoffrey.parker@arthrex.com>
-
- 05 Aug, 2021 1 commit
-
-
Stefano Babic authored
Use the convert-overrides.py to convert to new syntax Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 28 Jul, 2021 1 commit
-
-
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 <sbabic@denx.de>
-
- 23 Jul, 2021 2 commits
-
-
Fix the spelling of "regarding". Signed-off-by:
Fabio Estevam <festevam@gmail.com>
-
Currently the underline is shorter than the "SWU image signing" subtitle. Make the underline fill the whole "SWU image signing" subtitle for better readability. Signed-off-by:
Fabio Estevam <festevam@gmail.com>
-
- 01 Jul, 2021 2 commits
-
-
Increase flexibility of automatic versions by adding support for definition of the packagedata key in version tag. Signed-off-by:
Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
-
Assign variable before checking and print a more useful error message if none of the files in `list_for_cpio` can be found in group. Signed-off-by:
Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
-
- 25 Jun, 2021 1 commit
-
-
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:
Pierre-Jean Texier <texier.pj2@gmail.com>
-
- 10 Jun, 2021 1 commit
-
-
Versions of the packages included in update file needs to be entered manually in sw-description file or provided in as a bitbake variable. This patch searches for a group in sw-description file containing the tag `version = "@SWU_AUTO_VERSION"`. If found, the version of the corresponding package is fetched from it's package-data-file (`PV`) and the tag is replaced with the version. Possible trailing strings in `PV` starting with `+` (e.g. "+gitAUTOINC+...") are dropped to keep semantic versions. Since the filenames not always belong to the package name (deployed with another name or the file is a container for the real package) support providing the correct package name by appending the tag with `:<package-name>`. Signed-off-by:
Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
-
- 13 May, 2021 2 commits
-
-
Fix explicitely -> explicitly Signed-off-by:
Luca Ceresoli <luca@lucaceresoli.net> Acked-by:
Stefano Babic <sbabic@denx.de>
-
The SWUPDATE_IMAGES_NOAPPEND_MACHINE check is incorrect and always takes the 'elif' branch. This is because the allowed values for SWUPDATE_IMAGES_NOAPPEND_MACHINE are "0", "1" or unset. The first two values are strings, and getVarFlag() returns them as strings, but the code checks for boolean. Keep the allowed values to "0", "1" or unset as per the documentation and to keep backward compatibility, and fix by comparing with strings instead of booleans. Fixes: b6534bbc ("swupdate: simplify find images added to swu") Signed-off-by:
Luca Ceresoli <luca@lucaceresoli.net> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- 07 May, 2021 1 commit
-
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 01 May, 2021 3 commits
-
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
Stefano Babic authored
Recent Yocto's release changed the name of common licenses, fix it. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 28 Apr, 2021 1 commit
-
-
Stefano Babic authored
This will help to add extX filesystem initialization using the e2fsprogs libraries. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 27 Apr, 2021 1 commit
-
-
The variable wwwdir was introduced for the flexibility to change the web root directory. Signed-off-by:
Michael Glembotzki <m.glembo@gmail.com> Reviewed-by:
Stefano Babic <sbabic@denx.de>
-
- 24 Apr, 2021 2 commits
-
-
Stefano Babic authored
This reverts commit bf95cb0f . Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
Stefano Babic authored
This reverts commit beb7a54d . Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 20 Apr, 2021 1 commit
-
-
Stefano Babic authored
Fix bf95cb0f moving the service unit from swupdate-progress to swupdate-progress-systemd. Signed-off-by:
Stefano Babic <sbabic@denx.de> Reported-by:
Oliver Westermann <Oliver.Westermann@cognex.com> CC: Kyle Russell <bkylerussell@gmail.com>
-
- 18 Apr, 2021 1 commit
-
-
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:
Kyle Russell <bkylerussell@gmail.com>
-
- 17 Apr, 2021 1 commit
-
-
This should reference ${libdir}, since that's where swupdate.sh gets installed. Signed-off-by:
Kyle Russell <bkylerussell@gmail.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- 06 Apr, 2021 1 commit
-
-
Stefano Babic authored
Add BSD licenses to LIC_FILES_CHKSUM. Signed-off-by:
Stefano Babic <sbabic@denx.de> Reviewed-by:
Mark Jonas <toertel@gmail.com>
-
- 05 Apr, 2021 1 commit
-
-
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 <sbabic@denx.de>
-
- 22 Mar, 2021 1 commit
-
-
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:
Pierre-Jean Texier <pierre-jean.texier@lafon.fr>
-
- 18 Feb, 2021 1 commit
-
-
Stefano Babic authored
Still an old version is used, update to last. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 07 Feb, 2021 1 commit
-
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 31 Dec, 2020 1 commit
-
-
Stefano Babic authored
QA checks for so links and raises an error, but Lua does not work correctly if the library has not a .so extension. Just use the link set by SWUpdate. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 28 Dec, 2020 1 commit
-
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- 18 Dec, 2020 1 commit
-
-
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:
Pierre-Jean Texier <pierre-jean.texier@lafon.fr>
-
- 15 Dec, 2020 2 commits
-
-
In release 2019.11, support for the salt encryption parameter was removed (see commit 9ce94342d3c212b06a283f95dc9c1c8c52155ce7). Consequently, remove all references to a salt value for key creation and encryption. The keyfile for encryption can still contain a salt value, it will simply be ignored. Also remove obsolete cmd variable. Signed-off-by:
Christoph Lauer <christoph.lauer@xtronic.de> Signed-off-by:
Christoph Lauer <dev@online.ms>
-
The python function swupdate_extract_keys returns the encryption values key, iv and salt with a line feed ('\n') at the end, which needs to be removed. Signed-off-by:
Christoph Lauer <christoph.lauer@xtronic.de> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- 11 Dec, 2020 1 commit
-
-
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:
Christoph Lauer <christoph.lauer@xtronic.de>
-
- 30 Nov, 2020 1 commit
-
-
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 <sbabic@denx.de>
-
- 28 Nov, 2020 1 commit
-
-
Signed-off-by:
Kas User <kas@example.com>
-