Mender
NeuralPlex uses Mender to perform robust, A/B partitioned OTA updates of the rootfs. The mender-update client is included in the NeuralPlex image and is used to install, verify, and roll back updates from the command line.
Checking the current state
Section titled “Checking the current state”To view the currently active artifact and its status:
root@neuralplex:~# mender-update show-artifactneuralplex-image-<machine>-20260615120000To check that Mender is running and see its overall status:
root@neuralplex:~# systemctl status mender-updatedInstalling an update
Section titled “Installing an update”An update can be installed from a local .mender artifact file or from a URL served over HTTP(S).
root@neuralplex:~# mender-update install /path/to/neuralplex-image-<machine>-neuralplex.menderroot@neuralplex:~# mender-update install https://example.com/neuralplex-image-<machine>-neuralplex.menderInstalling an update writes the new artifact to the inactive rootfs partition. The running partition is not modified, so if the install fails or is interrupted, the device will simply continue booting the current, known-good rootfs.
Rebooting into the new partition
Section titled “Rebooting into the new partition”Once an artifact has been installed, reboot the device to switch the bootloader over to the newly written partition:
root@neuralplex:~# rebootCommitting an update
Section titled “Committing an update”After the device boots successfully into the new partition and your application has verified the update is working correctly, commit the update to make it permanent:
root@neuralplex:~# mender-update commitCommitting tells Mender the update was successful, cancels the automatic rollback timer, and marks the new partition as the primary boot target going forward.
Rolling back an update
Section titled “Rolling back an update”If an update is found to be bad before it has been committed, you can manually trigger a rollback rather than waiting for the timer to expire:
root@neuralplex:~# mender-update rollbackroot@neuralplex:~# rebootThis restores the bootloader environment to point at the previous, known-good partition.
Checking for updates
Section titled “Checking for updates”To manually poll the configured Mender server for a new deployment (rather than waiting for the daemon’s poll interval):
root@neuralplex:~# mender-update check-updateViewing update logs
Section titled “Viewing update logs”To view the log output from the most recent deployment, including any failure reason:
root@neuralplex:~# mender-update show-providesroot@neuralplex:~# journalctl -u mender-updated -fCommon workflow
Section titled “Common workflow”- Build or download a
.menderartifact for the desiredneuralplex-image. - Copy the artifact to the device, or host it somewhere reachable over HTTP(S).
- Install the artifact:
mender-update install <artifact> - Reboot the device:
reboot - Verify the device and application are behaving as expected on the new partition.
- Commit the update:
mender-update commit
If step 5 fails, run mender-update rollback and reboot instead of committing, or simply do nothing and let the automatic rollback timer revert the device on its own.