summaryrefslogtreecommitdiff
path: root/doc/usage/cmd
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2023-12-14 00:11:13 +0300
committerTom Rini <trini@konsulko.com>2023-12-19 16:01:59 +0300
commit4caacb2f29f03e7ad724233282384be10c68e926 (patch)
tree03f56053d85e620d9708b309da33e3a8baa9c79d /doc/usage/cmd
parentfac5308d275720b67b442383572a84edb212d6a1 (diff)
downloadu-boot-4caacb2f29f03e7ad724233282384be10c68e926.tar.xz
net: wget: Support non-default HTTP port
Currently the wget command is hard wired to HTTP port 80. This is inconvenient, as it is extremely easy to start trivial HTTP server as an unprivileged user using e.g. python http module to serve the files, but such a server has to run on one of the higher ports: " $ python3 -m http.server -d $(pwd) 8080 " Make it possible to configure HTTP server port the same way it is possible to configure TFTP server port, using environment variable 'httpdstp' (similar to 'tftpdstp'). Retain port 80 as the default fallback port. This way, users can start their own trivial server and conveniently download whatever files they need into U-Boot. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'doc/usage/cmd')
-rw-r--r--doc/usage/cmd/wget.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/usage/cmd/wget.rst b/doc/usage/cmd/wget.rst
index e1e7f8d814..8e7383b6c6 100644
--- a/doc/usage/cmd/wget.rst
+++ b/doc/usage/cmd/wget.rst
@@ -16,7 +16,8 @@ Description
The wget command is used to download a file from an HTTP server.
wget command will use HTTP over TCP to download files from an HTTP server.
-Currently it can only download image from an HTTP server hosted on port 80.
+By default the destination port is 80 and the source port is pseudo-random.
+The environment variable *httpdstp* can be used to set the destination port.
address
memory address for the data downloaded