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

48 Commits

Author SHA1 Message Date
Benjamin Valentin
1f1d7082a5 sys/slot_aux: add build system integration for AUX slot 2024-02-28 11:49:05 +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
d617d864e6
sys/riotboot: move dependency resolution in its own Makefile.dep 2023-06-15 10:24:56 +02:00
Gunar Schorcht
2e32d4ee8b sys/riotboot: uses SLOT1_OFFSET in hex format
Using hex number for addresses and address offsets improves the readability.
2023-04-18 06:20:14 +02:00
Gunar Schorcht
06426c41b0 sys/riotboot: common default NUM_SLOT, SLOT_* config 2023-04-18 06:20:14 +02:00
Gunar Schorcht
f4f716a062 sys/riotboot: fix compilation error of riotboot_slot
`riotboot_slot` uses `ARRAY_SIZE` which is defined in `container.h` but not yet included on some plattforms.
2023-04-18 06:20:14 +02:00
Dylan Laduranty
48b07eb991 bootloaders: fix bootloader button logic
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2023-03-08 13:07:42 +01:00
Gunar Schorcht
152213692b sys/riotboot: add tinyUSB DFU support 2023-01-15 18:09:55 +01:00
Marian Buschsieweke
caa30b83d5
sys/riotboot: add missing include 2022-09-26 18:54:39 +02:00
Francisco Molina
ec4a96b108 sys/riotboot/hdr: change header validation log to DEBUG 2022-04-14 11:53:31 +02:00
Benjamin Valentin
e6a06501b8 sys/riotboot: serial: add bootloader LED 2021-11-21 23:09:24 +01:00
Benjamin Valentin
f53a398bfb riotboot: serial: enter bootloader mode by pin 2021-11-21 23:09:22 +01:00
Jan Romann
9f4e839ceb
sys/riotboot: uncrustify 2021-11-19 09:54:17 +01:00
136f59bc2c sys/riotboot: add missing "inttypes.h" include 2021-09-22 20:47:12 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Benjamin Valentin
a05723e5cb rioboot: add option to reset to riotboot 2021-07-20 22:51:15 +02:00
Benjamin Valentin
cabe639d04 sys/riotboot: move magic address to common file 2021-07-20 22:51:15 +02:00
Benjamin Valentin
7a07b7471f riotboot: implement serial bootloader feature 2021-07-20 22:50:41 +02:00
Francisco Molina
2f7abb637a
sys/riotboot: remove remaining FLASHPAGE_SIZE dep 2021-03-08 10:22:04 +01:00
Antonio Galea
418c88eeb0 sys/riotboot/flashwrite.c: add message to static assert
static_assert as defined in c11 requires both an expression and a message.
The message is only optional from c17 onwards.
2021-02-18 18:33:35 +01:00
Francisco Molina
6a79d94f1a
sys/riotboot: uncrustify 2021-02-09 13:38:31 +01:00
Francisco Molina
6baadad152
sys/riotboot/flashwrite: when invalidating erase checksum as well 2021-02-09 11:11:47 +01:00
5b0eaf7cd8
riotboot/flashwrite: Remove last dependencies on flashpage size 2021-02-01 16:14:07 +01:00
dylad
beb0fb752c sys/riotboot: add DFU support to riotboot 2021-01-12 11:34:22 +01:00
Firas Hamdi
d4c32caaaa sys/riotboot: add revert and invalidate slot functions
Update the function description

update write function

refactor riotboot_flashwrite_invalidate function

minor changes

minor nitpicks
2020-12-14 09:33:56 +01:00
Benjamin Valentin
4bcccb1c68 riotboot: use log level ERROR if riotboot_flashwrite_finish_raw() fails 2020-11-18 18:04:59 +01:00
Benjamin Valentin
e697d93e02 riotboot: don't always return error in riotboot_flashwrite_finish_raw()
If `CONFIG_RIOTBOOT_FLASHWRITE_RAW` is not set, `riotboot_flashwrite_finish_raw()`
will always return `-1` as `res` is not set anywhere else.

Fix this by only returning -1 in the error case.
2020-11-18 16:13:47 +01:00
722223902a
riotboot: only depend on periph_flashpage 2020-11-11 23:16:43 +01:00
Bas Stottelaar
80d9da90df sys/*: add missing include of assert.h 2020-10-22 11:13:09 +02:00
d31a39d7fc
Refactor verification check to remove goto and label 2020-10-20 11:22:56 +02:00
55b0f0b6a8
riotboot/flashwrite: add flashpage_raw compatibility
This adds optional usage of periph_flashpage_raw for the
riotboot/flashwrite module. This removes the need to buffer a full
flashpage page, instead it must buffer two times the
FLASHPAGE_RAW_BLOCKSIZE. One is used to buffer the current write block,
the other buffers the first chunk (offset zero, page zero). This first
chunk is written when finalizing the flash operation.

Care must be taken that, when using the skiplength, the number of bytes
skipped is always a multiple of the FLASHPAGE_RAW_BLOCKSIZE.
2020-10-20 11:22:56 +02:00
f05c5f7708
riotboot/flashwrite: Add force flush to storage function 2020-09-29 15:18:56 +02:00
a00314bfc4
riotboot: Add function to retrieve the slot size 2020-09-29 15:18:52 +02:00
87fcd061a8 sys/riotboot: provide riotboot_slot_offset() 2020-02-19 10:04:52 +01:00
c596aa5184
riotboot/flashwrite: use LOG_DEBUG when printing bytes processed 2020-01-09 11:31:12 +01:00
Juergen Fitschen
e152b3e346 sys/riotboot: Fixed flashwrite_slotsize to return size of slot 1 2019-10-31 12:05:35 +01:00
8827202ac7
sys/flashwrite: remove useless line
scan-build reported: Value stored to 'flashpage_pos' is never read
2019-10-22 19:48:34 +02:00
Benjamin Valentin
e8dc1119b8 sys: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Bas Stottelaar
7213a95b31 sys/riotboot: add missing assert.h 2019-07-23 00:25:31 +02:00
0f5a2b4795 sys/riotboot: add initial image digest verification
Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
2019-07-10 13:15:02 +02:00
francisco
75efed16cb sys/riotboot: RIOTBOOT_HDR_LEN generic definition 2019-06-18 15:12:54 +02:00
0ec9c57b2b add copyrights from IOTPUSH project 2019-05-02 12:09:37 +02:00
a15f07b04b riotboot: move slot variables to sys/riotboot/Makefile.include 2019-03-15 12:32:50 +01:00
d75c1fd76c sys/riotboot: introduce riotboot_slot_other() 2019-03-15 12:32:50 +01:00
ae35860510 sys/riotboot: add flashwrite submodule 2019-03-15 12:32:50 +01:00
Francisco Acosta
8f22175af3 riotboot_slot: add second slot compatibility
When a second slot is defined, the "partition table"
gets a second field which represents the starting of
the second slot, at a defined offset.
2019-01-02 17:56:11 +01:00
Francisco Acosta
2df0abfd70 sys/riotboot: add riotboot_slot module
This module adds some helper function to manage slots
created with a riotboot_hdr header.

Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2018-12-18 19:31:34 +01:00
Francisco Acosta
00adbd69f6 sys: add riotboot_hdr submodule
riotboot_hdr enables to partition the internal flash memory
into "slots", each one with a header providing information
about the partition. The concept for now is limited to
firmware partitions, which are recognised by the riotboot
bootloader. In the future the concept might be extended to
represent other content.

Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2018-12-03 23:58:45 +01:00