From: Wolfgang Denk Date: Tue, 12 May 2009 20:48:41 +0200 Subject: [U-Boot] Timeout in tftp.c In-Reply-To: <4A0969FC.2060504@taskit.de> References: <4A0969FC.2060504@taskit.de> Message-ID: <20090512184841.8F54A832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Achim Ehrlich, In message <4A0969FC.2060504@taskit.de> you wrote: > > The timeout for lost packages in tftp.c is defined to 5000 msecs. But > when setting the timeout get_timer(0) is called in NetSetTimeout in net.c. > But on AT91 the timer code returns usecs and not msecs resulting in a > timeout of 5 ms instead of 5 secs, which is kind of short. I looked in > the timer code of other ARM-based platforms and they seem to use > usec-based timers as well. > Of course I can change the defined timeout in tftp.c to one second or > so, but that doesn't seem to be the right way to solve this issue. > > Any suggestions or ideas or do I miss something here? Any chance that you are using an old version of U-Boot? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Comparing information and knowledge is like asking whether the fatness of a pig is more or less green than the designated hitter rule." - David Guaspari