[U-Boot] TFTP load for file over 50MB fails
StephenPaulraj Chinnadurai-ERS,HCLTech
stephenpaulrajc at hcl.com
Mon Sep 13 13:13:49 CEST 2010
-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Thursday, September 02, 2010 1:51 PM
To: StephenPaulraj Chinnadurai-ERS,HCLTech
Cc: Marek Vasut; u-boot at lists.denx.de
Subject: Re: [U-Boot] TFTP load for file over 50MB fails
Dear "StephenPaulraj Chinnadurai-ERS,HCLTech",
In message <EC921D4B77C99B4EB3CEDAFFCF17D5F73DDED37343 at CHN-HCLT-EVS07.HCLT.CORP.HCL.IN> you wrote:
>
> 1. When the board is connected to network, through tftp the u-boot
> is downloading only 9 MB size file. When tried to download 10 MB size
> file, the u-boot is displaying "Retry count exceeded; starting again"
> message and the file download is not getting completed.
Sounds like a instability of your hardware and/or U-Boot support for
this board and/or platform.
> 2. When the board is connected to Linux machine directly using
> cross cable, through tftp the u-boot is downloading 47 MB size file
> without any retry, but when tried to download 53 MB size file, the
> u-boot is displaying "Retry count exceeded; starting again" message
> and download is not getting completed.
Are you aware of the restrictions of the TFTP protocol? In standard
configuration, you can only load up to 32767 blocks of 512 bytes,
i. e. not quite 16 MiB of data.
Most curent implementations treat the block number as unsigned, which
shifts the limit to 32 MiB.
And if your TFTP server supports it you can also increase the block
size.
Which exact settings are you using?
Previously the TFTP_MTU_BLOCKSIZE macro is assigned with the value 1468.
Now I changed the value of the TFTP_MTU_BLOCKSIZE macro to 512 in net/tftp.c file.
#define TFTP_MTU_BLOCKSIZE 512
I installed tftp server in the windows XP PC and connect my hardware to the window XP PC through cross Ethernet cable. Now I can able to download files which are more than 50MB size.
But I can't download the files of 50MB size from the Linux PC with the same u-boot.bin image.
Whether I need to upgrade the tftp server running in the Linux PC?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Always leave room to add an explanation if it doesn't work out.
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
More information about the U-Boot
mailing list