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

24 Commits

Author SHA1 Message Date
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
1d9e2cc4f6 sys/riotboot: use BTN0_MODE for default value of BTN_BOOTLOADER_INVERTED 2022-11-30 19:28:14 +01:00
Benjamin Valentin
e6a06501b8 sys/riotboot: serial: add bootloader LED 2021-11-21 23:09:24 +01:00
Benjamin Valentin
e17cce41b4 bootloaders/riotboot_dfu: move bootloader_selection.h to common place 2021-11-21 23:08:31 +01: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
6a79d94f1a
sys/riotboot: uncrustify 2021-02-09 13:38:31 +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
722223902a
riotboot: only depend on periph_flashpage 2020-11-11 23:16:43 +01:00
Bas Stottelaar
152c2f5786 sys/riotboot: add stddef.h for size_t 2020-11-05 23:50:38 +01: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
Benjamin Valentin
2867ab8b9b sys/riotboot: add a warning about the size of riotboot_flashwrite_t
On e.g. samd5x FLASHPAGE_SIZE is 8k (4k on kinetis, stm32w, nrf52)
so placing this struct on the stack will almost always cause a stack
overflow.
2020-03-31 13:27:05 +02:00
87fcd061a8 sys/riotboot: provide riotboot_slot_offset() 2020-02-19 10:04:52 +01: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
22796b7438
riotboot/flashwrite: fix typo in doxygen documentation 2019-07-02 11:39:51 +02:00
0ec9c57b2b add copyrights from IOTPUSH project 2019-05-02 12:09:37 +02:00
Gunar Schorcht
85319e23d5 sys/riotboot: doxygen fix in slot.h 2019-03-23 11:27:30 +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
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