[U-Boot] [PATCH] DHCP: fix dhcp command parameters overwrite issue
Wolfgang Denk
wd at denx.de
Thu May 3 22:59:34 CEST 2012
Dear Bo Shen,
In message <1336036915-6422-1-git-send-email-voice.shen at gmail.com> you wrote:
> when using dhcp command with parameters as usage message,
> if DHCP server response contains bootfilename, it will overwrite
> the dhcp command parameters. So the dhcp command parameters
> can not be used.
This behaviour is not a bug, it is intentional. If the DHCP server
returns any network configuration parameters, thise shall take
precedence over any user-defined (default-) settings.
If you want to ignore the boot filename returned by the DHCP server,
you can do so: set autoload to no, use DHCP to get the (rest of) the
network configuration, and then use tftp to download the boot file of
your choice. Similar for any other network parameters returned by the
DHCP server.
We had a similar discussion not so long ago; please see here for
reference:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/129689/focus=129987
Thanks for your patch, but we will not apply it, as the current
behaviour is correct (or at least as intended).
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
Memories of you remind me of you. - Karl Lehenbauer
More information about the U-Boot
mailing list