aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/boot/src/boot_loader.rs
Commit message (Collapse)AuthorAgeFilesLines
* Align testsRasmus Melchior Jacobsen2023-05-301-1/+1
|
* Add bootloader helper for creating config from linkerfile symbolsRasmus Melchior Jacobsen2023-05-301-65/+71
|
* Remove the usage of the local Partition type in BootLoaderRasmus Melchior Jacobsen2023-05-291-229/+111
|
* Let Partition range be u32 instead of usizeRasmus Melchior Jacobsen2023-04-051-52/+49
|
* Add assertions about the aligned_buf % write sizesRasmus Melchior Jacobsen2023-04-041-1/+3
|
* Remove comment about equal erase size requirementRasmus Melchior Jacobsen2023-04-041-2/+0
|
* Allow different erase sizes for active and dfuRasmus Melchior Jacobsen2023-04-041-2/+4
|
* Remove the Flash traitRasmus Melchior Jacobsen2023-04-041-42/+31
|
* Assert active and dfu have same erase size and copy in smaller chunksRasmus Melchior Jacobsen2023-04-041-35/+31
| | | | 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-61/+73
| | | | and use the aligned page buffer instead
* Avoid write to not-erased magicRasmus Melchior Jacobsen2023-04-041-15/+28
| | | | | | 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.
* Let bootloader partition have read/write/erase operationsRasmus Melchior Jacobsen2023-03-311-52/+50
| | | | This change should not have any breaking changes.
* Split bootloader implementation into multiple filesRasmus Melchior Jacobsen2023-03-311-0/+526