-
Notifications
You must be signed in to change notification settings - Fork 4
software update
The instructions below do not apply when updating from RocketLogger version 1.x! Follow the upgrade instructions when updating from RocketLogger version 1.x to the latest version.
For updating to versions up to and including 1.1.6, see Software Installation (Version 1.x).
Occasionally, an update of the RocketLogger software is required for important bugfixes and to benefit from new features. There are two alternative procedures to install the latest software version:
- The recommended way is to deploy a fresh RocketLogger system. After flashing the latest system image, reinsert the data SD card and logging can continue with the calibration and measurement configuration preserved.
- If running a modified RocketLogger system and preserving its configuration is desired, follow the instructions on how to update the software on-device.
It is recommended to backup all relevant calibration and configuration files and all measurement data stored on the device prior to performing an update.
Warning: This installation procedure will erase all on-device data! This includes:
- Operating system and all related configuration changes, including SSH and login configurations,
- When not using the recommended Data SD card, all RocketLogger configuration and measurement data.
If preserving the system configuration is desired or when not using the recommended SD card for RocketLogger data follow the instructions for an on-device software update.
This is the recommended system update procedure when running an unmodified RocketLogger that was set up using a RocketLogger system flasher image.
- Power down the RocketLogger and remove the data SD card containing the RocketLogger configuration and measurement data.
- Using a separate SD card (not the data SD card just removed from the logger!) follow the system installation instruction to flash the latest software version to the RocketLogger.
- Instead of setting up a new data SD card, reinsert the data SD card removed in step 1. Now, logging can continue with the same configuration used before the RocketLogger software update.
- Review the considerations of a new RocketLogger installation under finalize system installation.
Consider updating using a RocketLogger system flasher image when satisfying the prerequisites, or preserving the system configuration is not required.
This procedure is recommend for installations with modified system configuration, such as SSH login reconfiguration or when not using a SD card for RocketLogger data.
The on-device update procedure consists of cloning the RocketLogger repository, building and installing the RocketLogger software, and deploying the updated RocketLogger web interface.
- Log into the RocketLogger device to update via SSH, see also SSH configuration.
- Clone the RocketLogger repository using:
git clone https://github.com/ETHZ-TEC/RocketLogger.git
For more details on building and installing the RocketLogger software refer to the README.md in the
software/rocketlogger
folder.
- Change to the
software/rocketlogger
subfolder within the repository. - Build the software using the following command sequence:
-
meson setup --buildtype=release release
- set up the release build configuration in release directory -
meson compile -C release
- build all required software components and configuration
-
- Install the software with elevated privileges by issuing
sudo meson install -C release
For more details on installing the RocketLogger web interface refer to the README.md within the
software/node_server
folder.
- Change to the
software/node_server
subfolder within the repository. - Deploy the updated web interface by running the
install.sh
script. During the installation process the script will ask for the user password to gain elevated permissions for installing system package dependencies.
- To apply system configuration related changes and conclude the software
update reboot the RocketLogger.
- Optionally, the cloned RockerLogger repository can be removed again.
- Review the considerations of a new RocketLogger installation under finalize system installation.