Dear Maintainer,
This experiment was done in the debian bookworm docker image. I have used QEMU virtual machine to verity secureboot.
efitools:armhf version is 1.9.2-3.
I tried to launch KeyTool.efi (armhf) in the EFI shell to store the keys for secureboot but encountered a below error.
FS1:\> KeyTool.efi
Undefined OpCode Exception PC at 0x7C747B88 CPSR 0x600F0133
Undefined OpCode Exception PC at 0x7C747B88 CPSR 0x600F0133
Binary path: /usr/lib/efitools/arm-linux-gnueabihf/KeyTool.efi
QEMU options:
------------------------------------------------------------------------------------------
ovmf_code=$(ls ./secureboot-keys/armhf/AAVMF32_CODE.fd)
ovmf_vars=$(ls ./secureboot-keys/armhf/AAVMF32_VARS.fd)
qemu-system-arm \
-m $MEMORY_SIZE \
-cpu cortex-a15 \
-machine virt \
-device virtio-scsi-pci \
-device scsi-hd,drive=hd0 \
-blockdev driver=file,node-name=hd0,filename=test.img \
-device e1000,netdev=net0 \
-netdev user,hostfwd=tcp:127.0.0.1:5555-:22,id=net0,hostfwd=tcp:127.0.0.1:2159-:2159 \
-nographic -serial mon:stdio \
-drive if=pflash,format=raw,unit=0,readonly=on,file=${ovmf_code} \
-drive if=pflash,format=raw,file=${ovmf_vars} \
-drive file=fat:rw:./secureboot-keys
Note:
* “secureboot-keys” is a folder where all secureboot keys are present.
* AAMVF CODE and VARS are installed from package https://packages.debian.org/bookworm/qemu-efi-arm