repurposing dhcp command

Tom Rini trini at konsulko.com
Fri Jun 19 18:40:18 CEST 2020


On Fri, Jun 19, 2020 at 06:32:57PM +0300, Ramon Fried wrote:

> Hi.
> Basically, bootp command and dhcp command have the same logic, no
> difference whatsoever.
> Also, sometimes, It's needed to just acquire an IP address using dhcp
> and boot in some other way (NFS).
> 
> I'm suggesting repurposing  the dhcp command to only do DHCP IP
> address acquisition.
> Users could use "bootp" command instead, or just type "dhcp && tftpboot"
> 
> What do you think ?

This is what the autoload variable is for.  Set it to no or false and
dhcp (and bootp, iirc) will only acquire an address.  It's been the
documented / expected interface for far too long to change it as well.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200619/40dd5d61/attachment.sig>


More information about the U-Boot mailing list