Add tftpput command for uploading files over network
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 8 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 8 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH 0/8] Add tftpput command for uploading files over network
Le 22/10/2011 06:51, Simon Glass a ?crit :
Quoted 10 lines
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)
Especially I find it interesting for backing up things like MTD and small disk files (not partitions, though). Most of my work currently is trying to bring mainline U-Boot support to existing boards with bad U-Boot implementations, and being able to backup things from U-Boot (as opposed to having to set up NFS root and Linux boot) would definitely be a plus.
Quoted 2 lines
Mostly the existing code can be re-used and I have tried to avoid too much refactoring or cleaning up.
:)
Quoted 4 lines
The feature is activated by the
CONFIG_CMD_TFTPPUToption.This has been very lightly tested on a Seaboard with a USB network adaptor. I don't think it handles block number overflow.
What size does this limit transfers to?
Quoted 9 lines
Simon Glass (8):
Movesimple_itoato vsprintf
Addsetenv_uint()andsetenv_addr()
tftpput: Rename TFTP to TFTPGET
tftpput: move common code into separate functions
tftpput: support selecting get/put for tftp
tftpput: addsave_addrandsave_sizeglobal variables
tftpput: implement tftp logic
tftpput: add tftpput command
Many U-Boot environments use 'tftp' as a shorthand to tftpboot. Did you verify that this is not broken by the introduction of 'tftpput'?
Also, I'd be happy to test this if a branch exists that already holds these commits.
Amicalement,
Signature · 1 line
Albert.