[U-Boot] DNS Lookup in UBoot

Chris Packham judge.packham at gmail.com
Tue Jun 6 09:53:26 UTC 2017


Hi Duncan,

On Tue, Jun 6, 2017 at 1:01 PM, Duncan Hare <dh at synoia.com> wrote:
> U-boot support DHCP, however beyond the initial set of results returned, many are optional, and even misused.
>
> Microsoft's DHCP server appears to have a limited mechanism to set DHCP responses.
>
> Because u-boot runs on "smart" devices and has a scripting language (a brilliant one if I may so so)
>
> Can we get a DNS lookup command to resolved names after the initial DHCP IP address setup.
>
> This is to get a flexible mechanism to set a bootserver address, consistent for Uboot across DHCP implementations. Duncan Hare
>

Have you seen the hostname command (enabled with CONFIG_CMD_DNS)? The
following sounds like it could do what you're looking for

  dhcp
  hostname server.example.com serverip
  tftpboot zImage


More information about the U-Boot mailing list