From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] tftp "command" in default environments
Date: Wed, 22 Jun 2011 18:07:03 +0300 [thread overview]
Message-ID: <4E020517.4050904@compulab.co.il> (raw)
In-Reply-To: <4E01FC2B.3010402@comelit.it>
On 06/22/11 17:28, Luca Ceresoli wrote:
> Hi,
>
> since 7a83af07aef3c (TFTP: add tftpsrv command) U-Boot has a new "tftpsrv"
> command, which can be enabled by defining CONFIG_CMD_TFTPSRV.
>
> Unfortunately, activating it causes some boards to stop working correctly.
> This is because they use the tftp "command" in their environment, but tftp is
> has never been a real command, just the prefix for tftpboot.
> tftpboot used to be the sole completion for the tftp prefix, and this is still
> true unless one activates tftpsrv.
Don't enable the CONFIG_CMD_TFTPSRV by default.
Only boards that want to use the tftpsrv command,
should define the above config.
This makes it like this: if you define the CONFIG_CMD_TFTPSRV,
then you need to make sure your default environment is still good,
if you don't define it then you should not have a problem.
Right?
> A few numbers (consider a little percentage of false positives):
> $ git grep -w tftp | wc
> 788 4853 59575
> $ git grep -w tftp include/configs/ board/ | wc
> 658 4095 51357
> $ git grep -w tftp doc/ README | wc
> 119 685 7661
>
> This is of course a bug in many boards (and the docs too).
>
> It's obviously to be fixed for boards that define CONFIG_CMD_TFTPSRV:
> currently none, but soon I'll update dig297 in this sense.
>
> Fixing the docs would be wise, too. I'll try to find some time to do this job.
>
> What I'm not sure about is if the default environment for all boards should be
> fixed as well.
See above
> This would increase the binary size and the environment size. The increase
> would be of a few bytes, is it correct to assume that it is negligible for all
> boards?
looks like a non issue
> OTOH it would give no visible advantage to those boards that will never want
> tftpsrv at all, which are probably the vast majority.
yep.
--
Regards,
Igor.
next prev parent reply other threads:[~2011-06-22 15:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 14:28 [U-Boot] tftp "command" in default environments Luca Ceresoli
2011-06-22 15:07 ` Igor Grinberg [this message]
2011-06-22 16:07 ` Mike Frysinger
2011-06-22 17:26 ` Wolfgang Denk
2011-06-22 17:44 ` Mike Frysinger
2011-06-22 19:53 ` Eric Cooper
2011-06-22 17:32 ` Wolfgang Denk
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=4E020517.4050904@compulab.co.il \
--to=grinberg@compulab.co.il \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.