mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
With the legacy networking stack, it is possible to use USE_SERVERIP, SERVERIP and BOOTP_PREFER_SERVERIP Kconfg options to force use of a specific TFTP server ip. Using the lwIP networking stack use of the 'tftpserverip' environment variable provide the closest equivalent functionality. Add USE_TFTPSERVERIP and TFTPSERVERIP Kconfig options that can be used to add the 'tftpserverip' environment variable to force use of a specific TFTP server ip. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Acked-by: Jerome Forissier <jerome.forissier@arm.com>
88 lines
2.2 KiB
Plaintext
88 lines
2.2 KiB
Plaintext
#
|
|
# Network configuration (with lwIP stack)
|
|
#
|
|
|
|
if NET_LWIP
|
|
|
|
config LWIP_ICMP_SHOW_UNREACH
|
|
bool "Print ICMP Destination Unreachable messages"
|
|
default y
|
|
depends on CMD_TFTPBOOT || CMD_SNTP
|
|
select PROT_ICMP_LWIP
|
|
help
|
|
Prints a message whenever an ICMP Destination Unreachable message is
|
|
received while running a network command that sends requests via UDP.
|
|
Enabling this can make troubleshooting easier.
|
|
|
|
config LWIP_DEBUG
|
|
bool "Enable debug traces in the lwIP library"
|
|
help
|
|
Prints messages to the console regarding network packets that go in
|
|
and out of the lwIP library.
|
|
|
|
config LWIP_DEBUG_RXTX
|
|
bool "Dump packets sent and received by lwIP"
|
|
help
|
|
Performs an hexadecimal & ASCII dump of the data received and sent by
|
|
the lwIP network stack.
|
|
|
|
config LWIP_ASSERT
|
|
bool "Enable assertions in the lwIP library"
|
|
help
|
|
Compiles additional error checking code into the lwIP library. These
|
|
checks are related to conditions that should not happen in typical
|
|
use, but may be helpful to debug new features.
|
|
|
|
config PROT_DHCP_LWIP
|
|
bool
|
|
select PROT_UDP_LWIP
|
|
|
|
config PROT_DNS_LWIP
|
|
bool
|
|
select PROT_UDP_LWIP
|
|
|
|
config PROT_ICMP_LWIP
|
|
bool
|
|
|
|
config PROT_RAW_LWIP
|
|
bool
|
|
|
|
config PROT_TCP_LWIP
|
|
bool
|
|
|
|
config PROT_TCP_SACK_LWIP
|
|
bool "TCP SACK support"
|
|
depends on PROT_TCP_LWIP
|
|
default y
|
|
help
|
|
TCP protocol with selective acknowledgements. Improves
|
|
file transfer speed in wget.
|
|
|
|
config PROT_UDP_LWIP
|
|
bool
|
|
|
|
config LWIP_TCP_WND
|
|
int "Value of TCP_WND"
|
|
default 32768 if ARCH_QEMU
|
|
default 3000000
|
|
help
|
|
Default value for TCP_WND in the lwIP configuration
|
|
Lower values result in slower wget transfer speeds in
|
|
general, especially when the latency on the network is high,
|
|
but QEMU with "-net user" needs no more than a few KB or the
|
|
transfer will stall and eventually time out.
|
|
|
|
config USE_TFTPSERVERIP
|
|
bool "Set a default 'tftpserverip' value in the environment"
|
|
depends on CMD_TFTPBOOT
|
|
help
|
|
Defines a default value for the IP address of a TFTP server to
|
|
contact when using the "tftpboot" command. (Environment variable
|
|
"tftpserverip")
|
|
|
|
config TFTPSERVERIP
|
|
string "Value of the default 'tftpserverip' value in the environment"
|
|
depends on USE_TFTPSERVERIP
|
|
|
|
endif # NET_LWIP
|