Module Integration Guides
Linux

Integrate Over The Air Updates

3min

OTA update has become a critical requirement for devices being deployed remotely. This guide covers how to integrate Over the Air Upgrades using uplink. There are four steps to trying out OTA updates with Bytbeam.



Document image


Step 1: Create the update artifact

Update artifacts with Bytebeam are simple tar files containing an executable script called updater. Uplink download the tar file, extract it, and run the updater script.

Currently, we support four types of updates. App update is the simplest form of update, to start with. Refer to the appropriate update sections to create the tar file for each update type.

  • App Update: App update replaces the old app binary on the device with the new binary uploaded to the Bytebeam cloud.
  • App Update with rollback: This is similar to an app update but with a rollback feature. This allows the device to roll back to the previous version of the app if the update fails.
  • Deb Update: Deb update installs the provided deb package onto the device.
  • Rootfs Update This updates the entire rootfs, kernel, and firmware files(in the boot partition) as well.

Step 2: Upload the update file

Refer to the guide on Creating a new Firmware Version

Step 3: Trigger an OTA update from the cloud.

Refer to the guide on Triggering OTA update

Step 4: Uplink runs updater script

Uplink downloads the tar file, extracts the contents, and runs the updater script.