public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/8] Add tftpput command for uploading files over network
@ 2011-10-22  4:51 Simon Glass
  2011-10-22  4:51 ` [U-Boot] [PATCH 1/8] Move simple_itoa to vsprintf Simon Glass
                   ` (8 more replies)
  0 siblings, 9 replies; 25+ messages in thread
From: Simon Glass @ 2011-10-22  4:51 UTC (permalink / raw)
  To: u-boot

The tftpboot command permits reading of files over a network interface
using the Trivial FTP protocol. This patch series adds the ability to
transfer files the other way.

Why is this useful?

- Uploading boot time data to a server
- Uploading profiling information
- Uploading large mounts of data for comparison / checking on a host
    (e.g. use tftpput and ghex2 instead of the 'md' command)

Mostly the existing code can be re-used and I have tried to avoid too
much refactoring or cleaning up.

The feature is activated by the CONFIG_CMD_TFTPPUT option.

This has been very lightly tested on a Seaboard with a USB network
adaptor. I don't think it handles block number overflow.


Simon Glass (8):
  Move simple_itoa to vsprintf
  Add setenv_uint() and setenv_addr()
  tftpput: Rename TFTP to TFTPGET
  tftpput: move common code into separate functions
  tftpput: support selecting get/put for tftp
  tftpput: add save_addr and save_size global variables
  tftpput: implement tftp logic
  tftpput: add tftpput command

 README                   |    2 +
 common/cmd_net.c         |   31 +++++++-
 common/cmd_nvedit.c      |   31 ++++++++
 common/hush.c            |   15 ----
 include/common.h         |    5 +
 include/config_cmd_all.h |    1 +
 include/net.h            |    8 +-
 lib/vsprintf.c           |   16 ++++
 net/bootp.c              |    2 +-
 net/net.c                |   22 +++---
 net/tftp.c               |  189 +++++++++++++++++++++++++++++++++-------------
 net/tftp.h               |    2 +-
 12 files changed, 238 insertions(+), 86 deletions(-)

-- 
1.7.3.1

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2011-10-30 20:13 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-22  4:51 [U-Boot] [PATCH 0/8] Add tftpput command for uploading files over network Simon Glass
2011-10-22  4:51 ` [U-Boot] [PATCH 1/8] Move simple_itoa to vsprintf Simon Glass
2011-10-22  4:51 ` [U-Boot] [PATCH 2/8] Add setenv_uint() and setenv_addr() Simon Glass
2011-10-23  5:29   ` Mike Frysinger
2011-10-25 21:35     ` Simon Glass
2011-10-25 21:39       ` Mike Frysinger
2011-10-25 21:58         ` Simon Glass
2011-10-25 22:01           ` Wolfgang Denk
2011-10-25 22:08             ` Mike Frysinger
2011-10-25 22:41               ` Simon Glass
2011-10-25 22:49                 ` Mike Frysinger
2011-10-25 23:08                   ` Simon Glass
2011-10-25 23:27                     ` Mike Frysinger
2011-10-22  4:51 ` [U-Boot] [PATCH 3/8] tftpput: Rename TFTP to TFTPGET Simon Glass
2011-10-22  4:51 ` [U-Boot] [PATCH 4/8] tftpput: move common code into separate functions Simon Glass
2011-10-22  4:51 ` [U-Boot] [PATCH 5/8] tftpput: support selecting get/put for tftp Simon Glass
2011-10-22  4:51 ` [U-Boot] [PATCH 6/8] tftpput: add save_addr and save_size global variables Simon Glass
2011-10-22  4:51 ` [U-Boot] [PATCH 7/8] tftpput: implement tftp logic Simon Glass
2011-10-22  4:51 ` [U-Boot] [PATCH 8/8] tftpput: add tftpput command Simon Glass
2011-10-22  8:21 ` [U-Boot] [PATCH 0/8] Add tftpput command for uploading files over network Albert ARIBAUD
2011-10-22 16:15   ` Simon Glass
2011-10-24  4:28     ` Simon Glass
2011-10-25  4:13       ` Simon Glass
2011-10-25  6:44         ` Albert ARIBAUD
2011-10-30 20:13   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox