aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/boot/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Flatten embassy-boot dir treeDario Nieuwenhuis2024-01-111-323/+0
|
* boot: update ed25519-dalek in dev-dependencies.Dario Nieuwenhuis2023-12-191-5/+3
|
* Address reviewsKaitlyn Kenwell2023-12-141-1/+1
|
* Add embassy-usb-dfuKaitlyn Kenwell2023-12-131-0/+3
|
* Remove nightly and unstable-traits features in preparation for 1.75.Dario Nieuwenhuis2023-11-291-13/+8
|
* Update Rust nightly.Dario Nieuwenhuis2023-11-011-0/+1
|
* Refactor firmware updaterUlf Lilleengen2023-08-061-32/+47
| | | | | * Allow manipulating state without accessing DFU partition. * Provide aligned buffer when creating updater to reduce potential wrong parameters passed.
* Prevent accidental revert when using firmware updaterUlf Lilleengen2023-06-191-3/+9
| | | | | This change prevents accidentally overwriting the previous firmware before the new one has been marked as booted.
* Fix verify testRasmus Melchior Jacobsen2023-05-301-1/+4
|
* Align testsRasmus Melchior Jacobsen2023-05-301-107/+141
|
* Remove legacy Partition type and use the one from embedded-halRasmus Melchior Jacobsen2023-05-301-2/+0
|
* Add TestFlash helperRasmus Melchior Jacobsen2023-05-301-0/+6
|
* Add bootloader helper for creating config from linkerfile symbolsRasmus Melchior Jacobsen2023-05-301-1/+1
|
* Split FirmwareUpdater into async and blocking typesRasmus Melchior Jacobsen2023-05-301-1/+3
|
* Update Rust nightly.Dario Nieuwenhuis2023-05-191-1/+0
|
* embassy-boot: ensure tests can run on the stable compilersander2023-04-201-4/+4
|
* merge embassy/mastersander2023-04-111-1378/+49
|\
| * Let update_len be u32Rasmus Melchior Jacobsen2023-04-111-1/+1
| |
| * Merge remote-tracking branch 'upstream/master' into u32-partitionRasmus Melchior Jacobsen2023-04-111-0/+1
| |\
| | * Let update_len be usize for nowRasmus Melchior Jacobsen2023-04-051-1/+1
| | |
| | * Merge remote-tracking branch 'upstream/master' into incremental-hashRasmus Melchior Jacobsen2023-04-051-34/+10
| | |\
| | * \ Merge remote-tracking branch 'upstream/master' into incremental-hashRasmus Melchior Jacobsen2023-04-041-135/+24
| | |\ \
| | * | | Let hash functions take a digest::Digest traitRasmus Melchior Jacobsen2023-04-041-0/+1
| | | | | | | | | | | | | | | | | | | | ... and add adapters for current Sha512 implementations that does not inplement the Digest trait
| | * | | Merge remote-tracking branch 'upstream/master' into incremental-hashRasmus Melchior Jacobsen2023-04-041-5/+3
| | |\ \ \
| | * | | | Add incremental hash to FirmwareUpdaterRasmus Melchior Jacobsen2023-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This adds support for computing any hash over the update in the dtu area by providing a closure to the hash update function.
| * | | | | Let Partition range be u32 instead of usizeRasmus Melchior Jacobsen2023-04-051-43/+17
| | |_|_|/ | |/| | |
| * | | | Allow different erase sizes for active and dfuRasmus Melchior Jacobsen2023-04-041-7/+5
| | | | |
| * | | | Remove the Flash traitRasmus Melchior Jacobsen2023-04-041-1/+1
| | | | |
| * | | | Assert active and dfu have same erase size and copy in smaller chunksRasmus Melchior Jacobsen2023-04-041-21/+11
| | | | | | | | | | | | | | | | | | | | The copy from active to dfu (and vice versa) is now done in smaller portions depending on aligned_buf, which now does not need to be erase_size big.
| * | | | Remove magic buffer argument from prepare_bootRasmus Melchior Jacobsen2023-04-041-17/+5
| | |_|/ | |/| | | | | | | | | | and use the aligned page buffer instead
| * | | Fix compile error when verification is enabledRasmus Melchior Jacobsen2023-04-041-2/+2
| | | |
| * | | Merge remote-tracking branch 'upstream/master' into avoid-write-before-eraseRasmus Melchior Jacobsen2023-04-041-5/+3
| |\ \ \ | | | |/ | | |/|
| | * | Remove FirmwareWriterRasmus Melchior Jacobsen2023-04-031-5/+3
| | |/ | | | | | | | | | FirmwareWriter currently has a "max-write-size" parameter, but this is a limitation that should be handled by chunking inside the NorFlash driver, and not "up here" in user code. In case that the driver (e.g. qspi driver) is unaware of any max-write limitations, one could simply add an intermediate NorFlash adapter providing the chunk'ing capability.
| * | Avoid write to not-erased magicRasmus Melchior Jacobsen2023-04-041-3/+3
| | | | | | | | | | | | | | | | | | This introduces an additional marker to the state partition right after the magic which indicates whether the current progress is valid or not. Validation in tests that we never write without an erase is added. There is currently a FIXME in the FirmwareUpdater. Let me know if we should take the erase value as a parameter. I opened a feature request in embedded-storage to get this value in the trait. Before this, the assumption about ERASE_VALUE=0xFF was the same.
| * | Move MemFlash to separate module and add verify_erased_before_write verificationRasmus Melchior Jacobsen2023-04-031-133/+22
| |/
| * Add erase and wipe testsRasmus Melchior Jacobsen2023-03-311-1/+2
| |
| * Split bootloader implementation into multiple filesRasmus Melchior Jacobsen2023-03-311-1171/+12
| |
* | embassy-boot: add default nightly feature, makes it possible to compile with ↵sander2023-03-221-1/+10
|/ | | | the stable compiler
* Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy ↵Mehmet Ali Anil2023-03-071-3/+4
|\ | | | | | | into emb-storage-async-0p4
* \ Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy ↵Mehmet Ali Anil2023-03-071-1/+1
|\ \ | |/ |/| | | into emb-storage-async-0p4
* | Merge upstreamMehmet Ali Anil2023-03-071-35/+25
|\ \ | |/ |/|
* | Bump embedded-storage-async to 0.4Mehmet Ali Anil2023-03-061-2/+2
|/
* Support codesigning in the firmware updaterhuntc2023-01-121-14/+353
| | | | This commit provides a method to verify that firmware has been signed with a private key given its public key. The implementation uses ed25519-dalek as the signature verifier. An "ed25519" feature is required to enable the functionality. When disabled (the default), calling the firmware updater's verify method will return a failure.
* fix: add required metadata for embassy-bootUlf Lilleengen2022-11-251-1/+1
|
* Fix ascii table in BootLoader doc commentDaniel Bevenius2022-10-291-1/+1
| | | | Signed-off-by: Daniel Bevenius <[email protected]>
* make prepare_update asyncMathias2022-09-261-2/+2
|
* Add get_state helpers to allow self-testing before calling mark_bootedMathias2022-09-261-13/+43
|
* Add blocking API to FirmwareUpdater, and allow for a split prepare/write apiMathias2022-09-261-7/+179
|
* Update Rust nightly.Dario Nieuwenhuis2022-09-221-1/+0
| | | | Removes feature(generic_associated_types)
* Take into account size of revert indexUlf Lilleengen2022-09-201-4/+17
| | | | | | | Fixes a bug in the partition assertions that ensures that the state page(s) have enough space for 2x active partition range. Add unit test to verify that panic is observed.