From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Bruens Date: Sat, 4 Feb 2017 23:32:04 +0100 Subject: [U-Boot] DHCP Command Does Not Populate all DHCP Options supplied by DHCP Server In-Reply-To: <2141255683.1073022.1486239380499@mail.yahoo.com> References: <881402146.1020307.1486233518986.ref@mail.yahoo.com> <2066676.ORP5B6FdPD@pebbles.site> <2141255683.1073022.1486239380499@mail.yahoo.com> Message-ID: <2154191.sfevSOVpvK@pebbles.site> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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