[U-Boot] [PATCH v2 17/17] efi_loader: supply EFI network test
Simon Glass
sjg at chromium.org
Mon Oct 9 04:44:51 UTC 2017
On 5 October 2017 at 08:36, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> This patch provices an EFI application to check the correct function
> of the Simple Network Protocol implementation.
>
> It sends a DHCP request and analyzes the DHCP offer.
>
> Different error conditions including a 10s timeout are checked.
>
> A successful execution will look like this:
>
> => bootefi nettest
> Scanning disk ide.blk#0...
> Found 1 disks
> WARNING: Invalid device tree, expect boot to fail
> Network test
> DHCP Discover
> DHCP reply received from 192.168.76.2 (52:55:c0:a8:4c:02)
> as broadcast message.
> OK. The test was completed successfully.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> v2
> move efi_st_memcmp to efi_selftest_util.c
> The function can be reused for other tests.
>
> Use constants for return values.
> ---
> include/efi_selftest.h | 11 +
> lib/efi_selftest/Makefile | 8 +-
> lib/efi_selftest/efi_selftest_snp.c | 424 +++++++++++++++++++++++++++++++++++
> lib/efi_selftest/efi_selftest_util.c | 25 +++
> 4 files changed, 467 insertions(+), 1 deletion(-)
> create mode 100644 lib/efi_selftest/efi_selftest_snp.c
> create mode 100644 lib/efi_selftest/efi_selftest_util.c
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list