From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Date: Tue, 25 Aug 2015 14:19:35 +0200 Subject: [U-Boot] commit 620776d causes TFTP error: 'Unsupported option(s) requested' (8) In-Reply-To: <55DC5BDD.5040307@schmelzer.or.at> References: <55DC5BDD.5040307@schmelzer.or.at> Message-ID: <20150825121935.GA17346@amd> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue 2015-08-25 14:13:17, Hannes Schmelzer wrote: > Hi, > > i've same problem. > > Running tftp-hpa on Linux Mint 17. > > cat /etc/default/tftpd-hpa > # /etc/default/tftpd-hpa > RUN_DAEMON="yes" > TFTP_USERNAME="tftp" > TFTP_DIRECTORY="/tftpboot/tseries" > TFTP_ADDRESS="0.0.0.0:69" > TFTP_OPTIONS="-l -s" Yes. Please try patch I mailed half an hour ago... it should fix that. (Actually here it is again, without changelog). Sorry for the trouble, Pavel Date: Tue, 25 Aug 2015 13:44:25 +0200 From: Pavel Machek To: Bin Meng Cc: Joe Hershberger , Tom Rini , U-Boot Mailing List Subject: [PATCH] Change default tftp timeout to be rfc-compliant diff --git a/net/tftp.c b/net/tftp.c index 18ce84c..e919638 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -18,8 +18,9 @@ /* Well known TFTP port # */ #define WELL_KNOWN_PORT 69 -/* Millisecs to timeout for lost pkt */ -#define TIMEOUT 100UL +/* Millisecs to timeout for lost pkt. Anything below 1000msec is against RFC, and + some servers will refuse it. */ +#define TIMEOUT 1000UL #ifndef CONFIG_NET_RETRY_COUNT /* # of timeouts before giving up */ # define TIMEOUT_COUNT 1000 -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html