summaryrefslogtreecommitdiff
path: root/drivers/fastboot
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2022-01-13 10:40:06 +0300
committerRamon Fried <ramon@neureality.ai>2022-01-15 19:54:21 +0300
commit046bf8d4c512ad6501fe9e77508bbe1292a29fef (patch)
tree9f166e65090b08c04528652cad7ada66dc4183e3 /drivers/fastboot
parenteab18b3b06bd914f623c3e8e9d2a905b8cea7366 (diff)
downloadu-boot-046bf8d4c512ad6501fe9e77508bbe1292a29fef.tar.xz
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 'drivers/fastboot')
-rw-r--r--drivers/fastboot/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/fastboot/Kconfig b/drivers/fastboot/Kconfig
index d5e4a02098..b97c67bf60 100644
--- a/drivers/fastboot/Kconfig
+++ b/drivers/fastboot/Kconfig
@@ -21,6 +21,13 @@ config UDP_FUNCTION_FASTBOOT
help
This enables the fastboot protocol over UDP.
+config UDP_FUNCTION_FASTBOOT_PORT
+ depends on UDP_FUNCTION_FASTBOOT
+ int "Define FASTBOOT UDP port"
+ default 5554
+ help
+ The fastboot protocol requires a UDP port number.
+
if FASTBOOT
config FASTBOOT_BUF_ADDR