ATS Garage Quickstart
This repo is provided as a first Yocto build project to use with ATS Garage. A more detailed guide to the project is available in the ATS Garage documentation.
Getting started
Clone the repo and source the environment in the following way:
git clone --recursive [email protected]:advancedtelematic/garage-quickstart-rpi.git cd garage-quickstart-rpi source env-init.sh [architecture]
Currently supported values for architecture are raspberrypi
and qemux86-64
.
If you don’t specify an architecture, raspberrypi
will be used as a default.
You are now ready to build a Raspberry Pi or QEMU image.
Raspberry Pi
To build the image, issue:
bitbake rpi-basic-image
To write the image to a SD card, do the following:
sudo dd if=./tmp/deploy/images/raspberrypi3/rpi-basic-image-raspberrypi3.rpi-sdimg-ota \ of=/dev/sdX bs=32M && sync sudo parted -s /dev/sdX resizepart 2 '100%' sudo resize2fs /dev/sdX2
Qemu
To build the image, issue:
bitbake core-image-minimal
You’ll need to add a sota.toml to the image; refer to the ATS Garage documentation for details.
To boot the image inside qemu
, use the following shell script:
./meta-updater-qemux86-64/scripts/run-qemu