mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
net: fastboot: Merge AOSP UDP fastboot
Merge UDP fastboot support from AOSP: https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-8 Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Alex Deymo <deymo@google.com> Signed-off-by: Jocelyn Bohr <bohr@google.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Marek Vasut
parent
c232d14d11
commit
f73a7df984
@@ -87,6 +87,7 @@
|
||||
#include <environment.h>
|
||||
#include <errno.h>
|
||||
#include <net.h>
|
||||
#include <net/fastboot.h>
|
||||
#include <net/tftp.h>
|
||||
#if defined(CONFIG_LED_STATUS)
|
||||
#include <miiphy.h>
|
||||
@@ -451,6 +452,11 @@ restart:
|
||||
tftp_start_server();
|
||||
break;
|
||||
#endif
|
||||
#ifdef CONFIG_UDP_FUNCTION_FASTBOOT
|
||||
case FASTBOOT:
|
||||
fastboot_start_server();
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_CMD_DHCP)
|
||||
case DHCP:
|
||||
bootp_reset();
|
||||
@@ -1322,6 +1328,7 @@ common:
|
||||
/* Fall through */
|
||||
|
||||
case NETCONS:
|
||||
case FASTBOOT:
|
||||
case TFTPSRV:
|
||||
if (net_ip.s_addr == 0) {
|
||||
puts("*** ERROR: `ipaddr' not set\n");
|
||||
|
Reference in New Issue
Block a user