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
Bas Stottelaar
80d9da90df
sys/*: add missing include of assert.h
2020-10-22 11:13:09 +02:00
Bas Stottelaar
47d376c5c3
sys/*: add explicit include of timex.h
2020-10-21 21:47:31 +02:00
d87a5af7c6
suit/storage/flashwrite: Add flashpage_raw capability
...
Updates the suit flashwrite storage module to include compatibility with
the riotboot flashwrite raw capability.
2020-10-20 11:22:56 +02:00
a7656a51b7
suit: Move common storage.c to module directory
2020-10-01 19:40:14 +02:00
b72d510690
suit/transport/mock: Use common storage backend
2020-09-30 14:32:27 +02:00
edeffdcd54
suit: Adapt manifest handling to use common storage backend
2020-09-30 14:32:27 +02:00
a29eaf557f
suit/storage/flashwrite: Add riotboot flashwrite storage backend
2020-09-30 13:32:39 +02:00
9ce2ba1c55
suit/storage/ram: Introduce RAM storage backend for SUIT
2020-09-30 13:32:38 +02:00
7742750abd
suit: Introduce generic storage backend
...
This commit introduces a common storage backend for SUIT manifest
payloads. Different backends can be compiled into a single firmware.
Degending on the component name in the SUIT manifest, a storage backend
is selected by the parser.
2020-09-30 13:32:38 +02:00
ea007ada05
suit: Mark conversion function arguments as const
...
Small cleanup to mark arguments of the conversion functions for param to
cbor and vice versa as const where possible
2020-09-29 15:18:57 +02:00
fc794d9a21
Merge pull request #15092 from bergzand/pr/suit/per_component_flags
...
suit: Introduce per-component flags
2020-09-29 15:03:06 +02:00
72ef2086b5
suit: Group the HAVE_COMPONENTS flag with the others
2020-09-29 13:09:32 +02:00
d9cf10c109
suit: Introduce per-component flags
2020-09-29 13:09:32 +02:00
Francisco
bfb8fc52b1
Merge pull request #15094 from bergzand/pr/suit/secure_fetch
...
SUIT: fail fetch if the image size doesn't match expected
2020-09-28 14:11:26 +02:00
ab0cc57997
suit: Only finish the flashwrite when mock is not active
...
This can be removed as soon as the SUIT module has a proper storage
abstraction
2020-09-28 13:03:40 +02:00
91df9cae87
suit: Finalize image after digest verification
2020-09-26 14:40:14 +02:00
791155d3dd
suit/coap: fail fetch if the image size doesn't match expected
2020-09-26 13:34:50 +02:00
cdf45f9798
suit: Move policy check to before fetch
...
This prevents the whole payload fetch if the manifest fails the policy
check
2020-09-26 12:48:53 +02:00
c8ecc9c3ca
suit: Upgrade manifest parser to IETF-v9 compliance
2020-09-24 21:15:08 +02:00
Leandro Lanzieri
9e427e1584
net/coap: Move COAP_MAX_RETRANSMIT to 'CONFIG' namespace
...
COAP_MAX_RETRANSMIT is moved to the compile time configuration macro
namespace.
2020-04-24 10:06:43 +02:00
Leandro Lanzieri
072a0d8563
net/coap: Move COAP_ACK_TIMEOUT to 'CONFIG' namespace
...
COAP_ACK_TIMEOUT is moved to the compile time configuration macro
namespace.
2020-04-24 10:06:40 +02:00
e12defd5a0
suit/transport/coap: Use nanocoap coap_tree_handler
2020-03-24 09:38:24 +01:00
1d1d5b6f0d
examples/suit: Refactor to draft ietf-v3
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-19 22:56:01 +01:00
413b91326f
tests/suit_v3_manifest: Add draft-ietf-v3 manifest parser test
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-19 22:56:01 +01:00
14bdf8f46b
sys/suit: Add SUIT draft ietf-v3 firmware upgrade module
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-03-18 14:13:12 +01:00
ef8daaf7be
suit: remove moran-v4 version of the parser
...
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2020-02-26 14:54:16 +01:00
9ede06fbbb
sys/suit: make use of riotboot_slot_offset()
2020-02-19 10:08:47 +01:00