Step-by-step Guide for Thistle Verified Boot on Raspberry Pi 4
ssh <username>@<rpi4-ip-addr>
.
Commands in the rest of this section are executed in the SSH shell on the RPi-4.
sudo raspi-config
to enable I2C and Serial Port interfaces. These
options are under “Interface Options” in the main menu. Click on “Finish” to
save the configuration changes, and reboot the RPi-4 for the changes to take
effect.
trustm_chipinfo
command. A sample output a successful test is shown below.
/dev/mmcblk0
(one can
confirm it by looking at the tail of the output of sudo dmesg
command).
Name
(e.g., “v1.0.0”). Select
“Raspberry Pi + OPTIGA Trust M” for Hardware Type
, and “Linux Kernel
Verified Boot” for Firmware Type
. Pick the earlier kernel image file
kernel
as the Kernel Image
. Click on the “Create” button to get it
signed.
kernel.sig_<timestamp>
) to PC.
a
and the password is also a
.kernel
file in the boot partition of the
microSD card (you can do this using the utility OS on the USB drive), booting
the RPi-4 from the microSD card next time should cause a TVB boot failure and a
rebooting loop, and hence the tampered kernel won’t boot. The following
screenshot shows the U-Boot boot log when the authentic kernel image is replaced
with a file of 1MB zero bytes.