This is an old revision of the document!


03. RAUC

Finally, it comes down to installing RAUC into the Debian partitions.

๐Ÿ“„ Our script: rauc-utils/install.sh is already complete. Feel free to read and understand it.

This script will:

  1. Mount both rootfsA and rootfsB
  2. Uses QEMU and chroot to install:
    1. rauc
    2. your ca.cert.pem (certificate used to sign the update images)
    3. system.conf
    4. rauc-mark-good.service
  3. Sets up /etc/fw_env.config, fstab, and enables systemd services

But in order to run it, recursively copy the entire RAUC utils directory from host to somewhere inside the debian rootfs (e.g., /root/rauc-utils/) and run it using chroot-enter.sh (as you've done in the prev. task).

Generate the disk image

We can now run mk-disk-image2.sh. The disk.img will be updated with 4 partitions (boot, A, B + data), Debian will be copied to the first 2 EXT4 partitions and the bootloader will be installed at 32KB offset (the SoC's BL1/BOOTROM wants it there).

Flashing the board

Power up the board and go into u-boot. Let fastboot start and use fastboot flash 0:0 disk.img.

Use your root password (hope you set it!).

Once Debian booted, check:

mount | grep rootfs
cat /etc/rauc/system.conf
ass/labs-2025/04/tasks/03.1784201994.txt.gz ยท Last modified: 2026/07/16 14:39 by florin.stancu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0