Overlays
Note: The schematic id shown in the above patch is for a vanilla rpi_generic
overlay.
Replace it with the schematic id of the overlay you want to apply.
docker build
.
Sidero Labs maintains a repository of overlays.
sbc-rockchip
repository.
Clone the repositry and insepct the existing overlays to understand the structure.
Usually an overlay consist of a few key components:
firmware
: contains the firmware files required for the boardbootloader
: contains the bootloader, e.g. u-boot
for the boarddtb
: contains the device tree blobs for the boardinstaller
: contains the installer that will be used to install this overlay on the nodeprofile
: contains information about the disk image profile, e.g. the disk image size, bootloader used, output format etc.pkg.yaml
files.u-boot
and dtb
build steps to the pkg.yaml
files.src/
as well as the pkg.yaml
file.profiles
folder.REGISTRY
is set to ghcr.io
USERNAME
is set to the siderolabs
(or value of environment variable USERNAME
if it is set)REGISTRY
and USERNAME
variables can be set:
664638a
, because you will need it for the next step.
You can now build a flashable image using the command below.
—overlay-option
--overlay-option
can be used to pass additional options to the overlay installer if they are implemented by the overlay.
An example can be seen in the sbc-raspberrypi overlay repository.
It supports passing multiple options by repeating the flag or can be read from a yaml document by passing --overlay-option=@<path to file>
.
Note: In some cases you need to build a custom imager. In this case, refer to this guide on how to build a custom images using an imager.
IMPORTANT: If this does not succeed, have a look at the documentation of the external dependecies you are pulling in and make sure that thepkg.yaml
files are correctly configured. In some cases it may be required to update the dependencies to an appropriate version via thePkgfile
.