[U-Boot] TFTP load for file over 50MB fails

Dear Marek,
The thread ([U-Boot] TFTP timeout issue while downloading the linux kernel in openpxa vpac270 u-boot source code) is restarted to avoid the mess with new subject TFTP load for file over 50MB fails.
Previous issue summary & Test observations: Microcontroller used in the board - PXA270 Ethernet Controller - SMCS LAN91C111Ii-NU Microcontroller & Ethernet interface - Static memory chip select 4 Speed - System Clock: 208MHz & Memory Clock: 208MHz U-boot location in SDRAM - 0xa7F00000
Issue:
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. 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.
Tests Performed: Memory test is performed to verify whether the memory was misconfigured, but the memory test executed from the start address 0xA0000000 to end address 0xA7000000 was successful without any error. Test concludes that the problem in downloading 50MB file is not because of memory error.
Thanks and Regards Stephen Paulraj C
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.
-----------------------------------------------------------------------------------------------------------------------

Dear "StephenPaulraj Chinnadurai-ERS,HCLTech",
In message EC921D4B77C99B4EB3CEDAFFCF17D5F73DDED37343@CHN-HCLT-EVS07.HCLT.CORP.HCL.IN you wrote:
- 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.
- 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?
Best regards,
Wolfgang Denk

-----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: Thursday, September 02, 2010 1:51 PM To: StephenPaulraj Chinnadurai-ERS,HCLTech Cc: Marek Vasut; u-boot@lists.denx.de Subject: Re: [U-Boot] TFTP load for file over 50MB fails
Dear "StephenPaulraj Chinnadurai-ERS,HCLTech",
In message EC921D4B77C99B4EB3CEDAFFCF17D5F73DDED37343@CHN-HCLT-EVS07.HCLT.CORP.HCL.IN you wrote:
- 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.
- 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

Could you possibly fix your mailer? I can't really figure out what's your part of reply, what's the original message etc? Thanks
Dne Po 13. září 2010 13:13:49 StephenPaulraj Chinnadurai-ERS,HCLTech napsal(a):
-----Original Message----- From: Wolfgang Denk [mailto:wd@denx.de] Sent: Thursday, September 02, 2010 1:51 PM To: StephenPaulraj Chinnadurai-ERS,HCLTech Cc: Marek Vasut; u-boot@lists.denx.de Subject: Re: [U-Boot] TFTP load for file over 50MB fails
Dear "StephenPaulraj Chinnadurai-ERS,HCLTech",
In message <EC921D4B77C99B4EB3CEDAFFCF17D5F73DDED37343@CHN-HCLT-
EVS07.HCLT.CORP.HCL.IN> you wrote:
- 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.
- 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
participants (3)
-
Marek Vasut
-
StephenPaulraj Chinnadurai-ERS,HCLTech
-
Wolfgang Denk