CONFIG_ENV_IS_IN_NAND=y
CONFIG_ENV_RELOC_GD_ENV_ADDR=y
CONFIG_NET_RETRY_COUNT=20
-CONFIG_TFTP_PORT=y
CONFIG_TFTP_TSIZE=y
CONFIG_AT91_GPIO=y
CONFIG_GENERIC_ATMEL_MCI=y
The tftpput command is used to transfer a file to a TFTP server.
By default the destination port is 69 and the source port is pseudo-random.
-If CONFIG_TFTP_PORT=y, the environment variable *tftpsrcp* can be used to set
-the source port and the environment variable *tftpdstp* can be used to set
-the destination port.
+The environment variable *tftpsrcp* can be used to set the source port and the
+environment variable *tftpdstp* can be used to set the destination port.
address
memory address where the data starts
CONFIG_TFTP_BLOCKSIZE defines the size of the TFTP blocks sent. It defaults
to 1468 matching an ethernet MTU of 1500.
-If CONFIG_TFTP_PORT=y, the environment variables *tftpsrcp* and *tftpdstp* can
-be used to set the source and the destination ports.
-
CONFIG_TFTP_WINDOWSIZE can be used to set the TFTP window size of transmits
after which an ACK response is required. The window size defaults to 1.
this option is active, then CONFIG_SYS_FAULT_MII_ADDR also needs to
be configured.
-config TFTP_PORT
- bool "Set TFTP UDP source/destination ports via the environment"
- help
- If this is defined, the environment variable tftpsrcp is used to
- supply the TFTP UDP source port value. If tftpsrcp isn't defined,
- the normal pseudo-random port number generator is used.
-
- Also, the environment variable tftpdstp is used to supply the TFTP
- UDP destination port value. If tftpdstp isn't defined, the normal
- port 69 is used.
-
- The purpose for tftpsrcp is to allow a TFTP server to blindly start
- the TFTP transfer using the pre-configured target IP address and UDP
- port. This has the effect of "punching through" the (Windows XP)
- firewall, allowing the remainder of the TFTP transfer to proceed
- normally. A better solution is to properly configure the firewall,
- but sometimes that is not allowed.
-
config TFTP_WINDOWSIZE
int "TFTP window size"
default 1
/* Use a pseudo-random port unless a specific port is set */
tftp_our_port = 1024 + (get_timer(0) % 3072);
-#ifdef CONFIG_TFTP_PORT
ep = env_get("tftpdstp");
if (ep != NULL)
tftp_remote_port = simple_strtol(ep, NULL, 10);
ep = env_get("tftpsrcp");
if (ep != NULL)
tftp_our_port = simple_strtol(ep, NULL, 10);
-#endif
+
tftp_cur_block = 0;
tftp_windowsize = 1;
tftp_last_nack = 0;