OTA Update Tools: Find The Perfect Fit For Your Application
Maintaining firmware in embedded systems is an ongoing challenge. Over-the-air (OTA) flash image programmers simplify this by enabling remote updates, ensuring devices remain functional, secure, and feature-complete. This guide explains OTA flash programmers, highlights the importance of A/B partitioning, and reviews three popular tools: SWUpdate, RAUC, and Mender. It also explores the concepts of attended and unattended updates and clarifies how these tools handle verification and rollback responsibilities.
While SWUpdate, RAUC, and Mender are widely used, other OTA solutions exist, and some may better suit specific contexts. However, developing your own OTA system is rarely advisable due to the complexity of handling rollbacks, security, and error recovery. Established tools allow you to focus on your application, leveraging proven solutions to avoid costly errors.
What Is an OTA Updater?
An OTA updater is a utility that manages the delivery, validation, and installation of software updates to embedded devices. These tools ensure updates are applied reliably and securely, reducing the risks of downtime or device failures.
An OTA updater is a nominal feature of a running device, meaning the device must be operational for the OTA updater to function. It typically requires either a system service running in the background or a specific command to be executed via a script. Importantly, the device must be functional and running its existing firmware to perform an OTA update.
It’s also critical to understand what an OTA updater is not:
- It is not commonly used during development, except when testing the OTA updater itself. For most development scenarios, updates are directly applied via low-level tools or direct flashing.
- It is not a debricking tool. If the device is already bricked or unable to boot, an OTA updater cannot recover it. In such cases, you’ll need a low-level Flash programmer (e.g., JTAG-based tools or equivalent) to restore the device.
- It is not a production Flash programmer. Production flashing tools are designed for initial programming and setup during the manufacturing process, whereas OTA updaters are intended for devices already deployed in the field.
Why Use an OTA Updater?
OTA solutions provide several key benefits:
- Reliability: Robust mechanisms to recover from failed updates.
- Flexibility: Choose between attended and unattended updates, depending on the application:
- Attended Updates are initiated and supervised by an authorized operator, locally or remotely. They suit environments where installation timing and execution require direct human control.
- Unattended Updates are perfect for connected devices and large-scale deployments, allowing updates to be applied automatically without human intervention.
- Scalability: Manage updates for thousands of devices remotely.
- Security: Protect updates using cryptographic validation.
- Efficiency: Minimize downtime and operational overhead.
- Cost Savings: Reduce the need for on-site updates.
This flexibility ensures that OTA solutions can cater to a wide variety of deployment scenarios and device requirements.
The Role of A/B Partitioning
A/B partitioning improves update reliability by maintaining two system slots, each of which may contain one or more partitions. Updates are installed on the inactive slot, preserving the currently running system as a fallback. Recovery depends on correctly integrated boot selection, failure detection, and boot confirmation mechanisms.
How A/B Partitioning Works
- Initial Setup:
Partition A runs the current system, while Partition B is inactive. - Update Process:
- The update is downloaded and installed on the inactive partition (B).
- The bootloader is configured to boot from the updated partition on restart.
- Verification:
- After rebooting into Partition B, the system performs health checks to determine whether the updated software operates correctly.
- If these checks succeed, the system confirms the boot as successful, keeping B as the selected partition for subsequent boots.
- If the boot remains unconfirmed, the bootloader can select Partition A on a subsequent reboot, according to the configured retry and fallback policy.
How a Successful Update Is Determined
The verification mechanisms are a shared responsibility between the OTA updater, the bootloader, and the application runtime.
- OTA Updater Role
- Downloads, validates, and installs the update package.
- Configures the bootloader to boot from the updated partition.
- Sets a “pending” status for the update, requiring confirmation of success.
- Bootloader Role
- Boots the updated slot for a trial period, using persistent metadata to track boot attempts and confirmation status.
- On subsequent boots, selects a fallback slot if the updated system has not been confirmed and the configured number of attempts has been exhausted.
- Relies on a reset to regain control if the system hangs. A hardware watchdog is typically used to trigger this reset, allowing the bootloader to retry or select the fallback slot.
- Application Runtime Role
- Performs system- or application-level checks, e.g., ensuring critical resources are present and services are running.
- Confirms the update’s success by setting a flag or communicating with the bootloader.
- May trigger a manual rollback if runtime issues are detected post-update.
Advantages of A/B Partitioning
- Atomic System Selection: With correctly managed boot metadata, the device can select either the previous system or the fully installed update.
- Rollback Capability: Boot confirmation and fallback logic allow the device to return to the previous system if the update fails, provided shared persistent data remains compatible.
- Reduced Downtime: The current system can continue running while the inactive slot is updated, with downtime mainly associated with rebooting and starting the new version.
- Power Failure Resilience: An interrupted installation leaves the active slot untouched. Recovery also depends on protecting boot metadata and any shared components modified during the update.
Drawbacks of A/B Partitioning
While A/B partitioning provides significant reliability benefits, it comes with some trade-offs:
- Increased Storage Requirements:
A/B partitioning requires storage for two copies of the system components covered by the update strategy, typically the kernel and root filesystem. Persistent application data may remain in a shared partition, so the total storage requirement is not necessarily doubled. Each system slot must also leave enough room for future software growth. - Reserved Fallback Capacity:
The inactive slot reserves storage for the next update or retains the previous system as a fallback. This capacity is unavailable for general application data, which can be a significant constraint on devices with limited storage. - Complex Bootloader Configuration:
A robust bootloader setup (e.g., U-Boot or GRUB) is essential to manage partition switching and rollback, adding complexity to the system. - Application Involvement in Validation:
The application or runtime environment is often required to perform system-level checks to determine if the updated partition is functioning correctly. This adds responsibility to the application layer, requiring the design and implementation of validation logic, such as ensuring that critical services are running or hardware is operational. Without this validation, the system cannot confirm the success of the update, leaving it vulnerable to potential failures.
Despite these drawbacks, A/B partitioning remains a reliable solution for managing OTA updates, especially in critical systems where ensuring a functional fallback is essential. However, these challenges highlight the importance of selecting tools and frameworks that can help mitigate the additional complexity.
Attended vs. Unattended Updates
OTA updates can be categorized based on the level of human involvement required.
Attended Updates
Attended updates are initiated and supervised by an operator.
- Use Cases:
- Mission-critical systems like medical devices or industrial equipment.
- Early-stage testing where oversight ensures issues are resolved quickly.
- Examples:
- SWUpdate or RAUC can be invoked manually by a technician during testing or controlled updates.
- Advantages:
- Greater control and immediate intervention for issues.
- Suitable for critical or non-scalable deployments.
- Challenges:
- Time-intensive and less scalable for large fleets.
Unattended Updates
Unattended updates run without an operator supervising each installation. The system must handle expected failures automatically, including recovery or rollback where supported. Some faults may still require remote or on-site intervention.
- Use Cases:
- IoT devices like smart home appliances or automotive systems.
- Large-scale deployments where manual updates are impractical.
- Examples:
- Mender’s client running in the background, automatically fetching updates from its cloud platform.
- RAUC triggered by systemd timers or scripts for unattended workflows.
- Advantages:
- Highly scalable and efficient.
- Reduces operational overhead.
- Challenges:
- Requires a reliable way to make update packages available to the device, whether through a network connection or local storage. Network-based deployments must also handle interrupted transfers and temporary server unavailability.
- Requires robust error handling and rollback mechanisms.
A Deeper Dive Into Three Popular OTA Updaters
When selecting an OTA updater, it’s essential to understand the strengths and features of each tool. Let’s dive into SWUpdate, RAUC, and Mender, let’s review their unique features and see how they address different needs.
SWUpdate

