From: Wolfgang Denk Date: Mon, 16 Aug 2010 12:09:04 +0200 Subject: [U-Boot] [PATCH] net: Change the NFS_TIMEOUT to 20s for using nfs load image. In-Reply-To: <1281947653-5530-1-git-send-email-leoli@freescale.com> References: <1281947653-5530-1-git-send-email-leoli@freescale.com> Message-ID: <20100816100904.DC9C51606A5@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 Li Yang, In message <1281947653-5530-1-git-send-email-leoli@freescale.com> you wrote: > From: Jin Qing > > The NFS_TIMEOUT is 2s before. It is too short for some nfs server to respond. > > Signed-off-by: Jin Qing > --- > We are not sure what is the expected timeout period. Using 20s to make sure > the mount works. > > net/nfs.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/net/nfs.c b/net/nfs.c > index 4017c3e..cabadfe 100644 > --- a/net/nfs.c > +++ b/net/nfs.c > @@ -33,7 +33,7 @@ > > #define HASHES_PER_LINE 65 /* Number of "loading" hashes per line */ > #define NFS_RETRY_COUNT 30 > -#define NFS_TIMEOUT 2000UL > +#define NFS_TIMEOUT 20000UL You mean 30 retries (NFS_RETRY_COUNT) every two seconds were not sufficient in your case? That's a full minute... Waiting 10 minutes for a command to complete seems way too long to me. 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 Always leave room to add an explanation if it doesn't work out.