diff options
| author | Tom Rini <[email protected]> | 2022-11-28 13:12:40 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-11-28 13:12:40 -0500 |
| commit | 39b81955d38c11254b455322b9d98e07010049d6 (patch) | |
| tree | ef486924750d138effb1ecd24081cb6bf28820d4 /cmd | |
| parent | 597e7b784dbfec29fd8d6c450bc9a3a607c4feae (diff) | |
| parent | 5e6c069b2c6b37083da685f39fa56ab5137dbdf9 (diff) | |
Merge branch '2022-11-28-networking-updates-and-improvements'
- LiteX Ethernet support, dwc_eth_qos fixes, re-work fixing
CVE-2022-{30790,30552}, macb race fix, Intel XWAY PHY support
and add wget command and TCP support.
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/Kconfig | 7 | ||||
| -rw-r--r-- | cmd/net.c | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index 79848cc6ab2..a4b6fc6a5da 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1812,6 +1812,13 @@ config SYS_DISABLE_AUTOLOAD is complete. Enable this option to disable this behavior and instead require files to be loaded over the network by subsequent commands. +config CMD_WGET + bool "wget" + select TCP + help + wget is a simple command to download kernel, or other files, + from a http server over TCP. + config CMD_MII bool "mii" imply CMD_MDIO diff --git a/cmd/net.c b/cmd/net.c index addcad3ac14..f6d9f5ea3ab 100644 --- a/cmd/net.c +++ b/cmd/net.c @@ -125,6 +125,19 @@ U_BOOT_CMD( ); #endif +#if defined(CONFIG_CMD_WGET) +static int do_wget(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]) +{ + return netboot_common(WGET, cmdtp, argc, argv); +} + +U_BOOT_CMD( + wget, 3, 1, do_wget, + "boot image via network using HTTP protocol", + "[loadAddress] [[hostIPaddr:]path and image name]" +); +#endif + static void netboot_update_env(void) { char tmp[22]; |
