r/raspberrypipico • • 6d ago

rust I wrote a secure boot bootloader (MCUboot compatible) in Rust for the Pico 2 and ESP32

https://github.com/microtun/microtun-boot

Time to share microtun boot, a new secure boot bootloader for ESP32 and Raspberry Pi Pico devices. Secure OTA updates, automatic rollbacks, fault injection hardening, memory safety. Built on the embedded rust ecosystem via the embedded-hal / embedded-storage crates.

Doesn't the boot ROM do this already? Yes mostly but microtun boot is designed as a vendor agnostic abstraction so that I can share firmware packaging and signing workflows across multiple IoT devices. Plus the MCUboot tooling is excellent and well battle tested.

Yes there is a zephyr fork with Pico 2 MCUboot support that I might have been able to use. Sure, but I wanted to remain in the rust ecosystem for this.

6 Upvotes

1 comment sorted by

2

u/[deleted] 6d ago

So why would someone use this and not roll their own?

It's not that complicated to have signed OTA with keys in OTP.

On something like pico this would just take valuable space and add complexity