Module Integration Guides
...
Linux
Integrate Over The Air Updates
Rootfs Update
3min
Rootfs update is one of the most common ways of updating the system. The example page on Github talks about rootfs updates in detail. There are three files in the example.
- rootfs_update.sh - This script installs the rootfs (uploaded on the Bytebeam cloud) to the new partition and boots to the new rootfs.
- updater - This is the wrapper script for rootfs_update.sh.
- make_firmware_update.sh - It creates the update tar file, that needs to be uploaded to the Bytebeam cloud.
On the device, use the following command to take the backup of the rootfs.
NOTE: For BeagleBone, use the following script to backup the rootfs. We do not take the backup of the boot partition(named uboot).
Run the make_firmware_update.sh script, which generates the update tar file named rootfs_update.tar.gz. Upload this file in the "Firmware Upload" section of the Bytebeam cloud. Once the update is complete, the device will be booted to the new rootfs.