From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Ceresoli Date: Mon, 16 May 2011 22:57:41 +0200 Subject: [U-Boot] [RFC] Act as a TFTP server In-Reply-To: <20110503123622.DE256126DAF@gemini.denx.de> References: <4DA5682A.8040203@comelit.it> <20110413113735.3115914F02E@gemini.denx.de> <4DA59B5E.5000105@comelit.it> <20110430195342.5FE8FD5270F@gemini.denx.de> <4DBFF3AF.4040505@comelit.it> <20110503123622.DE256126DAF@gemini.denx.de> Message-ID: <4DD18FC5.3070601@comelit.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > Dear Luca Ceresoli, > > In message<4DBFF3AF.4040505@comelit.it> you wrote: >>> So assuming we never see any incoming packets - how long will we wait? >> Once it has started, the server is stopped like the client is: >> - on a complete file reception >> - pressing Ctrl-C >> - after waiting 5 seconds for 10 times. > OK, fine. Can you please document thisn, then. Thanks. Incorporating also Mike's suggestion for the one-line help, I propose this: U_BOOT_CMD( tftpsrv, 2, 1, do_tftpsrv, "act as a TFTP server and boot the first received file", "[loadAddress]\n" "Listen for an incoming TFTP transfer, receive a file and boot it.\n" "The transfer is aborted if a transfer has not been started after\n" "about 50 seconds or if Ctrl-C is pressed." ); Comments? Luca