From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot-Users] TFTP server support in U-boot
Date: Tue, 16 Dec 2008 08:06:37 -0500 [thread overview]
Message-ID: <4947A7DD.6040909@ge.com> (raw)
In-Reply-To: <4946B31E.10708@gmail.com>
Ben Warren wrote:
> Hello Santosh,
>
> santosh pattar wrote:
>> Dear All,
>>
>> As of now in the U-boot only TFTP client is supported. I am planning
>> to have TFTP server support in the u-boot. Can you please help me in
>> this regarding?
>>
>> Please provide me few links if this has been done already, or links
>> from where i can take some information and start working on it.
>>
>>
> I believe this has come up before, so search the mail archives. I don't
> remember anybody posting a patch, though. In general, U-boot doesn't
> 'serve', so you have quite a bit of work to do. Luckily, TFTP is one of
> the more trivial protocols, hence the name.
Do search the archives because my memory isn't what it used to be, but I
don't recall a TFTP server coming up. Periodically FTP support comes up
and then silently disappears when the requester figures out how much
work it would be. Despite sharing 3/4 of the characters and supporting
the same concept, TFTP and FTP are totally different animals.
> I'm curious why you want to do this. People generally use U-boot as
> transient software for loading operating systems that are much more
> suitable for serving images. Do you have a situation where you have
> several identical devices and want to reduce the upstream network load?
> In that case, you may want to look into the multicast TFTP instead.
>
> regards,
> Ben
If you really need this, I would suggest adding a simple (modal) "tftp
server" command so that, when you execute the command all u-boot is
doing is TFTP server work until something indicates "done" (e.g. a file
was successfully transfered) and then the command exits. This would fit
well into the u-boot restricted architecture that is characterized by
being single threaded with no tasking.
Trying to do a full fledged tftp server that runs independently in the
background is going to be a lot harder because there is no "background"
in u-boot.
Best regards,
gvb
next prev parent reply other threads:[~2008-12-16 13:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-15 8:59 [U-Boot] TFTP server support in U-boot santosh pattar
2008-12-15 19:42 ` [U-Boot] [U-Boot-Users] " Ben Warren
2008-12-16 13:06 ` Jerry Van Baren [this message]
2008-12-17 4:08 ` santosh pattar
2008-12-17 7:38 ` Wolfgang Denk
[not found] ` <19f3dfd10812170156l211f73fft61d1ad25f5724775@mail.gmail.com>
2008-12-17 10:11 ` Wolfgang Denk
2008-12-17 18:11 ` Ben Warren
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=4947A7DD.6040909@ge.com \
--to=gerald.vanbaren@ge.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