1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

86 Commits

Author SHA1 Message Date
Marian Buschsieweke
2b6f65a08a
build_system/xfa: change API to fix alignment
This changes the API of xfa from

    XFA(array_name, prio) type element_name = INITIALIZER;

to

    XFA(type, array_name, prio) element_name = INITIALIZER;

this allows forcing natural alignment of the type, fixing failing tests
on `native64`.
2024-11-07 16:30:01 +01:00
Benjamin Valentin
312a550f1a treewide: remove THREAD_CREATE_STACKTEST from thread creation 2024-07-29 11:45:58 +02:00
Benjamin Valentin
68c7bfc20d sys/suit: return error when URL buffer is too small 2024-04-09 10:48:09 +02:00
Benjamin Valentin
7c9345f53a sys/suit: introduce suit_worker_done_cb() 2024-01-08 20:39:12 +01:00
Frederik Haxel
64ba553d1f sys: Use size_t print format specifier
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-12-21 12:02:19 +01:00
Marian Buschsieweke
a4e4c1f2a7
sys/suit: fix compilation with clang 2023-07-18 12:24:08 +02:00
Marian Buschsieweke
ec699db9f4
sys/suit/storage: fix compilation with LLVM 2023-07-18 12:24:08 +02:00
9bd7950a1a
sys/suit: move dependency resolution in its own Makefile.dep 2023-06-15 10:24:57 +02:00
chrysn
8d6a375537 sys/suit: Fix missing include 2023-05-27 21:01:18 +02:00
chrysn
763474b485 sys/suit: Introduce functions to provide a manifest in memory
This adds the suit_worker_try_prepare / suit_worker_trigger_prepared
pair for using the SUIT worker, and breaks suit_handle_manifest_buf out
of suit_handle_url (where the latter now calls the former).

As part of factoring out reaping of the zombie worker thread, a locking
error that deadlocks the SUIT worker in case the race between the mutex
being unlocked and the thread being reaped hits the necessary handling
code is fixed (and mutex_unlock is called in the error path).
2023-05-27 21:01:18 +02:00
Benjamin Valentin
d16d8f362a sys/suit: drop superfluous ')' in output 2023-03-10 02:27:43 +01:00
chrysn
2c716d3ede sys/suit: Ensure previous thread is stopped before reusing its stack
Closes: https://github.com/RIOT-OS/RIOT/issues/19195
2023-01-25 18:04:28 +01:00
bors[bot]
fb603f2660
Merge #18459 #18724 #19081 #19082 #19136
18459: makefiles/suit: make it possible to accept multiple SUIT keys r=miri64 a=benpicco



18724: nanocoap_sock: implement DTLS socket r=miri64 a=benpicco



19081: sys/stdio_udp: add stdio over UDP r=benpicco a=benpicco



19082: core/init: add early_init() r=benpicco a=benpicco



