rustBoot
rustBoot copied to clipboard
rustBoot is a standalone bootloader written entirely in `Rust`, designed to run on anything from a microcontroller to a system on chip. It can be used to boot into bare-metal firmware or Linux.
rustBoot
rustBoot is a standalone bootloader, written entirely in Rust, designed to run on anything from a microcontroller to a system on chip. It can be used to boot into bare-metal firmware or Linux.

Why rustBoot?
rustBoot aims to offer an OS and micro-architecture agnostic (i.e. highly portable) secure bootloader which is standards-compatible and easy to integrate into existing embedded software projects.

Features currently supported:
- [x] support for
ARM Cortex-M, Cortex-Amicro-architectures - [x] support for multi-slot partitioning of microcontroller flash memory. This allows us to implement the
boot/updateapproach for bare-metalfirmware updates. - [x] support for
Aarch64 linuxbooting - [x] elliptic curve cryptography for integrity and authenticity verification using
RustCryptocrates - [x] a tiny hardware abstraction layer for non-volatile memory (i.e. flash) access.
- [x] anti-rollback protection via version numbering.
- [x] a fully memory safe core-bootloader implementation with safe parsers and firmware-update logic.
- [x] power-interruptible firmware updates along with the assurance of fall-back availability.
- [x] a
signing utilityto sign bare-metal firmware and fit-image(s), written in pure rust.
Features planned:
- [ ] support for external flash devices (ex: SPI flash) and serial/console logging interfaces.
- [ ] support for
ARM TrustZone-M and Aand certifiedsecure hardware elements- microchip ATECC608a, NXP SE050, STSAFE-100 - [ ] support for a highly secure and efficient
firmware transportmethod over end-end mutually authenticated and encrypted channels via ockam-networking-libraries.
Documentation:
You can read the book for free online..
Note:
rustBootand thebookare still in development (i.e. a work in progress).
Acknowledgment:
rustBoot's design was influenced by wolfBoot. It borrows wolfBoot's reliable-update design idea and builds on it with rust's memory safety guarantees, safer parsing libraries, compile-time state-transition checks and easy integration with crates (such as boards, HALs drivers etc.) developed by the embedded-rust community.
Support:
For questions, issues, feature requests, and other changes, please file an issue in the github project.
License:
rustBoot is licensed under
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Contributing:
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the MIT license, shall be licensed as above, without any additional terms or conditions.