[U-Boot] [PATCH] net/bootp: add CONFIG_BOOTP_BOOTFILE

Christian Gmeiner christian.gmeiner at gmail.com
Wed Jan 29 09:14:37 CET 2014


2014-01-15 Wolfgang Denk <wd at denx.de>:
> Dear Christian Gmeiner,
>
> In message <1389688171-31688-1-git-send-email-christian.gmeiner at gmail.com> you wrote:
>> In some cases the TFTP server provides a bootfile name, which
>> does not expects our requirements. Make it possible to
>> not store the TFTP provided bootfile in the environment.
>
> There is no need to change the code for that.  If you don't like the
> settings provided by your BOOTP (or rather DHCP?) server, then just
> don't use them.  Otherwise we would have to add new options for all
> data fields the DHCP server could send, and this would grow into a
> terrible mess.
>
> In your case, just do the following:
>
>         => setenv autostart no
>         => dhcp
>         => tftp $addr $your_file_name
>
> It is much more efficient to handle such special cases by scripting
> than adding specialized code for each and every corner case.
>

I finally found time to incorporate your feedback and everything works as
expected.

thanks for your hint
--
Christian Gmeiner, MSc


More information about the U-Boot mailing list