SWUpdate is an open-source OTA tool known for its flexibility and lightweight design, making it a favorite for embedded systems that require custom update workflows. It’s like a toolbox that can adapt to various update scenarios, whether you need single-file updates or complex multi-part updates.
One of SWUpdate’s standout features is its support for Lua scripting, which lets you define how updates should be downloaded, validated, installed, and even customized. This customization makes it ideal for developers who want fine-grained control over their update process. It also supports multiple transport protocols, including HTTP, HTTPS, and even local storage methods like USB drives.
SWUpdate supports A/B update strategies by installing software on the inactive slot and updating persistent bootloader metadata. Rollback requires coordinated bootloader logic, boot confirmation, and a reset mechanism for failed boots. With these elements correctly integrated, the device can return to the previous slot if the updated system fails to start or pass its health checks.
SWUpdate supports streaming installation: compatible handlers can write incoming image data directly to its destination without storing a complete temporary copy. This behavior is enabled per image through the installed-directly option. It can reduce temporary storage requirements, particularly when temporary files would otherwise reside in RAM. This capability is not unique to SWUpdate: RAUC also supports HTTP(S) streaming, subject to its bundle format, server, and kernel requirements.
SWUpdate supports both attended and unattended updates. Updates can be triggered manually or automated through scripts and system services. For server-managed deployments, SWUpdate includes a daemon mode called Suricatta, which periodically checks a remote server for updates. Its built-in Eclipse hawkBit connector handles downloading and installing updates, then reporting their status. SWUpdate therefore provides backend integration, while fleet management itself is handled by the external platform.
SWUpdate is particularly well-suited to systems requiring custom installation workflows or updates spanning several types of components. Its configurable feature set also allows it to be tailored to resource-constrained devices. This flexibility often requires more integration work than RAUC’s more structured approach, particularly for conventional A/B system updates. The trade-off is greater control over the installation process.
RAUC

