public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/9] net: Revert "tftp: adjust settings to be suitable for 100Mbit ethernet"
@ 2015-08-25  7:22 Bin Meng
  2015-08-25  7:22 ` [U-Boot] [PATCH 2/9] net: e1000: Fix build warnings for 32-bit Bin Meng
                   ` (8 more replies)
  0 siblings, 9 replies; 33+ messages in thread
From: Bin Meng @ 2015-08-25  7:22 UTC (permalink / raw)
  To: u-boot

Testing either pch_gbe or e1000 driver via tftp command on Intel
Crown Bay board, shows the following failure.

    TFTP error: 'Unsupported option(s) requested' (8)

It turns out commit 620776d causes this. Revert this commit for now.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 net/tftp.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/net/tftp.c b/net/tftp.c
index 18ce84c..89be32a 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -19,10 +19,10 @@
 /* Well known TFTP port # */
 #define WELL_KNOWN_PORT	69
 /* Millisecs to timeout for lost pkt */
-#define TIMEOUT		100UL
+#define TIMEOUT		5000UL
 #ifndef	CONFIG_NET_RETRY_COUNT
 /* # of timeouts before giving up */
-# define TIMEOUT_COUNT	1000
+# define TIMEOUT_COUNT	10
 #else
 # define TIMEOUT_COUNT  (CONFIG_NET_RETRY_COUNT * 2)
 #endif
@@ -711,10 +711,10 @@ void tftp_start(enum proto_t protocol)
 	if (ep != NULL)
 		timeout_ms = simple_strtol(ep, NULL, 10);
 
-	if (timeout_ms < 10) {
-		printf("TFTP timeout (%ld ms) too low, set min = 10 ms\n",
+	if (timeout_ms < 1000) {
+		printf("TFTP timeout (%ld ms) too low, set min = 1000 ms\n",
 		       timeout_ms);
-		timeout_ms = 10;
+		timeout_ms = 1000;
 	}
 
 	debug("TFTP blocksize = %i, timeout = %ld ms\n",
-- 
1.8.2.1

^ permalink raw reply related	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2015-08-26  3:06 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25  7:22 [U-Boot] [PATCH 1/9] net: Revert "tftp: adjust settings to be suitable for 100Mbit ethernet" Bin Meng
2015-08-25  7:22 ` [U-Boot] [PATCH 2/9] net: e1000: Fix build warnings for 32-bit Bin Meng
2015-08-25 17:57   ` Scott Wood
2015-08-25  7:22 ` [U-Boot] [PATCH 3/9] dm: eth: Do not call board_eth_init() or cpu_eth_init() Bin Meng
2015-08-25 18:43   ` Joe Hershberger
2015-08-26  1:29     ` Bin Meng
2015-08-26  2:04       ` Bin Meng
2015-08-26  2:24       ` Joe Hershberger
2015-08-26  2:36         ` Bin Meng
2015-08-26  2:41           ` Joe Hershberger
2015-08-26  3:06           ` Simon Glass
2015-08-25  7:22 ` [U-Boot] [PATCH 4/9] dm: eth: Correctly detect alias in eth_get_dev_by_name() Bin Meng
2015-08-25 18:55   ` Joe Hershberger
2015-08-25  7:22 ` [U-Boot] [PATCH 5/9] x86: crownbay: Convert to use CONFIG_DM_USB Bin Meng
2015-08-25 18:57   ` Joe Hershberger
2015-08-25 20:31   ` Simon Glass
2015-08-25  7:22 ` [U-Boot] [PATCH 6/9] x86: crownbay: Convert to use CONFIG_DM_ETH for E1000 Bin Meng
2015-08-25 18:59   ` Joe Hershberger
2015-08-26  2:20     ` Bin Meng
2015-08-26  2:28       ` Simon Glass
2015-08-26  2:30         ` Joe Hershberger
2015-08-25  7:22 ` [U-Boot] [PATCH 7/9] net: pch_gbe: Convert to driver model Bin Meng
2015-08-25 19:04   ` Joe Hershberger
2015-08-25 20:32   ` Simon Glass
2015-08-25  7:22 ` [U-Boot] [PATCH 8/9] net: pch_gbe: Add Kconfig option Bin Meng
2015-08-25 19:10   ` Joe Hershberger
2015-08-26  1:25     ` Bin Meng
2015-08-26  2:19       ` Joe Hershberger
2015-08-25  7:22 ` [U-Boot] [PATCH 9/9] x86: crownbay: Enable CONFIG_PCH_GBE Bin Meng
2015-08-25 19:07   ` Joe Hershberger
2015-08-25 20:32   ` Simon Glass
2015-08-25  9:26 ` [U-Boot] [PATCH 1/9] net: Revert "tftp: adjust settings to be suitable for 100Mbit ethernet" Bin Meng
2015-08-25 16:05   ` Joe Hershberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox