Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rauc

> 开发工具
Open source

Safe and secure software updates for embedded Linux

1.2K stars0 likes1 views
WebsiteGitHub

About

Safe and secure software updates for embedded Linux

.. image:: rauc_logo_small.png :alt: RAUC logo :align: center

RAUC - Robust Auto-Update Controller

|LGPLv2.1| |CI_branch| |Codecov_branch| |Coverity| |codeql| |OSS-Fuzz| |Documentation| |Matrix| |OpenSSF Best Practices| |OpenSSF Scorecard| |Repology|

.. raw:: html

RAUC controls the update process on embedded Linux systems. It is both a target application that runs as an update client and a host/target tool that allows you to create, inspect and modify update files ("bundles").

Source Code: https://github.com/rauc/rauc

Documentation: https://rauc.readthedocs.org/

Chat: IRC channel #rauc on libera.chat (bridged to the Matrix channel #rauc:matrix.org _)

Features

  • Fail-Safe & Atomic:

    • An update may be interrupted at any point without breaking the running system.
    • Update compatibility check
    • Atomic bootloader updates (eMMC boot partitions, MBR, GPT)
  • Cryptographic signing and verification of updates using OpenSSL (signatures based on x.509 certificates)

    • Keys and certificates on PKCS#11 tokens (HSMs) are supported
  • Flexible and customizable redundancy/storage setup

    • Symmetric setup (Root-FS A & B)
    • Asymmetric setup (recovery & normal)
    • Application partition, data partitions, ...
    • Allows grouping of multiple slots (rootfs, appfs) as update targets
  • Built-in HTTP(S) streaming mode

    • No intermediate storage on target required
  • Delta-like adaptive update support

    • Transparent selection of download optimization
  • Alternative network delta-streaming mode (using casync tool)

    • chunk-based binary delta updates
    • special bundle format and external chunk store
  • Bundle encryption for multiple recipients

  • Bootloader support:

    • grub _
    • barebox _
    • u-boot _
    • EFI _
    • Custom implementation
  • Storage support:

    • read-only filesystems: SquashFS, EROFS, dm-verity protected images, ...
    • read-write filesystems: ext4, VFAT, UBIFS, JFFS2
    • eMMC boot partitions (atomic update)
    • UBI volumes
    • raw NAND flash (using nandwrite)
    • raw NOR flash (using flashcp)
    • MBR partition table
    • GPT partition table
  • Independent from update source

    • Simple webserver (e.g. lighttpd)
    • Software provisioning server (e.g. hawkBit with rauc-hawkbit-updater _)
    • USB Stick
  • Controllable via D-Bus interface

  • Supports data migration

  • Network protocol support using libcurl (https, http, tftp/ftp, ssh, ...)

  • Several layers of update customization

    • Update-specific extensions (hooks)
    • System-specific extensions (handlers)
    • fully custom update script

Host Features


*  Create and sign update bundles
*  Resign bundles
*  Encrypt bundles
*  Inspect bundle files

Target Features
  • Run as a system service (D-Bus interface)
  • Install bundles
  • View system status information
  • Change status of symmetric/asymmetric/custom slots

Target Requirements

  • Boot state storage

    • GRUB: environment file on SD/eMMC/SSD/disk
    • Barebox: State partition on EEPROM/FRAM/MRAM or NAND flash
    • U-Boot: environment variable
    • EFI: EFI variables
    • Custom: depends on implementation
  • Boot target selection support in the bootloader

  • Enough mass storage for two symmetric/asymmetric/custom slots

  • Storage location and storage space for the bundle:

    • For USB stick update: Sufficent space on the stick for (compressed) bundle, no on-target storage required

    • For HTTP(S) bundle streaming installation: Sufficient space on server, no on-target storage requied

      • For adaptive updates: some on-target storage for meta-data
    • For casync-based updates: temporary on-target storage for downloaded chunks required

    • For external (non-streaming) download: Sufficient temporary on-target storage space for (compressed) bundle

  • Hardware watchdog (optional, but recommended)

  • RTC (optional, but recommended)

Usage

Please see the documentation __ for details.

Prerequisites

Host (Build) Prerequisites


-  build-essential
-  meson
-  libtool
-  libdbus-1-dev
-  libglib2.0-dev
-  libcurl3-dev
-  libssl-dev

.. code-block:: sh

   sudo apt-get install build-essential meson libtool libdbus-1-dev libglib2.0-dev libcurl3-dev libssl-dev

For HTTP(S) streaming support, you also need netlink protocol headers:

.. code-block:: sh

    sudo apt-get install libnl-genl-3-dev

If you intend to use json-support you also need

.. code-block:: sh

    sudo apt-get install libjson-glib-dev

Target Prerequisites
~~~~~~~~~~~~~~~~~~~~

Required kernel options (either ``y`` or ``m``):

-  ``CONFIG_MD``
-  ``CONFIG_BLK_DEV_DM``
-  ``CONFIG_BLK_DEV_LOOP``
-  ``CONFIG_DM_VERITY``
-  ``CONFIG_SQUASHFS``
-  ``CONFIG_CRYPTO_SHA256``
-  ``CONFIG_BLK_DEV_NBD`` (for streaming support)
-  ``CONFIG_DM_CRYPT`` (for encryption support)
-  ``CONFIG_CRYPTO_AES`` (for encryption support)

For using tar archive in RAUC bundles with Busybox tar, you have to enable the
following Busybox feature:

-  ``CONFIG_FEATURE_TAR_AUTODETECT=y``
-  ``CONFIG_FEATURE_TAR_LONG_OPTIONS=y``

Depending on the actual storage type and/or filesystem used, further target
tools might be required.
The documentation chapter
`Required Target Tools `_
gives a more detailed list on these.

Building from Sources
---------------------

.. note:: RAUC is intended to be built both as a host tool as well as a target
   tool (service). Therefore it is fully prepared for cross-compilation with meson.

.. code-block:: sh

    git clone https://github.com/rauc/rauc
    cd rauc
    meson setup build
    meson compile -C build # or 'ninja -C build' on meson > content-dir/manifest.raucm `_
section for more details.

License
-------

Copyright (C) 2015–2026 RAUC project

RAUC is free software; you can redistribute it and/or modify it under the terms
of the GNU Lesser General Public License as published by the Free Software
Foundation; either version 2.1 of the License, or (at your option) any later
version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this source code, see the file named `COPYING`_. If not, see
https://www.gnu.org/licenses/.

.. |LGPLv2.1| image:: https://img.shields.io/badge/license-LGPLv2.1-blue.svg
   :target: #license
.. _COPYING: https://raw.githubusercontent.com/rauc/rauc/master/COPYING
.. |CI_branch| image:: https://github.com/rauc/rauc/workflows/tests/badge.svg
   :target: https://github.com/rauc/rauc/actions?query=workflow%3Atests
.. |Codecov_branch| image:: https://codecov.io/gh/rauc/rauc/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/rauc/rauc
.. |Coverity| image:: https://scan.coverity.com/projects/22299/badge.svg
   :target: https://scan.coverity.com/projects/22299
.. |Documentation| image:: https://readthedocs.org/projects/rauc/badge/?version=latest
   :target: http://rauc.readthedocs.org/en/latest/?badge=latest
.. |Matrix| image:: https://img.shields.io/matrix/rauc:matrix.org?label=matrix%20chat
   :target: https://matrix.to/#/#rauc:matrix.org
.. |codeql| image:: https://github.com/rauc/rauc/workflows/CodeQL/badge.svg
   :target: https://github.com/rauc/rauc/actions/workflows/codeql.yml
.. |OSS-Fuzz| image:: https://oss-fuzz-build-logs.storage.googleapis.com/badges/rauc.svg
   :target: https://oss-fuzz-build-logs.storage.googleapis.com/index.html#rauc
.. |OpenSSF Best Practices| image:: https://www.bestpractices.dev/projects/5075/badge
   :target: https://www.bestpractices.dev/projects/5075
.. |OpenSSF Scorecard| image:: https://api.securityscorecards.dev/projects/github.com/rauc/rauc/badge
   :target: https://securityscorecards.dev/viewer/?uri=github.com/rauc/rauc
.. |Repology| image:: https://repology.org/badge/tiny-repos/rauc.svg?header=distribution%20packages
   :target: https://repology.org/project/rauc/versions

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Cclientembeddedfirmware-updatefirmware-updates

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具