]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Add Transfer Size Option to tftp
authorRobin Getz <rgetz@blackfin.uclinux.org>
Thu, 20 Aug 2009 14:50:20 +0000 (10:50 -0400)
committerBen Warren <biggerbadderben@gmail.com>
Tue, 25 Aug 2009 20:35:54 +0000 (13:35 -0700)
commit4fccb818e7ee1190602e79aa5729a23bc349bf0c
treea7fff9df422622f8b3834a99719e1f85fa799c9a
parent488feef85229c08cd3aa1fa183bc8f483d2ae832
Add Transfer Size Option to tftp

Optionally add RFC 2349 "Transfer Size Option", so we can minimize the
time spent sending data over the UART (now print a single line during a
tftp transfer).

 - If turned on (CONFIG_TFTP_TSIZE), U-Boot asks for the size of the file.
 - if receives the file size, a single line (50 chars) are printed.
     one hash mark == 2% of the file downloaded.
 - if it doesn't receive the file size (the server doesn't support RFC
     2349, prints standard hash marks (one mark for each UDP frame).

Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
net/tftp.c