Module Integration Guides
...
Integrate Over The Air Updates
Rootfs Update
3 min
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 step 1 create tar of the rootfs on the device, use the following command to take the backup of the rootfs \#!/bin/bash \# to create tar of current rootfs sudo find / maxdepth 1 mindepth 1 not type l print0 | \\ sudo tar cvpzf /mnt/download/rootfs tar gz \\ \ exclude='/mnt/download/rootfs tar gz' \\ \ exclude='/proc/ ' \\ \ exclude='/tmp/ ' \\ \ exclude='/mnt/ ' \\ \ exclude='/dev/ ' \\ \ exclude='/sys/ ' \\ \ exclude='/run/ ' \\ \ exclude='/media/ ' \\ \ exclude='/home/pi/ ' / note for beaglebone, use the following script to backup the rootfs we do not take the backup of the boot partition(named uboot) \#!/bin/bash \# to create tar of current rootfs sudo find / maxdepth 1 mindepth 1 not type l print0 | \\ sudo tar cvpzf /mnt/download/rootfs tar gz \\ \ exclude='/mnt/download/rootfs tar gz' \\ \ exclude='/uboot/ ' \\ \ exclude='/proc/ ' \\ \ exclude='/tmp/ ' \\ \ exclude='/mnt/ ' \\ \ exclude='/dev/ ' \\ \ exclude='/sys/ ' \\ \ exclude='/run/ ' \\ \ exclude='/media/ ' \\ \ exclude='/home/debian/ ' / step 2 create the update tar file 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