From mboxrd@z Thu Jan 1 00:00:00 1970 From: kevin.morfitt at fearnside-systems.co.uk Date: Wed, 01 Apr 2009 00:47:13 +0100 Subject: [U-Boot] [PATCH] Added a tftp command In-Reply-To: <93C9958A-B833-47F2-B9E1-6073C7AB1F98@kernel.crashing.org> References: <49D29CC5.2010406@fearnside-systems.co.uk> <93C9958A-B833-47F2-B9E1-6073C7AB1F98@kernel.crashing.org> Message-ID: <49D2AB81.60501@fearnside-systems.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Kumar Gala wrote: > > On Mar 31, 2009, at 5:44 PM, kevin.morfitt at fearnside-systems.co.uk wrote: > >> Adds a "tftp" command that gets a specified file from a TFTP Server and >> stores it in RAM at a specified RAM address. Most of the code already >> exists in board-specific form (eg in board/hymod) but this patch >> extracts it and makes it available as a standard u-boot command. >> >> Signed-off-by: Kevin Morfitt >> --- >> common/cmd_tftp.c | 59 >> ++++++++++++++++++++++++++++++++++++++++++ >> doc/README.tftp | 29 ++++++++++++++++++++ >> include/config_cmd_all.h | 1 + >> include/config_cmd_default.h | 1 + >> 4 files changed, 90 insertions(+), 0 deletions(-) >> create mode 100755 common/cmd_tftp.c >> create mode 100755 doc/README.tftp > > I'm quite confused. We already have support for this. I'm pretty > sure I use it almost daily. > > - k So do I but I'm working with a u-boot my customer has modified to add it as a board-specific command. When I tried to use it on a new board with the latest u-boot I found it wasn't a standard u-boot command. It's almost identical to "tftpboot" except that if "autostart" is set to "yes" "tftpboot" automatically boots from the file after it's downloaded it but "tftp" doesn't. I use it to copy images across then manually program them into flash.