RAUC, or Robust Auto-Update Controller, is an update framework designed for embedded Linux systems. It combines mandatory bundle signing, robust installation, and bootloader integration. With a properly configured redundant storage layout and boot confirmation mechanism, it supports recovery from interrupted installations and failed boots.
RAUC supports redundant storage layouts, including symmetric A/B systems and asymmetric setups with a main system and a recovery environment. In an A/B configuration, it installs updates on the inactive slots and configures the bootloader to try the updated system. Boot confirmation and fallback behavior must be integrated with the bootloader and the system’s health checks.
RAUC focuses on installing updates, while allowing deployment workflows to be managed separately. On the device, it provides a service with a D-Bus API, and installations can be triggered through its command-line interface or directly by another application. On systemd-based systems, the service can be started through D-Bus activation. This allows RAUC to fit into either operator-controlled or automated update workflows.
RAUC supports both attended and unattended updates, giving you the flexibility to either supervise updates in critical environments or automate them for large-scale deployments. With its focus on security, atomicity, and rollback, RAUC is an excellent tool for industrial systems, IoT devices, or any scenario where downtime or bricking is unacceptable.
Mender

Mender takes a more comprehensive approach to OTA updates, offering not just an update tool but an entire ecosystem for managing device fleets. Mender is a dual-licensed solution. Its open-source edition includes both the device client and a deployment management server, while commercial offerings provide additional capabilities for managing deployments at scale, as well as hosted services and professional support.
Mender integrates unattended updates into its client-server architecture. In managed mode, the device client periodically checks the server for deployments and handles their installation. This makes it particularly suited to connected fleets where manual intervention is impractical. It also supports standalone mode, allowing updates to be triggered locally without a server, including from files delivered on removable media.
For full operating system updates, Mender uses A/B partitioning, with the client and bootloader coordinating boot confirmation and rollback. Mender also supports other update types through its Update Module framework, including applications, containers, and individual files. These updates do not necessarily require A/B system partitions; their installation and rollback behavior depend on the module implementation.
While Mender excels in scalability and automation, its cloud features in the commercial version might be overkill for smaller projects. However, for teams managing thousands of devices, Mender’s built-in tools for update scheduling, monitoring, and rollback make it a robust choice.
Which Tool Is Right for You?
These tools overlap in the types of updates they can perform. The choice depends more on the required installation workflows, recovery architecture, and integration with deployment infrastructure.
RAUC is a strong candidate for systems that need signed update bundles, an explicit description of update slots, and integration with bootloader-based recovery. Its image-oriented approach suits products where the operating system is built and validated as a coherent release. Deployment orchestration can be provided by a separate application or backend.
SWUpdate provides a flexible installation framework that supports both complete system images and more targeted updates, such as individual files, bootloaders, or peripheral firmware. Its configurable handlers and scripting support make it particularly useful when a product requires custom installation procedures or coordination between different components. The reliability and rollback guarantees depend on the update strategy implemented for those components.
Mender combines a device updater with a deployment backend and web interface, making it a strong candidate when integrated fleet management is a priority. It supports A/B operating system updates as well as targeted updates through its Update Module framework. Its main distinction is the integration between device-side update handling and server-side deployment management.
Your decision ultimately depends on your project’s scale, requirements for customization, and tolerance for complexity. Each of these tools has its place in the embedded systems landscape, and choosing the right one can make all the difference in maintaining your devices reliably and efficiently.