[U-Boot] u-boot tftp problem

Joe Hershberger
2015-02-17T17:10:46Z

On Fri, Feb 13, 2015 at 8:05 PM, PF4Public <PF4Public@mail.ru> wrote:
>
> Hi all
>
> I'm asking for your help to figure out what interferes with u-boot's tftp
in my setup.
> I have a custom board with TI OMAP SoC. I'm trying to download uImage
from linux machine via tftp. It fails with timeouts (most of the tries
timeout limit exceeds) on several, but succeeds on others. However any
other combination not involving u-boot is flawless. Even when the board in
question has booted kernel. Comparing network settings (incl. sysctl) gave
no significant difference between serving machines, which run Linux.

Are you saying that it is completely consistent that when TFTPing from a
specific TFTP server to u-boot you always get these time-outs, but with a
different one you never get them? Have you compared the traffic on the
wire? Try turning on debug traces in the network stack and compare what it
sees to what's on the wire. Perhaps the davinci emac driver is causing you
trouble. Is there a cache enabled on your board that you could disable to
eliminate the driver's tolerance of a cache?

> Following tests were taken:
> u-boot <-> i686-pae Linux
> u-boot <-> i686-pae Linux kvm guest
> u-boot <-> x86_64 windows 7
> Results are as follows:
>
> 1. u-boot <-> i686-pae Linux
> Using DaVinci-EMAC device
> TFTP from server 192.168.100.254; our IP address is 192.168.100.88
> Filename 'uImage'.
> Load address: 0xc0700000
> Loading: ############T ###############################T ##########T
############
> #######T ################################################T
##########
> ##########################T
#######################################
> ###########################T
######################################
> ################################T
#################################
> #################################################################
> ########T
#########################################################
> ##################
> 11.7 KiB/s
> done
> Bytes transferred = 2418464 (24e720 hex)
> Corresponding traffic dump can be found here:
> http://pastebin.com/hBBwe9bL
>
> 2. u-boot <-> i686-pae Linux kvm guest
> Using DaVinci-EMAC device
> TFTP from server 192.168.100.112; our IP address is 192.168.100.88
> Filename 'uImage'.
> Load address: 0xc0700000
> Loading: #################################################################
> #################################################################
> #################################################################
> #################################################################
> #################################################################
> #################################################################
> #################################################################
> ##################
> 795.9 KiB/s
> done
> Bytes transferred = 2418464 (24e720 hex)
> Corresponding traffic dump can be found here:
> http://pastebin.com/ZXYdpmSe
>
> 3. u-boot <-> x86_64 windows 7
> Using DaVinci-EMAC device
> TFTP from server 192.168.100.86; our IP address is 192.168.100.88
> Filename 'uImage'.
> Load address: 0xc0700000
> Loading: #################################################################
> #################################################################
> ###################################
> 173.8 KiB/s
> done
> Bytes transferred = 2418464 (24e720 hex)
> Corresponding traffic dump can be found here:
> http://pastebin.com/UWFEZjTz
>
> At this point I have no idea, what could cause timeouts for u-boot and I
have no more clues on how to solve this. Any help greatly appreciated.

Simply that the packet that the network stack expects has not be received
at that level. They could be lost in a number of places.

> Thanks in advance
> Best regards
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot