raspberrypi / usbboot

Raspberry Pi USB booting code, moved from tools repository
Apache License 2.0
913 stars 231 forks source link

Secure Boot on Buster #138

Closed jwainwright87 closed 2 years ago

jwainwright87 commented 2 years ago

Hi all,

My use case means that I have to use Buster for the time being, and I wanted to confirm if secure boot is supported under Buster?

I have achieved this using the latest Buster OS version via RPI Imager.

Is this officially supported, or am I in dangerous territory?

I am using CM4.

Thanks, Jamie

timg236 commented 2 years ago

Secure-boot is just a mechanism for loading a signed ramdisk containing GPU firmware, kernel, initrd etc so there are no limitations on the host OS. The Buster start4.elf firmware supports secure-boot but it might be best to grab the latest firmware from Bullseye.

You'll need to create an initrd with modules overlays etc for secure-boot so it may be best to experiment with a simple buildroot ramdisk before attempting to do this on a full OS. e.g. https://github.com/raspberrypi/usbboot/tree/master/secure-boot-example

jwainwright87 commented 2 years ago

Great, thanks for the prompt response

jwainwright87 commented 2 years ago

The Buster start4.elf firmware supports secure-boot but it might be best to grab the latest firmware from Bullseye.

@timg236 Just to clarify, do I do this by grabbing start4.elf from the latest release and replacing it?

timg236 commented 2 years ago

That would work but if you are scripting this it’s better to grab start4.elf and fixup4.dat from the stable branch of the firmware repo https://github.com/raspberrypi/firmware