[U-Boot] [PATCH 1/1] efi_loader: avoid lost network packages

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Jun 4 10:25:36 UTC 2019


Prior to the patch booting an OrangePi PC via iPXE failed due to poor
network connection.

After receiving a packet immediately check if another packet is available.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 lib/efi_loader/efi_net.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/efi_loader/efi_net.c b/lib/efi_loader/efi_net.c
index d71c663068..3a598067db 100644
--- a/lib/efi_loader/efi_net.c
+++ b/lib/efi_loader/efi_net.c
@@ -517,6 +517,7 @@ static efi_status_t EFIAPI efi_net_receive
 	memcpy(buffer, net_rx_packet, net_rx_packet_len);
 	*buffer_size = net_rx_packet_len;
 	new_rx_packet = false;
+	efi_timer_check();
 out:
 	return EFI_EXIT(ret);
 }
--
2.20.1



More information about the U-Boot mailing list