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

41 Commits

Author SHA1 Message Date
Benjamin Valentin
ac46418709 riotboot: set FW_ROM_LEN 2024-02-28 11:49:05 +01:00
03d171ee12
bootloaders/riotboot: fix path to cortexm ldscript test 2023-05-13 19:08:40 +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
a4f870f25b bootloaders: add riotboot_tinyusb_dfu bootloader 2023-01-15 18:09:55 +01:00
Gunar Schorcht
421cbc5c29 bootloaders/riotboot_dfu: improve documentation of usage
The `dfu-util` command uses `--device $(DFU_USB_ID)`, where `DFU_USB_ID` is derived from `USB_VID` and `USB_PID` to specify the DFU device to use. Without specifying `USB_VID` and `USB_PID` in the make command, `dfu-util` is called with `--device :`, which only works if there is only one DFU device. Also, the STM32 make system forbids the use of `dfu-util` as programmer without setting the variable `DFU_USB_ID`. Therefore, the documentation is changed to use `USB_VID`/`USB_PID` or `DFU_USB_ID` in the make command.
2022-11-30 19:28:14 +01:00
Dylan Laduranty
ddf633eb99 bootloader/riotboot_dfu: move ztimer_init() prior to usbus start 2022-08-30 20:56:44 +02:00
8d3d012acd
Merge pull request #17248 from benpicco/riotboot_serial-btn
riotboot_serial: enter bootloader mode by pin
2022-01-05 14:14:00 +01:00
Francisco Molina
d0758b5a7e sys/ztimer: remove double ztimer indirection
To avoid confusions between `auto_init_ztimer` and `ztimer_auto_init`
rename `ztimer_auto_init` to `ztimer_init`.

This allows for similar handling as `saul_init_devs` and
`auto_init_devs`. Dependencies are therefore done against the USEMODULE
and not DEFAULT_MODULE or checking DISABLE_MODULE. For this, both
`ztimer_init` and `auto_init_ztimer` are added to DEFAULT_MODULE and
both need disabling if the user does not want that module in.

With this, the comment in Kconfig no longer applies.
2021-11-25 11:26:34 +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
fa95a39471
bootloaders/riotboot_dfu: Use ztimer instead of ztimer 2021-10-26 14:14:46 +02:00
chrysn
78c12c6626 sys/riotboot doc: Minor fixes
Which, in particular, make it build in the first place.
2021-10-20 19:00:18 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Benjamin Valentin
fedca810cd riotboot: factor out common Makefile parts 2021-07-20 22:51:56 +02:00
Benjamin Valentin
cabe639d04 sys/riotboot: move magic address to common file 2021-07-20 22:51:15 +02:00
Benjamin Valentin
ea2e103bde bootloaders/riotboot: add serial bootloader 2021-07-20 22:51:14 +02:00
Benjamin Valentin
7a07b7471f riotboot: implement serial bootloader feature 2021-07-20 22:50:41 +02:00
dylad
7f00f00df3 bootloaders/riotboot_dfu: update doc now that DFU_ALT gets set 2021-04-03 18:18:57 +02:00
chrysn
e0b1bfbf71 riotboot_dfu: Add user documentation 2021-03-20 21:51:22 +01:00
chrysn
d770917e49 riotboot_dfu: Stay in DFU mode if button is pressed
Boards can override this; by default it's BTN0
2021-03-18 19:32:16 +01:00
Martine Lenders
6b8cb2a732
Merge pull request #16025 from chrysn-pull-requests/bootloader-docs
doc: Make bootloaders visible in modules
2021-02-18 19:45:06 +01:00
chrysn
010dbcc9d3 doc: Workaround for Doxygen 1.8
See-Also: https://github.com/RIOT-OS/RIOT/pull/16025#pullrequestreview-591978881
Workaround-For: https://github.com/RIOT-OS/riotdocker/pull/104
2021-02-18 14:56:20 +01:00
chrysn
204a608c24 doc: Make bootloaders visible in modules 2021-02-18 14:56:20 +01:00
Francisco Molina
9a8c26bd34
bootloader/dfu: fix USEMODULE= 2021-02-18 12:47:51 +01:00
chrysn
9c8cbe9aea riotboot_dfu: Use allocated USB IDs
The IDs are not advertised to dfu-util to allow a smooth transition into
having a VID/PID-identifiable riotboot_dfu.

