Mender Blog

Engineering robust remote software delivery for embedded systems

Written by Editorial Team | Oct 2, 2025 11:00:00 AM

Over-the-air (OTA) update management enables the remote delivery of firmware, application code, and complete root file system (rootfs) updates to embedded devices without requiring physical access. OTA updates eliminate the need for onsite technicians with USB interfaces or specialized programming equipment (such as, automotive industry CAN bus-connected ECUs that may require proprietary interfaces available only at authorized service locations).

The technical complexity of OTA update systems spans multiple domains, from embedded software architecture to network security protocols, and requires careful consideration regarding update atomicity, cryptographic verification, and system recovery mechanisms.

The importance of system architecture and update mechanisms

Atomic update delivery

OTA update systems implement atomic update mechanisms to ensure target devices receive complete, verified updates. There are two primary approaches commonly deployed:

Full system updates: Complete root file system replacement ensures consistency across all system components, but also requires significant bandwidth allocation and consumption to support the full data packages.

Delta updates: Delta update algorithms calculate binary differences between firmware versions and transmit only the changed sectors. Incremental updates containing only the modified components reduce the update size, and therefore, bandwidth requirements for large device fleets operating on cellular networks (e.g., LTE or 3G). 

Partition architecture and rollback mechanisms

Embedded systems in critical environments leverage A/B partition schemes with active and passive rootfs and kernel partitions. The update process writes to the passive partition while the active partition continues operation, switching partitions only after successful verification. Recovery mechanisms monitor boot sequences and system health checks, automatically reverting to the previous firmware version if update validation fails or system instability is detected. The A/B partition architecture maintains a functional backup system to prevent device failure ("bricking") during update errors, including power interruption or loss situations. 

Integrating a security framework and cryptographic verification

Code signing and authentication

Secure OTA updates implement cryptographic signatures using asymmetric key algorithms to verify update authenticity and integrity. Digital signatures prevent tampering during transmission; target devices receive and install only authorized firmware versions.

A secure OTA update process validates:

  • Update source authentication through certificate chains
  • Binary integrity through cryptographic hash verification
  • Version compatibility with target hardware platforms
  • Sensitive payload protection with digital envelope encryption

Access control and authorization

Role-based access control (RBAC) functionality is a security best practice. In addition to limiting overall system access, well-designed RBAC systems restrict update deployments based on user privileges. For example, development teams may only deploy test firmware to limited device subsets, while production deployments require elevated authorization levels. Utilizing a staged deployment approach, enforced by RBAC and other security functions, prevents unauthorized firmware distribution while enabling controlled testing procedures.

Industry applications and technical requirements

Automotive ECU management

Modern vehicles contain more than 80 electronic control units (ECUs), each requiring independent firmware maintenance. Based on statistics, the software defect rate is approximately 25 bugs per 1,000 lines of code; each ECU averages 1,250,000 lines of code, resulting in potentially 31,250 software defects.

Bug fixes, security patches, and functionality improvements necessitate robust update mechanisms. With the vast amount of ECUs and software dependencies in modern vehicles, OTA updates play a vital role in automotive software configuration management.

Automotive OTA update frameworks include:

Adaptive AUTOSAR: A service-oriented architecture replacing signal-based CAN bus communication to enable more flexible update mechanisms through standardized interfaces.

Uptane framework: Designed specifically for automotive ground vehicle security, an architecture that implements hierarchical key management and metadata verification for coordinating multiple ECU updates.

ASSURED framework: A framework defined by five core security requirements:

  1. End-to-end authentication and integrity verification
  2. Controller-based update authorization
  3. Installation attestation mechanisms
  4. Secure storage and isolated execution environments
  5. Minimal computational overhead for resource-constrained devices

As software defined vehicles (SDVs) continue to grow in complexity, advanced OTA update capabilities are required for success. There are many challenges and requirements for a proper OTA update solution that considers proper configuration management. 

Enterprise IoT integration

Enterprise deployments must handle concurrent updates across thousands of devices while maintaining audit trails for regulatory compliance. Device categorization based on hardware attributes, geographic deployment, and operational requirements enables targeted update campaigns with granular control over deployment timing and rollback procedures

OTA update systems integrated with enterprise platforms enable fleet management through existing ERP systems. Cloud platform integration (e.g., Azure IoT, AWS IoT) provides scalable device provisioning and update distribution capabilities. Single sign-on (SSO) integration with identity providers ensures consistent access control across enterprise systems.

Key technical implementation considerations

Bandwidth optimization

Large-scale deployments require careful bandwidth management, particularly for cellular-connected devices where data usage directly impacts overhead costs. Delta update algorithms and compression techniques reduce transmission overhead while maintaining update reliability.

Power management

Update processes must account for power interruption scenarios, implementing checkpoint mechanisms and resume capabilities. Battery-powered devices require power budget analysis to ensure sufficient energy reserves for complete update cycles.

Storage management

Memory constraints require careful management for the bootloader, active firmware, and backup images within limited storage footprints. OTA updates use cloud storage to save space on deployed devices. 

Real-time system constraints

Safety-critical and real-time systems require update scheduling that minimizes operational disruption. Hot-swapping capabilities and redundant system architectures enable device updating without service interruption.

End-to-end OTA update implementation example

The technical complexity of implementing robust OTA update management can seem daunting. Yet, as technology continues to advance, a production-ready solution that addresses all the critical requirements outlined above is a necessity. As an enterprise-grade OTA update platform, Mender eliminates the need to build these sophisticated systems in-house.

Enterprise-ready architecture: The dual rootfs partition system with automatic rollback mechanisms in Mender ensures devices never get bricked, while supporting both full system and delta updates to optimize bandwidth usage across the fleet.

Security by design: Built-in cryptographic verification, code signing, and role-based access control provide the security framework embedded devices require, with compliance-ready audit trails for regulatory and industry standards.

Scalable fleet management: Whether managing automotive ECUs, industrial IoT devices, or consumer electronics, the seamless integration of Mender with existing enterprise systems supports everything from small pilot deployments to global fleets of millions of devices.

Don't let the complexity of OTA updates slow down your product development or compromise your device security. Try Mender today and experience first-hand the power of enterprise-grade OTA updates and fleet management.