Linux — Buildroot
The buildroot-otapulse package builds the OTA-Pulse agent into your Buildroot
image, alongside the systemd unit, the A/B partition layout and your signing
public key. If you build with Yocto instead, see
Linux — Yocto.
Prerequisites
- Buildroot 2023.02 or newer
- systemd as the init system (
BR2_INIT_SYSTEMD) - A board with dual A/B root partitions plus a persistent data partition
- Your artifact signing public key
Integration
-
Add the external package.
Point
BR2_EXTERNALat thebuildroot-otapulsetree and enable the package inmenuconfigunder Target packages. -
Configure the server and tenant token.
Set your server URL and tenant token in the package configuration. They are written into
/etc/otapulse/otapulse.confin the built image. -
Install your signing public key.
The public key is baked into the read-only root filesystem at build time. The private key never touches the device.
-
Lay out A/B partitions.
Your
genimageconfiguration needs two root filesystem partitions of equal size plus a persistent data partition that survives updates. -
Build and flash.
Build the image as usual and flash it. On first boot the agent registers itself with the server and appears in the console.