From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilias Apalodimas Date: Tue, 19 Jan 2021 10:27:43 +0200 Subject: [PATCH 1/1] efi_loader: provide initrddump test tool In-Reply-To: References: <20210117064818.43259-1-xypron.glpk@gmx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > >> + } [...] > >> + > >> + 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 > > > > 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