Rootfs Update
Learn how to update the root file system (rootfs) of your system easily with this document. It includes detailed steps and an example, utilizing rootfs_update.sh, updater, and make_firmware_update.sh files. Create a tar file of your current rootfs, genera
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.
NOTE: For BeagleBone, use the following script to backup the rootfs. We do not take the backup of the boot partition(named uboot).
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.