]> Git Repo - J-u-boot.git/commit - lib/efi_selftest/Makefile
efi_loader: supply EFI network test
authorHeinrich Schuchardt <[email protected]>
Thu, 5 Oct 2017 14:36:07 +0000 (16:36 +0200)
committerAlexander Graf <[email protected]>
Mon, 9 Oct 2017 05:00:36 +0000 (07:00 +0200)
commit5ca23ed5bc63832baa24a6107537fdd229c458ae
tree57e2c3cda8ca96996395128848cd5592c7c0455a
parent1b6332597f23ea71b94a9ce65e15a0d3f5ea23ed
efi_loader: supply EFI network test

This patch provides 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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
include/efi_selftest.h
lib/efi_selftest/Makefile
lib/efi_selftest/efi_selftest_snp.c [new file with mode: 0644]
lib/efi_selftest/efi_selftest_util.c [new file with mode: 0644]
This page took 0.035137 seconds and 4 git commands to generate.