Skip to main content
This guide describes how to sign secure boot images for the Grinn Genio 700 SOM using Thistle Cloud Signing. Thistle Cloud Signing allows development teams to focus on product development by offloading the complexities of key management and secure artifact signing. The trh tool simplifies both local development and CI integration by taking existing build outputs and signing them with Thistle Cloud Signing service to produce fully signed boot artifacts that are ready to be flashed to target devices.
The input build must be a signed Yocto build. The signing key used during the Yocto build does not matter — it will be replaced by Thistle’s cloud-managed signing key during the resigning process, so feel free to use the default test key set.

Prerequisites

  • A Grinn Genio 700 SOM board
  • A signed build for the platform (see yocto instructions)
  • The latest trh CLI tool (v1.9.1 and above) download here
  • Your Thistle Project Access Token THISTLE_TOKEN from the Thistle Control Center
To get started using the Grinn Genio 700 SOM, refer to the official Grinn documentation for flashing and initial setup.

Signing the boot images

The trh factory-sign mediatek command takes your build directory, and resigns all the secure boot artifacts through Thistle’s cloud signing service. The resigned build will be written on the output directory.
$ ./trh factory-sign mediatek --soc=mt8390 --input <build-dir> --output <signed-output-dir>
Where:
  • mt8390 is the target platform for the Grinn Genio 700 SOM
  • <build-dir> is the path to your Yocto build output directory
  • <signed-output-dir> is where the signed artifacts will be written

Example

$ export THISTLE_TOKEN="your-thistle-token"

$ ./trh factory-sign mediatek --soc=mt8390 --input ./build/deploy/images/genio-700 --output ./signed-output
Signing MediaTek build...
This operation may take a few minutes...
eFuse Public Key Hash: bd11f97cfc9654cdb99c12155a798144399d120afc115c1df1df43b2ff062b55
MediaTek signing complete

Flashing the signed images

Before flashing the image, the board needs to be fused with the public key hash used for signing the image. The public key hash will always be displayed when starting the signing tool. On the example above the key-hash to use is bd11f97cfc.... Follow up the MediaTek documentation for fusing the key hash.