Devolar.net
Practice · Verification & Build Systems

Reproducible firmware builds and automated hardware-in-the-loop CI

If your firmware only builds on one developer's workstation and is tested manually on Fridays, every release is a gamble. We automate both hermetic builds and real-silicon verification.

Every commit built hermetically and tested on physical target silicon

Five years into a product's life, upstream Git repositories disappear, compiler versions shift and manual regression checklists get skipped under deadline pressure.

We build containerised, bit-for-bit reproducible firmware and OS build pipelines backed by self-hosted source mirrors and shared Yocto sstate caches, wired directly to Hardware-in-the-Loop (HIL) lab runners (labgrid / pytest / probe-rs / OpenOCD) that flash real boards, toggle physical I/O, yank power mid-OTA and record current consumption automatically.

Three-stage firmware CI pipeline: hermetic build and SBOM, automated physical HIL rig with SWD/JTAG and PDU relays, and deterministic latency and current release gates
Automated progression from hermetic build to physical board flashing, fault injection and canary release.

What we set up in your repository and lab

01 Hermetic builds & offline mirrors Pinned build containers, Yocto `BB_NO_NETWORK=1` offline source mirrors, shared `sstate` & hash-equivalence servers cutting clean CI builds from hours to minutes.
02 Automated board control (`labgrid` & pytest) Programmable USB hubs, switched PDU power outlets, USB-SD muxes, serial console capture, J-Link / `probe-rs` SWD flashing and automated boot-mode strap toggling.
03 Peripheral & bus stimulus rigs Companion stimulus boards driving CAN-FD traffic, Modbus slave simulation, programmable DAC/PWM sensor waveforms, RF attenuators and network packet loss (`tc netem`).
04 Power-cut OTA & sleep-current regressions Automated relay drops at randomised offsets during firmware updates, plus precision current-profiler gates catching accidental 2 mA sleep-current regressions before merge.

Embedded verification pyramid

Fast feedback in seconds on every push, backed by real hardware validation before merge and release.

StageExecution TimeEnvironmentDefects Caught
1. Static & Host Unit Tests15 – 90 secx86/ARM64 CI container (Clang-Tidy, sanitizers, cargo test, Ceedling)State-machine logic bugs, buffer overflows, protocol parser edge cases
2. Emulation & SIL1 – 4 minQEMU / Renode / Zephyr native_simBoot scripts, IPC framing, multi-node network & OTA client state transitions
3. On-Target Smoke HIL3 – 10 minPhysical dev/rev-B board in lab rack on every PRBroken Device Trees, DMA/IRQ regressions, Secure Boot signature failures, sleep draw
4. Nightly Stress & Soak Rig8 – 72 hoursMulti-board HIL rack under I/O saturation & power cyclingMemory leaks, `PREEMPT_RT` tail-latency spikes, modem recovery & flash wear

HIL & build system questions

Does a HIL rack require six-figure proprietary test equipment?

Rarely. Using open-source `labgrid` + `pytest`, industrial programmable PDUs, USB-muxes, SocketCAN adapters, Nordic PPK2 / Joulescope current meters and a single rack-mounted Linux runner, we assemble remarkably capable, maintainable HIL benches on sensible engineering budgets.

Can our engineers reserve a remote lab board interactively from home?

Yes. `labgrid` coordinates both CI jobs and interactive developer leases — letting engineers remotely flash, power-cycle, view serial consoles and attach GDB over WireGuard without stepping into the lab.

Make your firmware builds reproducible and hardware-tested