public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Bruens <stefan.bruens@rwth-aachen.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] DHCP Command Does Not Populate all DHCP Options supplied by DHCP Server
Date: Sat, 4 Feb 2017 23:32:04 +0100	[thread overview]
Message-ID: <2154191.sfevSOVpvK@pebbles.site> (raw)
In-Reply-To: <2141255683.1073022.1486239380499@mail.yahoo.com>

On Samstag, 4. Februar 2017 20:16:20 CET dh at synoia.com wrote:
> Stefan
> Thanks for the reply
> I suspect it is the offer response to the DHCP u-boot command.
> 
> Options 66/67 are important in the netboot scenario.
> 
> Regards Duncan Hare

Dear Duncan,

it would be good if you were more specific in your messages. Scenario, DHCP 
server, what do you want to achieve. You should also tell what you are 
referring to - messages on the wire, u-boot environment variables, ... Please 
be terse in your questions, but also give *all* necessary information. If in 
doubt, there is seldom to much information.

Of course bootserver and image url are typically [2] required for netboot 
scenarios. Although Option 66/67 is one possibility to specify this 
information, the "traditional"/non-PXE method of specifying these values is 
using the siaddr/sname/file fields. U-Boot currently evaluates siaddr and the 
file field. The sname field is ignored, as it would eventually require DNS 
resolution.

It is the obligation of the DHCP server to set these fields. The DHCP client 
*must not* use the sname/file fields in its DISCOVER/REQUEST (but for option 
overloading).

Specifically which information the DHCP *should* give to the client is 
specified in the DHCP Parameter Request List option (55). As u-boot uses 
siaddr/file for the bootstrapping, it omits the options 66/67. *If* a DHCP 
server sends out option 67 (bootfile name) although not requested, u-boot 
prefers its value over the file field.

Kind regards,

Stefan

[2] both values can be pre-set in the u-boot environment

-- 
Stefan Br?ns  /  Bergstra?e 21  /  52062 Aachen
home: +49 241 53809034     mobile: +49 151 50412019
work: +49 2405 49936-424

      parent reply	other threads:[~2017-02-04 22:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <881402146.1020307.1486233518986.ref@mail.yahoo.com>
2017-02-04 18:38 ` [U-Boot] DHCP Command Does Not Populate all DHCP Options supplied by DHCP Server dh at synoia.com
2017-02-04 19:31   ` Stefan Bruens
     [not found]     ` <2141255683.1073022.1486239380499@mail.yahoo.com>
2017-02-04 22:32       ` Stefan Bruens [this message]

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=2154191.sfevSOVpvK@pebbles.site \
    --to=stefan.bruens@rwth-aachen.de \
    --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