diff options
| author | Tom Rini <[email protected]> | 2026-01-15 08:50:53 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-01-15 08:50:53 -0600 |
| commit | 5665d1f4e7cfd6895417d199dd7db73500c5d36c (patch) | |
| tree | a57a8ba13152f9416a756b85a2e0abee8e288304 /cmd | |
| parent | d503633a36767d756c7de28305cf0de79440cbc0 (diff) | |
| parent | b61d7d95cc62525060f0d05881bdaaf994a55b11 (diff) | |
Merge tag 'net-20260115' of https://source.denx.de/u-boot/custodians/u-boot-net
Pull request net-20260115.
CI: https://source.denx.de/u-boot/custodians/u-boot-net/-/pipelines/29008
net:
- phy: micrel KSZ9031 and KSZ9021 fixes
- phy: marvell10g fix
- Fix "net stats" help
- Add Microsemi/Microchip MDIO driver
- tftpput: Rework to exclude code from xPL phases
net-legacy:
- Some refactoring to help with lwIP NF support
net-lwip:
- Add NFS support
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/Kconfig | 28 | ||||
| -rw-r--r-- | cmd/lwip/Makefile | 1 | ||||
| -rw-r--r-- | cmd/lwip/nfs.c | 11 | ||||
| -rw-r--r-- | cmd/net-common.c | 2 |
4 files changed, 27 insertions, 15 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index b71ac554c0b..595ac49da41 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -2116,20 +2116,6 @@ config CMD_RARP help Boot image via network using RARP/TFTP protocol -config CMD_NFS - bool "nfs" - help - Boot image via network using NFS protocol. - -config NFS_TIMEOUT - int "Timeout in milliseconds for NFS mounts" - depends on CMD_NFS - default 2000 - help - Timeout in milliseconds used in NFS protocol. If you encounter - "ERROR: Cannot umount" in nfs command, try longer timeout such as - 10000. - config SYS_DISABLE_AUTOLOAD bool "Disable automatically loading files over the network" depends on CMD_BOOTP || CMD_DHCP || CMD_NFS || CMD_RARP @@ -2224,6 +2210,20 @@ config CMD_MDIO The MDIO interface is orthogonal to the MII interface and extends it by adding access to more registers through indirect addressing. +config CMD_NFS + bool "nfs" + help + Boot image via network using NFS protocol. + +config NFS_TIMEOUT + int "Timeout in milliseconds for NFS mounts" + depends on CMD_NFS + default 2000 + help + Timeout in milliseconds used in NFS protocol. If you encounter + "ERROR: Cannot umount" in nfs command, try longer timeout such as + 10000. + config CMD_PING bool "ping" select PROT_RAW_LWIP if NET_LWIP diff --git a/cmd/lwip/Makefile b/cmd/lwip/Makefile index a7f8976af3f..90df1f5511c 100644 --- a/cmd/lwip/Makefile +++ b/cmd/lwip/Makefile @@ -1,5 +1,6 @@ obj-$(CONFIG_CMD_DHCP) += dhcp.o obj-$(CONFIG_CMD_DNS) += dns.o +obj-$(CONFIG_CMD_NFS) += nfs.o obj-$(CONFIG_CMD_PING) += ping.o obj-$(CONFIG_CMD_SNTP) += sntp.o obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o diff --git a/cmd/lwip/nfs.c b/cmd/lwip/nfs.c new file mode 100644 index 00000000000..f22db582fdb --- /dev/null +++ b/cmd/lwip/nfs.c @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* Copyright (C) 2025 Linaro Ltd. */ + +#include <command.h> +#include <net.h> + +U_BOOT_CMD(nfs, 3, 1, do_nfs, + "boot image via network using NFS protocol", + "[loadAddress] [[hostIPaddr:]bootfilename]" + ); + diff --git a/cmd/net-common.c b/cmd/net-common.c index 1c6f11cd435..6f33d15d695 100644 --- a/cmd/net-common.c +++ b/cmd/net-common.c @@ -103,4 +103,4 @@ static int do_net(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) U_BOOT_CMD(net, 3, 1, do_net, "NET sub-system", "list - list available devices\n" - "stats <device> - dump statistics for specified device\n"); + "net stats <device> - dump statistics for specified device\n"); |
