From: Drasko DRASKOVIC Date: Tue, 17 Mar 2009 14:38:00 +0100 Subject: [U-Boot] exit(-1) function in U-Boot In-Reply-To: <20090317130643.8B451832E8B7@gemini.denx.de> References: <5ec3d7930903130339t592e64a8o5ace302e06976ea@mail.gmail.com> <20090313134955.E5483832E8B8@gemini.denx.de> <5ec3d7930903170318r76f4786fsdf61ec1e2c11a04c@mail.gmail.com> <20090317103310.3E9BC832C2FD@gemini.denx.de> <5ec3d7930903170549sf6337c9l292d9ebef0fdf87a@mail.gmail.com> <20090317130643.8B451832E8B7@gemini.denx.de> Message-ID: <5ec3d7930903170638n7769e61anb30f5ce39d704f84@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang, >Instead of vague descriptions like "something is wrong within TFTP" >or "it breaks" you could try and post the exact commands you're >trying and the exact error messages you are seing, I am sorry for being vague, I hope this example will make it a bit more clear: static void TftpTimeout (void) { if (++TftpTimeoutCount > TIMEOUT_COUNT) { puts ("\nRetry count exceeded; timeout error\n"); if (image_valid == 0) { /* * We have no valid Linux image anymore! * We must start update again! */ NetStartAgain (); } * else /* last image is not corrupted, I want to boot it */ { /* LET ME OUT! I do not want to go back to net.c caller, bacause I do not know how to tell him it was TIMEOUT. All I can do is NetState = NETLOOP_FAIL. Not much of an info. */ printf("TIMEOUT error\n"); exit (-1); }* } else { puts ("T "); NetSetTimeout (TIMEOUT * CFG_HZ, TftpTimeout); TftpSend (); } } >including information which version of U-Boot you are running u-boot-1.1.6 >and on which platform. ARM9 Best regards, Drasko