diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2022-01-13 08:40:06 +0100 |
---|---|---|
committer | Ramon Fried <ramon@neureality.ai> | 2022-01-15 18:54:21 +0200 |
commit | 046bf8d4c512ad6501fe9e77508bbe1292a29fef (patch) | |
tree | 9f166e65090b08c04528652cad7ada66dc4183e3 /net | |
parent | eab18b3b06bd914f623c3e8e9d2a905b8cea7366 (diff) | |
download | u-boot-046bf8d4c512ad6501fe9e77508bbe1292a29fef.tar.gz u-boot-046bf8d4c512ad6501fe9e77508bbe1292a29fef.tar.bz2 u-boot-046bf8d4c512ad6501fe9e77508bbe1292a29fef.zip |
net: fastboot: make UDP port net: configurable
The fastboot protocol uses per default the UDP port 5554. In some cases
it might be needed to change the used port. The fastboot utility provides
a way to specifiy an other port number to use already.
fastboot -s udp:192.168.1.76:1234 boot fastboot.img
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/fastboot.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/fastboot.c b/net/fastboot.c index 7e7a601b9f..139233b86c 100644 --- a/net/fastboot.c +++ b/net/fastboot.c @@ -9,9 +9,6 @@ #include <net.h> #include <net/fastboot.h> -/* Fastboot port # defined in spec */ -#define WELL_KNOWN_PORT 5554 - enum { FASTBOOT_ERROR = 0, FASTBOOT_QUERY = 1, @@ -310,7 +307,7 @@ void fastboot_start_server(void) printf("Using %s device\n", eth_get_name()); printf("Listening for fastboot command on %pI4\n", &net_ip); - fastboot_our_port = WELL_KNOWN_PORT; + fastboot_our_port = CONFIG_UDP_FUNCTION_FASTBOOT_PORT; #if CONFIG_IS_ENABLED(FASTBOOT_FLASH) fastboot_set_progress_callback(fastboot_timed_send_info); |