This guide focuses on engineering trade-offs and observable checks. Validate design decisions against your hardware, applicable regional rules, security requirements and vendor documentation.
Begin with an observable boot chain
A Linux-based device brings together bootloader, kernel, device tree, root filesystem, services and application software. Record expected states and timeouts for each layer so a field failure can be narrowed down without an interactive shell. Persist a small set of boot diagnostics safely, and expose a health signal only after critical dependencies are ready.
Keep services supervised
Run long-lived processes under a service manager such as systemd with explicit dependencies, restart policies and resource limits. Configure watchdogs only when the application can demonstrate useful forward progress. A service repeatedly restarting may hide a deeper fault; monitor restart counts and preserve relevant logs across reboots within a controlled storage budget.
Plan for power loss and storage wear
Unexpected power cuts can corrupt writes, particularly on removable flash. Prefer an immutable or read-only base where suitable, separate writable application data, bound log sizes and use atomic file replacement for configuration. Measure write frequency under normal operation and during network failures rather than assuming a filesystem will tolerate unlimited retries.
Updates need a rollback story
A firmware or OS update process should authenticate artifacts, verify compatibility, preserve device identity and recover from interruption. A/B root filesystems are one pattern, not the only one. Require a post-update health check before committing a new slot, and explicitly test rollback after power loss at different phases of the update.
Network and debugging checklist
Confirm DNS, DHCP/static configuration, NTP, route selection and firewall behavior independently. Test cold boot, repeated power cycling, low-storage conditions, clock jumps and network loss. Keep debug interfaces controlled and avoid leaving hardcoded credentials or unrestricted administrative services in production images.
