[PATCH 1/1] efi_loader: provide initrddump test tool

Ilias Apalodimas ilias.apalodimas at linaro.org
Tue Jan 19 09:27:43 CET 2021


> >> +	}
[...]
> >> +
> >> +	cout->set_attribute(cout, EFI_LIGHTGRAY | EFI_BACKGROUND_BLACK);
> >> +	cout->clear_screen(cout);
> >> +	return EFI_SUCCESS;
> >> +}
> >> --
> >> 2.29.2
> >>
> >
> >
> > I guess we can use this in the selftests for initrd loading in the future
> > right?
> > This seems to be covering most of the protocol usage, so the self-test could
> > be something like 'download file' -> check md5sum/sha256(or similar) of the
> > saved file against the one we loaded.
> >
> > Acked-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> >
> 
> Should I add a 'load' command inside the tool which displays length and
> CRC32 like the current efi_selftest_load_initrd.c does?
> 
> I guess this would make writing the Python easier.
> 

No strong opinions on that until I actually sit down and write the test. 
If you think it's gonna make the python part easier, please do.

Cheers
/Ilias
> Best regards
> 
> Heinrich


More information about the U-Boot mailing list