Skip to content

Secure boot increases the boot time #246

@Hubix9

Description

@Hubix9

Board used: CM5 32GB 4GB Ram
Operating system images used: dietpi and Raspberry Pi OS for RPi5/CM5

Hello,

I have observed an interesting behavior that does not seem to be documented. I'm using the rpi-sb-provisioner to secure a CM5 based device, I have noted that before starting to boot the kernel the CM5 takes around 9 seconds to initialize it's hardware (as mentioned in this link on RPi forum ). After provisioning exactly the same boards with secure boot, the time it takes from starting the device to linux booting is almost twice as long (around 17 - 18 seconds). I am measuring the startup from plugging in the power, until the solid green light of CM5 IO expansion board stops shining. The issue occurs both when CM5 is plugged into the official CM5 IO expansion board as well as in the target device. Same boot time slowdown occurs no matter if I use a dietpi based system image or Raspberry Pi OS one (issue seems to be system image unrelated but checked just in case).

I use the following provisioner configuration options:
PROVISIONING_STYLE: secure-boot
RPI_DEVICE_BOOTLOADER_CONFIG_FILE: blank
RPI_DEVICE_EEPROM_WP_SET: Enabled
RPI_DEVICE_FAMILY: 5
RPI_DEVICE_FIRMWARE_FILE: {...}/pieeprom-2025-05-08.bin
RPI_DEVICE_LOCK_JTAG: Enabled
RPI_DEVICE_STORAGE_CIPHER: aes-xts-plain64
RPI_DEVICE_STORAGE_TYPE: emmc

I would like to ask if this behavior is expected and is it possible to decrease the boot time slow down?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions