BeagleBone Black
This guide outlines the steps to enable Thistle Verified Boot (TVB) on a BeagleBone Black using an Infineon OPTIGA™ Trust M as the hardware root of trust. By the end, your BeagleBone Black will only boot kernels signed by your Thistle Control Center project’s key, verified against the public key stored in the Trust M.
Prerequisites
- BeagleBone Black board with power supply and necessary cables
- Infineon OPTIGA Trust M secure element (on breakout board)
- I²C wiring from Trust M to BeagleBone Black:
- SDA → Pin 19
- SCL → Pin 20
- 3.3V Power
- GND
- MicroSD card (8 GB or larger)
- Thistle Yocto image: Download link
- Thistle Control Center account with:
- A project
- A Linux Kernel Verified Boot key pair
- Host computer (Linux/macOS) with internet access
- (Optional) USB UART cable for serial console access
Step 1: Flash the OS
-
Download the Thistle Yocto image.
-
Flash it to the SD card using
dd
: -
Insert the SD card into the BeagleBone Black and power it on.
-
Log in if prompted (default credentials may vary).
Step 2: Sign the Kernel
-
Mount the boot partition from the SD card:
-
Copy the
Image
file to your computer: -
In Thistle Control Center:
- Navigate to your project → Signed Firmware
- Click + Signed Firmware Bundle
- Select:
- Hardware: BeagleBone Black + OPTIGA Trust M
- Firmware Type: Linux Kernel Verified Boot
- Upload
Image
- Click Create
-
Download the resulting
kernel-sig
file.
Step 3: Program the Trust M
-
On the BeagleBone Black, the necessary Trust M tools are included in the Thistle Yocto image.
-
Verify the Trust M:
-
Copy your public key from Thistle Control Center and save it as
project_pubkey.pem
. -
Convert to Trust M format:
-
Write the public key to slot
0xE0E8
: -
(Optional) Lock the slot:
Step 4: Install Thistle Boot Assets
-
Mount the SD card’s boot partition:
-
Backup existing boot files:
-
Download Thistle’s U-Boot and boot script:
-
Copy the
kernel-sig
file to the boot partition: -
Sync and unmount:
Step 5: Boot and Verify
-
Insert the SD card into the BeagleBone Black.
-
Press and hold the USER button while powering on the board to boot from the SD card.
-
Release the button when U-Boot starts.
-
Use a serial console (115200 baud) to monitor the boot process.
-
Look for messages indicating signature verification via Trust M, such as:
-
If valid, the kernel will boot normally.
-
Log in and confirm the system is running with secure boot enabled.
Conclusion
You’ve successfully enabled Thistle Verified Boot on a BeagleBone Black with the Trust M secure element. Your device will now only boot kernels signed with your project’s private key, enhancing the security of your deployment.