rustBoot is a standalone bootloader, written entirely in Rust, designed to run on anything from...

rustBoot is a standalone bootloader, written entirely in Rust, designed to run on anything from a microcontroller to a system on chip

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:

  • support for ARM Cortex-M, Cortex-A micro-architectures
  • support for multi-slot partitioning of microcontroller flash memory. This allows us to implement the boot/update approach for bare-metal firmware updates.
  • support for Aarch64 linux booting
  • elliptic curve cryptography for integrity and authenticity verification using RustCrypto crates
  • a tiny hardware abstraction layer for non-volatile memory (i.e. flash) access.
  • anti-rollback protection via version numbering.
  • a fully memory safe core-bootloader implementation with safe parsers and firmware-update logic.
  • power-interruptible firmware updates along with the assurance of fall-back availability.

Features planned:

  • switch to rust-based signing tools for manifest-header creation, key-generation and firmware signing to improve scalability and security (currently examples use a python implementation for this).
  • support for external flash devices (ex: SPI flash) and serial/console logging interfaces.
  • support for ARM TrustZone-M and A and certified secure hardware elements - microchip ATECC608a, NXP SE050, STSAFE-100
  • support for a highly secure and efficient firmware transport method over end-end mutually authenticated and encrypted channels via ockam-networking-libraries.

Documentation:

You can read the book for free online.

Note: rustBoot and the book are 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 #404)

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.

Information - Updated Mar 18, 2022

Stars: 30
Forks: 4
Issues: 1

HAL for the STM32F1 family of microcontrollers

mini for programming and debugging

HAL for the STM32F1 family of microcontrollers

A proof-of-concept FT2232D emulation firmware for an STM32F042 microcontroller

Warning: this project is not finished yet, lots of FTDI commands are not implemented

A proof-of-concept FT2232D emulation firmware for an STM32F042 microcontroller

PACs for nRF microcontrollers

For a more user-friendly interface to the peripherals, the

PACs for nRF microcontrollers

Startup code and minimal runtime for Cortex-M microcontrollers

This project is developed and maintained by the Documentation

Startup code and minimal runtime for Cortex-M microcontrollers

Microchip/Atmel ATSAM4 HAL for Rust

This repository holds the Hardware Abstraction Layer Crate for the Microchip/Atmel ATSAM4 microcontroller family

Microchip/Atmel ATSAM4 HAL for Rust

Rust Ethernet Driver for STM32F* microcontrollers

Supported microcontrollers

Rust Ethernet Driver for STM32F* microcontrollers

Demos for the esb crate

Choose the microcontroller with one of the following features:

Demos for the esb crate

OxCC stm32f767-hal

HAL for the STM32F767ZIT6 microcontroller used by OxCC

OxCC stm32f767-hal

HAL for the STM32WB55 family of microcontrollers

MIT license (LICENSE-MIT or

HAL for the STM32WB55 family of microcontrollers
Facebook Instagram Twitter GitHub Dribbble
Privacy