19136: CI: re-add "synchronize" event to check-labels r=miri64 a=kaspar030



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2023-01-13 13:50:55 +00:00
Benjamin Valentin
4f576285bb sys/suit: accept coaps:// URLs 2023-01-13 00:17:33 +01:00
Benjamin Valentin
15a43f28f2 suit: start worker thread on demand 2022-09-05 07:46:56 +02:00
Benjamin Valentin
db701de094 suit: clean up worker thread, make suit_handle_url() public 2022-09-05 07:46:56 +02:00
Benjamin Valentin
f95d577245 suit: make use of worker functions 2022-09-03 23:25:01 +02:00
Benjamin Valentin
0b6e344d4f suit: rename worker thread functions (they are not CoAP only) 2022-09-03 23:25:01 +02:00
Benjamin Valentin
abb5d0fab6 suit: try multiple keys 2022-08-16 22:30:27 +02:00
Benjamin Valentin
acfab72296 nanocoap: make use of coap_request_ctx_t 2022-07-17 14:29:39 +02:00
benpicco
6019925c75
Merge pull request #17943 from fjmolinas/pr_suit_vfs_storage
sys/suit/storage/vfs: initial import
2022-06-07 09:33:37 +02:00
Francisco Molina
f485e9b0d9 sys/storage/vfs: initial import 2022-06-03 08:49:44 +02:00
Francisco Molina
013838626e sys/suit/storage: use XFA 2022-06-03 08:49:43 +02:00
Benjamin Valentin
d9114f81c4 suit: replace SUIT_URL_MAX with CONFIG_SOCK_URLPATH_MAXLEN 2022-06-01 13:00:51 +02:00
Benjamin Valentin
8e5812d218 suit/transport: move common code to new file 2022-06-01 13:00:51 +02:00
Benjamin Valentin
dd4a578ef3 suit/transport/vfs: add VFS as source for firmware updates 2022-06-01 13:00:50 +02:00
Benjamin Valentin
1662f0fa46 sys/suit: move suit_storage_helper() to handlers_command_seq.c 2022-05-25 12:17:48 +02:00
e9faabd018
Merge pull request #18020 from fjmolinas/pr_suit_storage_flashwrite_log
sys/suit/storage: change log to LOG_DEBUG
2022-04-27 15:10:25 +02:00
Francisco Molina
8114974ea7 sys/suit/storage: change log to LOG_DEBUG 2022-04-27 09:52:16 +02:00
cdf1d43e15
Merge pull request #17984 from fjmolinas/pr_suit_install_once
sys/suit: avoid installing payload twice
2022-04-27 09:44:58 +02:00
Francisco Molina
e66ad95c4c sys/suit: avoid installing payload twice 2022-04-25 15:21:22 +02:00
677871d717 suit/transport/coap: Use generic subtree handler
The SUIT CoAP code can make use of the generic subtree handler. This
commit removes the obsolete code to make use of the more generic
nanocoap subtree handlers.
2022-04-23 10:21:37 +02:00
benpicco
c610b1fa2f
Merge pull request #17939 from fjmolinas/pr_suit_manifest_ram_seq_no
sys/suit: save seq_number when parsing manifest
2022-04-15 14:22:57 +02:00
Francisco Molina
73d71a6dd5 sys/suit/sotarge/ram: on install set seq_no 2022-04-14 08:27:42 +02:00
Francisco Molina
6a1b472a06 sys/suit: save seq_number when parsing manifest 2022-04-14 08:27:30 +02:00
Benjamin Valentin
d1fe77e6de suit/transport/coap: adapt to new API 2022-04-13 19:33:00 +02:00
Karl Fessel
ddbf64ccca sys/suit_transport_coap: convert to ztimer_msec, rm unused deadline_fns 2022-03-31 23:37:15 +02:00
Benjamin Valentin
a6a8356385 nanocoap: add nanocoap_get_blockwise_url_to_buf() function
This moves the internal convenience function suit_coap_get_blockwise_url_buf()
into nanocoap to make it globally available.
2022-03-22 10:36:50 +01:00
Benjamin Valentin
2682848a29 suit/transport/coap: move suit_coap_get_blockwise() to nanocoap 2022-01-27 14:42:49 +01:00
Benjamin Valentin
8c9f413b33 suit/transport/coap: move suit_coap_get_blockwise() to socket based API 2022-01-27 14:42:49 +01:00
Benjamin Valentin
88d0b5753c suit/transport/coap: let caller allocate blockwise work buffer 2022-01-27 14:42:49 +01:00
Benjamin Valentin
6f161569f4 suit/transport/coap: use nanocoap for request
This changes the retransmission timeout behavior.
In SUIT the timeout was uses as the maximum time *all* retransmissions
could take, whereas in nanocoap the timeout was specified per retransmission.

This means that SUIT now adopts the timeout behavior of nanocoap.
2022-01-27 14:41:06 +01:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
0d8070fc42
suit: Guard flashwrite interaction in suit_transport_coap 2021-07-08 10:22:37 +02:00
cb9a1fcc8e
suit/storage/ram: Make prefix and separator configurable 2021-07-08 10:22:14 +02:00
Benjamin Valentin
769978904a suit/transport/coap: use coap_opt_put_uri()
The URI is passed as a string to `suit_coap_get_blockwise()`.
It may contain query parameters, those will not be translated
properly to CoAP options if `coap_opt_put_uri_path()` is used.

Instead use `coap_opt_put_uri()` to handle both path and query
parameters.
2021-02-23 18:27:54 +01:00
Benjamin Valentin
191c91ce18 suit/transport/coap: make blocksize configurable
When using SUIT over a link-layer that supports larger PDU, a larger
CoAP blocksize is desirable to speed up firmware downloads.

To support this, make the CoAP blocksize used by SUIT configurable.
2020-12-03 10:51:42 +01:00
Firas Hamdi
398889cafa sys/suit: fix use w/o progress bar
apply change
2020-12-02 10:51:36 +01:00
ec4803728d
suit/storage/flashwrite: use riotboot_slot_offset
Fixes an issue with riotboot on the stm32f1 and other MCUs where the
flash is remapped to a different region
2020-10-27 09:27:28 +01:00
Bas Stottelaar
1b35d06a51 sys/*: realign ENABLE_DEBUG 2020-10-23 11:27:48 +02:00