Preparing Base Image
In order to build Raspberry Pi image with Quantotto Agent software, we need to obtain Raspberry Pi OS Lite image to use as our baseline.
Several options available:
- Download the latest from Raspberry Pi web site
- Build base image manually on Quantotto Server (see Building Base Image below)
Building Base Image
We will use pi-gen to build base image. As part of Quantotto Server installation, pi-gen is downloaded and pre-configured for you.
- SSH into Quantotto Server
- Run
df -h
and make sure you have at least 8 GB of diskspace availableNOTE:
If you need to free up disk space, trydocker system prune
(when Quantotto Deployment is up) to remove unused docker images and containers. -
cd to pi-gen folder:
cd /opt/quantotto/pi-gen
-
Run build:
sudo ./build.sh
NOTE:
This is a fairly long process that normally takes 30-60 minutes to complete -
When done, base image will be saved under /opt/quantotto/pi-gen/base_image/YYYY-MM-DD-quantotto-lite.img (YYYY-MM-DD substituted with current date)
-
Move image file to a new folder (assuming file name 2020-12-15-quantotto-lite.img here, substitute your file name):
cd ~ mkdir rpi sudo mv /opt/quantotto/pi-gen/base_image/2020-12-15-quantotto-lite.img rpi/quantotto.img
-
After you moved image file, to free up disk space, you can delete files and folders that were created in process of generating base image:
sudo rm -rf /opt/quantotto/pi-gen/work sudo rm -rf /opt/quantotto/pi-gen/base_image