From 046bf8d4c512ad6501fe9e77508bbe1292a29fef Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Thu, 13 Jan 2022 08:40:06 +0100 Subject: 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 Reviewed-by: Heiko Schocher Reviewed-by: Ramon Fried --- drivers/fastboot/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers') diff --git a/drivers/fastboot/Kconfig b/drivers/fastboot/Kconfig index d5e4a02098a..b97c67bf609 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 -- cgit v1.3.1