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

Wolfgang Denk wd at denx.de
Wed Jan 15 07:36:03 CET 2014


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.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Anyone who doesn't believe in miracles is not a realist.
                                                   - David Ben Gurion


More information about the U-Boot mailing list