Skip to content

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.

To view the currently active artifact and its status:

Show Artifact Info
root@neuralplex:~# mender-update show-artifact
neuralplex-image-<machine>-20260615120000

To check that Mender is running and see its overall status:

Check Mender Status
root@neuralplex:~# systemctl status mender-updated

An update can be installed from a local .mender artifact file or from a URL served over HTTP(S).

Install from a local file
root@neuralplex:~# mender-update install /path/to/neuralplex-image-<machine>-neuralplex.mender
Install from a URL
root@neuralplex:~# mender-update install https://example.com/neuralplex-image-<machine>-neuralplex.mender

Installing 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.

Once an artifact has been installed, reboot the device to switch the bootloader over to the newly written partition:

Reboot into new update
root@neuralplex:~# reboot

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:

Commit the update
root@neuralplex:~# mender-update commit

Committing tells Mender the update was successful, cancels the automatic rollback timer, and marks the new partition as the primary boot target going forward.

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:

Roll back the update
root@neuralplex:~# mender-update rollback
root@neuralplex:~# reboot

This restores the bootloader environment to point at the previous, known-good partition.

To manually poll the configured Mender server for a new deployment (rather than waiting for the daemon’s poll interval):

Check for update
root@neuralplex:~# mender-update check-update

To view the log output from the most recent deployment, including any failure reason:

Show deployment logs
root@neuralplex:~# mender-update show-provides
root@neuralplex:~# journalctl -u mender-updated -f
  1. Build or download a .mender artifact for the desired neuralplex-image.
  2. Copy the artifact to the device, or host it somewhere reachable over HTTP(S).
  3. Install the artifact: mender-update install <artifact>
  4. Reboot the device: reboot
  5. Verify the device and application are behaving as expected on the new partition.
  6. 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.