| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| * | Refactor firmware updater | Ulf Lilleengen | 2023-08-06 | 4 | -211/+256 | |
| | | | | | | * 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 updater | Ulf Lilleengen | 2023-06-19 | 4 | -9/+72 | |
| | | | | | | This change prevents accidentally overwriting the previous firmware before the new one has been marked as booted. | |||||
| * | Remove unused use's | Rasmus Melchior Jacobsen | 2023-05-30 | 2 | -10/+10 | |
| | | ||||||
| * | Fix verify test | Rasmus Melchior Jacobsen | 2023-05-30 | 1 | -1/+4 | |
| | | ||||||
| * | Align tests | Rasmus Melchior Jacobsen | 2023-05-30 | 4 | -122/+167 | |
| | | ||||||
| * | Remove legacy Partition type and use the one from embedded-hal | Rasmus Melchior Jacobsen | 2023-05-30 | 2 | -146/+0 | |
| | | ||||||
| * | Add TestFlash helper | Rasmus Melchior Jacobsen | 2023-05-30 | 4 | -0/+135 | |
| | | ||||||
| * | Cleanup MemFlash | Rasmus Melchior Jacobsen | 2023-05-30 | 1 | -50/+56 | |
| | | ||||||
| * | Add bootloader helper for creating config from linkerfile symbols | Rasmus Melchior Jacobsen | 2023-05-30 | 2 | -66/+72 | |
| | | ||||||
| * | Split FirmwareUpdater into async and blocking types | Rasmus Melchior Jacobsen | 2023-05-30 | 4 | -182/+236 | |
| | | ||||||
| * | Remove the usage of the local Partition type in BootLoader | Rasmus Melchior Jacobsen | 2023-05-29 | 1 | -229/+111 | |
| | | ||||||
| * | Split the FirmwareUpdater into blocking and async | Rasmus Melchior Jacobsen | 2023-05-29 | 4 | -543/+543 | |
| | | ||||||
| * | Protect default implementations for FirmwareUpdater and BootLoader | Rasmus Melchior Jacobsen | 2023-05-22 | 1 | -0/+1 | |
| | | | | | It seems as if the arm compiler can does not care about whether the bootloader symbols are undefined if the default() function is never used. The x64 compiler does care however, so this change ensures that we can instantiate the types from tests. | |||||
| * | Update Rust nightly. | Dario Nieuwenhuis | 2023-05-19 | 1 | -1/+0 | |
| | | ||||||
| * | embassy-boot: ensure tests can run on the stable compiler | sander | 2023-04-20 | 2 | -4/+5 | |
| | | ||||||
| * | embassy-boot: add nightly feature gate for async usage | sander | 2023-04-14 | 2 | -94/+94 | |
| | | ||||||
| * | embassy-boot: add nightly feature gates | sander | 2023-04-11 | 3 | -82/+97 | |
| | | ||||||
| * | merge embassy/master | sander | 2023-04-11 | 8 | -1378/+1483 | |
| |\ | ||||||
| | * | Let update_len be u32 | Rasmus Melchior Jacobsen | 2023-04-11 | 2 | -10/+8 | |
| | | | ||||||
| | * | Merge remote-tracking branch 'upstream/master' into u32-partition | Rasmus Melchior Jacobsen | 2023-04-11 | 5 | -36/+157 | |
| | |\ | ||||||
| | | * | Let update_len be usize for now | Rasmus Melchior Jacobsen | 2023-04-05 | 2 | -12/+10 | |
| | | | | ||||||
| | | * | Merge remote-tracking branch 'upstream/master' into incremental-hash | Rasmus Melchior Jacobsen | 2023-04-05 | 3 | -163/+129 | |
| | | |\ | ||||||
| | | * | | Use MemFlash::default() in sha1 verify test | Rasmus Melchior Jacobsen | 2023-04-04 | 1 | -3/+3 | |
| | | | | | ||||||
| | | * | | Merge remote-tracking branch 'upstream/master' into incremental-hash | Rasmus Melchior Jacobsen | 2023-04-04 | 5 | -179/+253 | |
| | | |\ \ | ||||||
| | | * | | | Let hash functions take a digest::Digest trait | Rasmus Melchior Jacobsen | 2023-04-04 | 5 | -36/+137 | |
| | | | | | | | | | | | | | | | | | | | | | ... and add adapters for current Sha512 implementations that does not inplement the Digest trait | |||||
| | | * | | | Merge remote-tracking branch 'upstream/master' into incremental-hash | Rasmus Melchior Jacobsen | 2023-04-04 | 3 | -76/+12 | |
| | | |\ \ \ | ||||||
| | | * | | | | Add incremental hash to FirmwareUpdater | Rasmus Melchior Jacobsen | 2023-04-03 | 2 | -26/+43 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for computing any hash over the update in the dtu area by providing a closure to the hash update function. | |||||
| | * | | | | | Remove firmware_len | Rasmus Melchior Jacobsen | 2023-04-05 | 1 | -5/+0 | |
| | | | | | | | ||||||
| | * | | | | | Let Partition range be u32 instead of usize | Rasmus Melchior Jacobsen | 2023-04-05 | 5 | -111/+93 | |
| | | |_|_|/ | |/| | | | ||||||
| | * | | | | Add assertions about the aligned_buf % write sizes | Rasmus Melchior Jacobsen | 2023-04-04 | 1 | -1/+3 | |
| | | | | | | ||||||
| | * | | | | Remove comment about equal erase size requirement | Rasmus Melchior Jacobsen | 2023-04-04 | 1 | -2/+0 | |
| | | | | | | ||||||
| | * | | | | Allow different erase sizes for active and dfu | Rasmus Melchior Jacobsen | 2023-04-04 | 3 | -79/+9 | |
| | | | | | | ||||||
| | * | | | | Remove the Flash trait | Rasmus Melchior Jacobsen | 2023-04-04 | 4 | -57/+32 | |
| | | | | | | ||||||
| | * | | | | Assert active and dfu have same erase size and copy in smaller chunks | Rasmus Melchior Jacobsen | 2023-04-04 | 4 | -57/+118 | |
| | | | | | | | | | | | | | | | | | | | | | 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_boot | Rasmus Melchior Jacobsen | 2023-04-04 | 2 | -78/+78 | |
| | | |_|/ | |/| | | | | | | | | | | and use the aligned page buffer instead | |||||
| | | | | | ||||||
| | | \ \ | ||||||
| | *-. \ \ | Merge #1324 #1327 | bors[bot] | 2023-04-04 | 5 | -163/+247 | |
| | |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1324: Add MCO support for L4 and F4 families r=Dirbaio a=m-dupont Add MCO support for L4 and F4 as already done in F7. When the 'HSI' source is selected as MCO source, 'HSI' is activated (`set_hsion(true)`) . This is done to operate the MCO in case 'MSI' is chosen as the clock source for the CPU. The same applies to PLL, etc. 1327: Avoid write before erase r=Dirbaio a=rmja 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. I have made some thoughts about whether this is a breaking change between the app and firmware, i.e. whether adding the "Progress valid" field is breaking. My conclusion is that it is not a breaking change. For the case where an app uses this new FirmwareUpdater together with an old bootloader, what it now does, is that it: 1. Writes the progress valid field to all zeros. This field is not known in the old bootloader, so it actually writes a "current progress" index. 2. The entire state partition is erased - effectively removing any trace of 1. 3. Set magic This should be compatible. Co-authored-by: Mathieu Dupont <[email protected]> Co-authored-by: Rasmus Melchior Jacobsen <[email protected]> | |||||
| | | | * | | Fix compile error when verification is enabled | Rasmus Melchior Jacobsen | 2023-04-04 | 1 | -2/+2 | |
| | | | | | | ||||||
| | | | * | | Merge remote-tracking branch 'upstream/master' into avoid-write-before-erase | Rasmus Melchior Jacobsen | 2023-04-04 | 3 | -76/+12 | |
| | | | |\| | ||||||
| | | | * | | Avoid write to not-erased magic | Rasmus Melchior Jacobsen | 2023-04-04 | 4 | -81/+63 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 verification | Rasmus Melchior Jacobsen | 2023-04-03 | 3 | -142/+244 | |
| | | |/ / | ||||||
| | * | / | Expose read/write/erase on partition | Rasmus Melchior Jacobsen | 2023-04-04 | 1 | -16/+6 | |
| | | |/ | |/| | ||||||
| | * | | Remove FirmwareWriter | Rasmus Melchior Jacobsen | 2023-04-03 | 3 | -76/+12 | |
| | |/ | | | | | | | 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. | |||||
| | * | Add erase and wipe tests | Rasmus Melchior Jacobsen | 2023-03-31 | 2 | -1/+48 | |
| | | | ||||||
| | * | Let bootloader partition have read/write/erase operations | Rasmus Melchior Jacobsen | 2023-03-31 | 4 | -223/+195 | |
| | | | | | | | | | This change should not have any breaking changes. | |||||
| | * | Split bootloader implementation into multiple files | Rasmus Melchior Jacobsen | 2023-03-31 | 5 | -1171/+1194 | |
| | | | ||||||
| * | | embassy-boot: add default nightly feature, makes it possible to compile with ↵ | sander | 2023-03-22 | 1 | -1/+10 | |
| |/ | | | | the stable compiler | |||||
| * | Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy ↵ | Mehmet Ali Anil | 2023-03-07 | 1 | -3/+4 | |
| |\ | | | | | | | into emb-storage-async-0p4 | |||||
| * \ | Merge branch 'emb-storage-async-0p4' of https://github.com/Grus-BV/embassy ↵ | Mehmet Ali Anil | 2023-03-07 | 1 | -1/+1 | |
| |\ \ | |/ |/| | | | into emb-storage-async-0p4 | |||||
| * | | Merge upstream | Mehmet Ali Anil | 2023-03-07 | 1 | -35/+25 | |
| |\ \ | |/ |/| | ||||||
| * | | Bump embedded-storage-async to 0.4 | Mehmet Ali Anil | 2023-03-06 | 1 | -2/+2 | |
| |/ | ||||||