As allocated on https://pid.codes/1209/7D02/.
2021-02-16 09:11:53 +01:00
Benjamin Valentin
b6c96b101b riotboot: disable pm_layered
On `same54-xpro` this saves 212 bytes of ROM.
2021-01-27 13:21:20 +01:00
dylad
e87bb6a0f9 bootloader: create new bootloader application with DFU support 2021-01-12 11:34:22 +01:00
emmanuelsearch
011ce90ac9
riotboot: add basic porting guide 2020-11-10 15:21:02 +01:00
Marian Buschsieweke
af21f15b02
makefiles: Minor clean ups
- Add FEATURES_REQUIRED_ANY to dependency-debug:
  Now `make dependency-debug` by default also stores the contents of
  `FEATURES_REQUIRED_ANY`.
- makefiles/features_check.inc.mk: Break long lines
- {tests/minimal,tests/unittests,bootloaders/riotboot}:
  Disable auto_init_% in addition to auto_init.

This works around weird behavior due to the USEMODULE being recursively expended
in the first iteration of dependency resolution: Modules added to DEFAULT_MODULE
get automatically added to USEMODULE during the first run, but not for
subsequent. This should be iron out later on.
2020-04-02 09:56:39 +02:00
Francisco Molina
30b5a23e78
bootloaders/riotboot: use stdio_null 2020-03-24 19:14:03 +01:00
Benjamin Valentin
f7c81b19e9 riotboot: disable stdio_cdc_acm
We don't want USB based stdio in the bootloader.
2020-03-21 00:00:41 +01:00
c2534ad8f3 core: turn panic.c into a submodule 2020-01-31 13:55:26 +01:00
b6703f41dc core: turn kernel_init.c into core_init submodule 2020-01-31 13:52:13 +01:00
Francisco Molina
842b7e37c8 bootloaders/riotboot: set RIOTBOOT_BUILD
Set a make variables to indicate `riotboot` application (riots
bootloader) is being built.
2020-01-10 11:42:16 +01:00
Bas Stottelaar
58e28250bd riotboot: define if building the bootloader 2019-09-24 19:36:56 +02:00
b3cc3ab2ea riotboot: fix APP_VER default documentation 2019-07-08 16:33:01 +02:00
8624d3dac4 riotboot: update documentation to match automatic use
FLASHFILE is now set to RIOTBOOT_EXTENDED_BIN, changing the meaning of
make all`, `flash`, `flash-only`.
This commits updates the documentation accordingly.
2019-07-08 16:33:01 +02:00
francisco
560d243939 bootloader/README: fix typos 2019-05-23 12:08:01 +02:00
Emmanuel Baccelli
d8f64a36e4 bootloaders/riotboot: updated documentation on multislot 2019-01-15 18:32:10 +01:00
Francisco Acosta
ec24ea49b1 riotboot: add support for multislot
riotboot looks for valid, available slots and compares its
version. The slot with the highest version is booted, otherwise
if no valid slot is found it loops on `while(1);`
2019-01-02 17:56:11 +01:00
Francisco Acosta
281d8084bf riotboot: add riot-based minimal bootloader
riotboot is introduced here and makes use of riotboot_hdr,
which indentifies the images encapsulated as slots.
The slot size and offset is configurable, which makes
slots extendable if needed, e.g. 2 or more slots can be
transparently added.

Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
Co-authored-by: Gaëtan Harter <gaetan.harter@fu-berlin.de>
2018-12-18 19:31:35 +01:00