From: Zhen Wang <mailtojarod@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] TFTP times out?
Date: Fri, 11 Nov 2005 14:18:20 +0800 [thread overview]
Message-ID: <437437AC.1080809@gmail.com> (raw)
In-Reply-To: <518B77BB6246D54D9E88FC49AFB0389D2B1D34@seskoptronicmsx.optronic.local>
Andr? Berggren Wrote:
> Hi!
>
> We have the same problem with one minor difference. U-boot get the first part of a file and then starts getting timeouts (TTTT).
> We used a Etheral to sniff and found out that u-boot ack one datapackage but when the next datapackage araives u-boot doesn?t seem to hear it. Instead u-boot timesout listening and sends another ack on the previous datapackage. The tftp server then retransmits the last datapackage again witch u-boot doesn?t hear, u-boot times out and send another ack on the previous datapackage, and we are stuck in this loop.
> We use a Moxa ED6008 switch where we attached the sniffer for the recording.
>
> See appended ethereal capture-file. Mark one UDP-package and use Analyse->decode as and chose tftp to make it more readable.
>
> //Andr?
>
>
Thanks a lot! I've downloaded Ethereal v0.10.13 and learned to use it
last night. In order to find some problems I built u-boot with several
different configurations and then I sniffed TFTP traffic between my
board and PC utilizing Ethereal. Then I could figure a table as following:
filename CFG_HZ TIMEOUT TIMEOUT_COUNT block #
------------------------------------------------------------------------
u-boot-tftp0.bin 1000 5(s) 10 231
u-boot-tftp2.bin 1000 100(s) 270 4179
u-boot-tftp3.bin 1000 100(s) 400 4260
u-boot-tftp4.bin 1000 5(s) 400 4260
CFG_HZ is a configuration _SETTING_ in my board's configuration
header file(I don't know its exact function till now). TIMEOUT and
TIMEOUT_COUNT both are constants defined in net/tftp.c.
I've got a 2130KB(i.e. 4260 TFTP packages) uClinux zImage to download
over the twisted cable which connected my board with my PC directly.
The numbers in last column of above table indicate the last TFTP
block id received from the TFTP server(PC) before giving up(i.e. retry
count beyonds TIMEOUT_COUNT). Therefore 4260 indicates a complete download.
According to the table, TIMEOUT doesn't seem to be a critical part in
unsuccessful downloads. Though I can use a large TIMEOUT_COUNT to
accomplish the download, it's a bad solution. Now my first suspicion is
that the timing without interrupts scheme implemented in
cpu/s3c44b0/interrupts.c.
Best regards,
Zhen Wang
next prev parent reply other threads:[~2005-11-11 6:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 9:23 [U-Boot-Users] TFTP times out? André Berggren
2005-11-10 13:40 ` Jerry Van Baren
2005-11-10 15:12 ` NZG
2005-11-11 6:18 ` Zhen Wang [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-11 8:49 Martin Krause
2005-11-11 9:36 ` Wolfgang Denk
2005-11-10 3:10 Zhen Wang
2005-11-10 3:18 ` Sam Song
2005-11-10 4:19 ` Zhen Wang
2005-11-10 4:37 ` Bharathi Subramanian
2005-11-10 6:12 ` Zhen Wang
2005-11-10 8:42 ` Wolfgang Denk
2005-11-10 7:59 ` Eckart Goehler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=437437AC.1080809@gmail.com \
--to=mailtojarod@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox