OTA Updates for Embedded Linux: SWUpdate, RAUC and Mender Compared

Compare SWUpdate, RAUC and Mender for OTA updates on embedded Linux: packaging, layouts and whether you need a server. Based on each project's own docs.

Embedded Published 4 min read

Contents

SWUpdate, RAUC and Mender are three ways to ship over-the-air (OTA) updates to embedded Linux devices. SWUpdate and RAUC are update clients that run on the device, while Mender is a client plus a fleet-management server. This article compares them using each project’s own documentation.

What they have in common

All three can install a new system image without touching the running one, and all three document build-system integration, for example Yocto. They differ in how much they decide for you: how updates are packaged, what runs on the device, and whether a server is part of the product.

SWUpdate: a flexible installer

SWUpdate describes itself as a way to update software on an embedded system. Its central idea is the .swu image, which is described by a sw-description file. That file covers hardware compatibility, partitions, images, files, scripts, reboot flags, bootloader settings and versions.

Each image type is processed by a handler. The documentation lists handlers for UBI volumes, shell and Lua scripts, archives, eMMC, GPT, BTRFS, Docker, delta updates and more.

The update strategies page lists several layouts:

  • single copy, running as a standalone image;
  • double copy with fall-back;
  • double copy combined with a rescue system that the bootloader starts if neither copy boots;
  • split system and application updates, which transfer less data but need care to keep both parts compatible;
  • configuration-only updates.

SWUpdate can also run as a daemon in different modes. Suricatta handles server-driven updates (the docs mention wfx, generic HTTP servers and a hawkBit setup guide), and the Mongoose mode embeds a web server. Images can be signed (RSA, CMS certificates or GnuPG) and encrypted. The Yocto layer is meta-swupdate; the page I read does not mention Buildroot.

RAUC: a strict A/B client

RAUC calls itself a lightweight update client for the embedded device. On the host, the same tool creates and inspects update bundles.

Its model is built around slots: partitions, devices or volumes declared in a system configuration file. RAUC updates only slots that the running system is not using, and it supports A/B and A/B/C layouts. Fallback can also select a recovery system, with the handling left to the bootloader.

A bundle packs the images, a manifest and optional scripts into a SquashFS image. Signing is mandatory by design. The docs suggest self-signed certificates for development and a PKI for production. RAUC also lists built-in HTTP(S) streaming that needs no intermediate storage on the target.

RAUC does not pick the boot slot. The bootloader does, and RAUC talks to it through an interface for GRUB, U-Boot and barebox. After boot, rauc status mark-good or mark-bad reports the outcome. The docs recommend a hardware watchdog so a failed boot triggers fallback; see Hardware Watchdog on Linux.

RAUC is not a deployment server. The docs point to the separate rauc-hawkbit-updater project for hawkBit integration, and to a D-Bus API for applications that drive updates. Supported build systems are Yocto (meta-rauc), PTXdist and Buildroot.

Mender: client and server together

Mender is a client/server system for device fleets, maintained by Northern.tech. The server schedules rollouts. Updates are packaged as Artifacts, and the docs have sections on Deployments and Device Groups.

For OS updates, the docs describe a dual A/B scheme. The client writes the image to the inactive partition, verifies its checksum and sets a bootloader flag. After the first successful boot it commits the update. If the device reboots before that, the bootloader rolls back. Because the whole filesystem is replaced, changing data must live on a separate partition.

Application updates use Update Modules. The client runs in managed mode (with a server) or standalone mode (for example, updates from a USB drive). OS update guides exist for Debian, Yocto Project and Zephyr, and delta Artifacts are documented too.

Mender also has an Enterprise edition. The docs state that Mender Orchestrator is available only in the Enterprise plan, so check the licensing pages before you plan around a specific feature.

Which OTA update tool fits your device

This is a summary of the documented differences, not a benchmark:

SWUpdateRAUCMender
RoleDevice-side installerDevice-side installerClient plus server
Package.swu with sw-descriptionSigned SquashFS bundle with manifestArtifact
LayoutsSingle copy, double copy, rescue, splitSlot-based A/B and A/B/CDual A/B, plus Update Modules
ServerOptional (suricatta, hawkBit)Separate projects (hawkBit updater)Included

A few rules of thumb follow from the docs:

  • You need many layout options or custom image types (UBI, eMMC, Docker): SWUpdate’s handler model is the most open-ended.
  • You want a small client with a fixed A/B design and mandatory signatures: RAUC fits, and you bring your own server or hawkBit.
  • You manage a fleet and want a ready-made server and rollout tooling: Mender is the only one of the three that ships it as a core part.

Whichever you pick, test power-loss behavior and the bootloader integration on real hardware. For watching the bootloader during these tests, see Serial Console on Embedded Linux. If you build images with Buildroot, see Buildroot: Build a Minimal Linux Image for the build side.

Sources

  1. SWUpdate documentation
  2. SWUpdate: update strategies
  3. RAUC documentation
  4. RAUC basics
  5. Mender documentation
  6. Mender introduction

#Ota #Swupdate #Rauc #Mender #Embedded

This article was drafted with AI assistance, fact-checked against the sources listed above and reviewed by a human editor before publication. Spotted an error? See our corrections policy.