Module Integration Guides
...
Linux
Integrate Over The Air Updates

Deb Update

5min

If you have a deb package to be installed on the device, then deb_update is the right way to do it.  The example on Github page shows how to install a deb package on the device. There are four files mentioned in the example.

  • deb_update.sh - It installs the specified deb package on the device.
  • apt-src_0.25.3_all.deb - In the example, we try to install this deb package.
  • update.sh - This is the wrapper script for deb_update.sh
  • make_firmware_update.sh - This creates the update tar file, that needs to be uploaded on the Bytebeam cloud.

Step1: Prepare update tar

Firstly on your Linux system, we need to create an update tar file for Raspberry Pi. For that, Download all the files mentioned above from GitHub. Next, we need to change the permissions for all these files using chmod command

Shell


Next, run make_firmware_update.sh to create a tar.gz file.

Shell


Step 2: upload update Tar

Next, we need to upload the tar to bytebeam cloud. For that go to the device management panel and navigate to the Firmware Versions tab. Then click on Upload New Firmware

Document image


Under the Firmware version tab, you will find an option to create a firmware version number and upload your updated tar file.

Enter the new Firmware version number and click on choose file to upload tar file. Then click on Create.

Document image


Step 3: Trigger the "update firmware" action from bytebeam cloud

Now let's proceed with our OTA update. For that, Go to the Device Management panel and select the device

Next, Click on the update firmware

Document image


In the next prompt choose the firmware version and click on next

Document image

Document image