eBoot Bootloader
eBoot
Secure Bootloader
A modular C bootloader with Stage-0 and Stage-1, Ed25519 image authentication, slot management, and recovery code. Explore the implementation and configure it for your target.
OPEN SOURCE / C bootloader
eBoot bootloader
Follow the Stage-0 and Stage-1 boot chain, image verification, and recovery implementation.
github.com/embeddedos-org eBoot on GitHub (opens in a new tab)A closer look starts with the source.
Build from source
Follow the repository README for prerequisites and target-specific setup.
cmake -S . -B build -DEBLDR_BUILD_TESTS=ON
cmake --build build --parallel
ctest --test-dir build --output-on-failurePROJECT NOTEChoose a target board and provision the production key as documented. Board configuration and security setup are required before deployment.
Boot Sequence
- STAGE 01
Stage-0
Early reset entry, hardware initialization, watchdog, and transition to Stage-1.
- STAGE 02
Stage-1
Scan available images, evaluate boot policy, and select an application or RTOS image.
- STAGE 03
Image authentication
Inspect the Ed25519 verification, image metadata, key provisioning, and rollback logic in core/.
- STAGE 04
Payload hand-off
Transfer control to the selected image after the configured checks; use recovery when normal boot cannot proceed.
stage0/ Reset entry and hardware initializationstage1/ Image selection and payload hand-offcore/ Verification, slots, recovery, and updatesdocs/ Threat model, key lifecycle, and configuration
eBoot Features
Two-stage boot chain
Stage-0 handles early bring-up; Stage-1 handles image selection and payload hand-off.
Image authentication
The core includes Ed25519 image verification. Read the security options and key-lifecycle documentation before configuring a target.
A/B slot management
Slot selection, anti-rollback counters, and firmware-update modules are present in the core.
Production-key configuration
A real-board Release build requires a production public key unless the documented development-key override is explicitly enabled.
Recovery paths
The repository includes authenticated recovery, a boot menu, and UART transport code.
Target-specific builds
Native builds compile the platform-independent libraries. Cross-compiles select a board and toolchain explicitly.
Secure your device from boot
Read the build guide, select a target, and configure the trust anchor before deploying firmware.