[U-Boot] [RESEND PATCH v5] tftp.c: fix CONFIG_TFTP_TSIZE for small files

Joe Hershberger joe.hershberger at gmail.com
Tue Aug 11 18:16:44 CEST 2015


Hi Marcel,

On Wed, Aug 5, 2015 at 10:17 AM, Marcel Ziswiler <marcel at ziswiler.com> wrote:
> From: Max Krummenacher <max.krummenacher at toradex.com>
>
> CONFIG_TFTP_TSIZE should limit a tftp downloads progress to 50 '#'
> chars. Make this work also for small files.
>
> If the file size is small, i.e. smaller than 2 tftp block sizes the
> number of '#' can get much larger. i.e. with a 1 byte file 65000
> characters are printed, with a 512 byte file around 500.
>
> When using CONFIG TFTP BLOCKSIZE together with CONFIG_IP_DEFRAG the
> issue is more notable.
>
> Signed-off-by: Max Krummenacher <max.krummenacher at toradex.com>
> Signed-off-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
> Reviewed-by: Marek Vasut <marex at denx.de>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>

*The resend patch this time.


More information about the U-Boot mailing list