[PATCH v2 0/3] efi_loader: test EFI booting FIT images with initrd and dtb
Adriano Cordova
adrianox at gmail.com
Thu May 8 20:30:31 CEST 2025
Test booting a FIT image with an EFI kernel and either a dtb
or an initrd. For this, some changes to dtbdump and initrddump
are needed. test_efi_fit creates a test image as follows:
- helloworld.efi as first "kernel" binary
- dtbdump.efi as second "kernel" binary
- initrddump.efi as third "kernel" binary
- a file of known CRC32 as "initrd"
- a device-tree with a known string
- configurations for each of the "kernel" binaries.
Then during the test run, each "kernel" binary is run. For helloworld.efi expect
'Hello, world'. For initrddump.efi, use the load command to check CRC32
of the initrd. For dtbdump.efi, use the dump command to check for the
presence of a known string in the device-tree.
Adriano Cordova (3):
scripts/Makefile.lib: add PLATFORM_LIBS to efi linking
efi_loader: fix dtbdump output color and format
test/py/test_efi_fit: test fdt and initrd
lib/efi_loader/dtbdump.c | 86 ++++++++++++++++---
scripts/Makefile.lib | 2 +-
test/py/tests/test_efi_fit.py | 156 +++++++++++++++++++++++++++-------
3 files changed, 199 insertions(+), 45 deletions(-)
--
2.48.1
More information about the U-Boot
mailing list